I've been trying to run the Hello Node tutorial for a couple of days now and I finally figured out what was preventing me from seeing the app, but I'm not sure why this is happening.
I looked at the Kubernetes events tab and kept seeing this error.
Failed to pull image "gcr.io/simpleapp-1073/hello-node": Error: image simpleapp-1073/hello-node:latest not found
simpleapp-1073
is my PROJECT_ID
When I pushed the docker image to the public docker hub and pointed my image attribute to that, everything finally started working.
Is there some trick to getting the private container registry working?
In order to pull images from your private repository, you'll need to login to Docker. If no registry URI is specified, Docker will assume you intend to use or log out from Docker Hub. Triton comes with several images built-in. You can view the available list with triton images .
To resolve it, double check the pod specification and ensure that the repository and image are specified correctly. If this still doesn't work, there may be a network issue preventing access to the container registry. Look in the describe pod text file to obtain the hostname of the Kubernetes node.
Tag image with registry name This configures the docker push command to push the image to a specific location. The registry name format is: gcr.io/[PROJECT-ID]/[IMAGE] where [PROJECT-ID] is your Google Cloud Platform Console project ID and [IMAGE] is your image's name. You are now ready to push your image to GCR!
I had similar issue. Authentication of local docker with Google registry helped:
gcloud docker -a
and then
sudo docker pull gcr.io/simpleapp-1073/hello-node
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With