adamant-kite-43734
08/16/2022, 12:21 PMpolite-engineer-55788
08/16/2022, 12:21 PMwide-garage-9465
08/16/2022, 12:42 PMregistries.yaml
config file?
See https://k3d.io/v5.4.4/usage/registries/#registries-configuration-filepolite-engineer-55788
08/16/2022, 12:43 PMpolite-engineer-55788
08/16/2022, 12:43 PMpolite-engineer-55788
08/16/2022, 12:43 PMFailed to pull image "nexus.infra.svc.cluster.local:18081/example/quarkus-springboot-demo:latest@sha256:83d0dbb77648335bd17862081590b65c932977ae97c0fdf4635e47f3523936ae": rpc error: code = Unknown desc = failed to pull and unpack image "nexus.infra.svc.cluster.local:18081/example/quarkus-springboot-demo@sha256:83d0dbb77648335bd17862081590b65c932977ae97c0fdf4635e47f3523936ae": failed to resolve reference "nexus.infra.svc.cluster.local:18081/example/quarkus-springboot-demo@sha256:83d0dbb77648335bd17862081590b65c932977ae97c0fdf4635e47f3523936ae": failed to do request: Head "<https://nexus.infra.svc.cluster.local:18081/v2/example/quarkus-springboot-demo/manifests/sha256:83d0dbb77648335bd17862081590b65c932977ae97c0fdf4635e47f3523936ae>": dial tcp: lookup nexus.infra.svc.cluster.local on 127.0.0.11:53: read udp 127.0.0.1:59808->127.0.0.11:53: i/o timeout
polite-engineer-55788
08/16/2022, 12:44 PMpolite-engineer-55788
08/16/2022, 12:46 PMmirrors:
"nexus.infra.svc.cluster.local":
endpoint:
- "<http://host.k3d.internal>"
configs:
"nexus.infra.svc.cluster.local":
auth:
username: admin
password: admin123
wide-garage-9465
08/16/2022, 12:46 PMand I am trying to pull an image from that local kubernetes serviceYou mean creating a pod with an image from that registry?
containerd
is not inside the cluster, so it doesn't know about the service names. You can use the name in the registries.yaml and point it e.g. to a nodeport service.wide-garage-9465
08/16/2022, 12:47 PMdo you thing something like this will workhost.k3d.internal will redirect pulls to your local machine, so I guess not. It would work if you've exposed the registry using some port-forwarding to your host machine. Then you'd need to add the port to the endpoint config.
polite-engineer-55788
08/16/2022, 12:47 PMYou mean creating a pod with an image from that registry?containerd is not inside the cluster, so it doesn’t know about the service names. You can use the name in the registries.yaml and point it e.g. to a nodeport service.
mirrors:
"nexus.infra.svc.cluster.local":
endpoint:
- "<http://nexus.infra.svc.cluster.local>"
configs:
"nexus.infra.svc.cluster.local":
auth:
username: admin
password: admin123
?polite-engineer-55788
08/16/2022, 12:48 PMnexus.infra.svc.cluster.local
is my Registry service on the cluster and ha node port to itpolite-engineer-55788
08/16/2022, 12:49 PM- port: 127.0.0.1:31081:31081
nodeFilters:
- loadbalancer
polite-engineer-55788
08/16/2022, 12:49 PM31081
is the nodeport of my registry servicewide-garage-9465
08/16/2022, 12:49 PMcontainerd has no idea how to resolve that name. You can make it easy: Use aCopy code<http://nexus.infra.svc.cluster.local>
type: NodePort
service with nodePort: 30555
(example), then add
mirrors:
"nexus.infra.svc.cluster.local":
endpoint:
- "<http://localhost:30555>"
configs:
"nexus.infra.svc.cluster.local":
auth:
username: admin
password: admin123
I didn't test this though.wide-garage-9465
08/16/2022, 12:50 PMpolite-engineer-55788
08/16/2022, 12:50 PMpolite-engineer-55788
08/16/2022, 12:51 PMpolite-engineer-55788
08/16/2022, 3:38 PMpolite-engineer-55788
08/16/2022, 3:39 PMwide-garage-9465
08/16/2022, 3:48 PM