I want to create a private registry where in I want to push my docker images and create deployment using those images. I have created a kubernetes cluster with one master one slave in AWS using KOPS. I followed this link: https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/registry to create a registry service and expose it on slave node.
Then I build a docker image and push it to registry as localhost:5000/ as given in this link.
Now when I try to create a deployment using this image, I get the error:
Failed to pull image "localhost:5000/postgres-sdl": rpc error: code = 2 desc = Error while pulling image: Get http://localhost:5000/v1/repositories/postgres-sdl/images: dial tcp [::1]:5000: getsockopt: connection refused
After building docker image I tag and push the image with this name: localhost:5000/postgres-sdl
My deployment yaml looks like this:
image: localhost:5000/postgres-sdl
postgres-sdl
image, but you wrote, that you uploaded the imagemanagement
. Is there an image mismatch? – adebasi