Open markoelez opened 2 years ago
I was also struggling to get this to work.
In the end I got a working setup using the following config in the k3d.yaml:
...
registries:
create:
name: registry
hostPort: "5000"
config: |
mirrors:
"registry:5000":
endpoint:
- http://registry:5000
Then create the cluster with k3d cluster create mycluster --config k3d.yaml
Pushing to the registry only works using localhost:5000/<IMAGE_NAME>:<IMAGE_TAG>
For Deployments in the cluster I have to specify registry:5000/<IMAGE_NAME>:<IMAGE_TAG>
Issue pulling image from k3d managed local registry
created registry:
created
registry.yaml
:created cluster:
run test:
output:
What did you expect to happen
I expected a running
nginx
pod in my default name space to spin up.Screenshots or terminal output
However, I got the following:
Which OS & Architecture
Which version of
k3d
Which version of docker
version:
info: