Install k3d https://k3d.io/#installation
Create registry
k3d registry create registry.localhost --port 5000
Create Cluster with registry and expose port
k3d cluster create mycluster -p "8081:80@loadbalancer" --registry-use k3d-registry.localhost:5000 --registry-config registries.yaml
registries.yaml:
mirrors:
"localhost:5000":
endpoint:
- http://k3d-registry.localhost:5000
optionaly:
#mirrors:
docker.io:
endpoint:
- http://k3d-registry.localhost:5000
Now you can push docker push localhost:5000/myimage:latest
and then use it kubectl run myimage --image localhost:5000/myimage:latest