I have been trying to setup Jenkins to utilize Kubernetes as in the tutorials. I have everything working really well, but I have been trying to add some custom images using the Kubernetes Jenkins plugin. It seems that any public images work just fine, but when I create an image and put it in my private Container Registry, the Jenkins slave fails miserably.
I wanted to find out how best to utilize the images in my Container Registry within Jenkins. I found this tutorial (https://cloud.google.com/solutions/jenkins-on-container-engine#customizing_the_docker_image). When I tried those steps by building the jenkins-slave image and pushing it to my repo, it did not work. Every time it complains the slave is offline and is unable to be reached.
Never tried google container registry but from what I understand is that you can just use the complete repo+image name. Something like: gcr.io/my_project/image:tag
Make sure your images/repo are under the same service account as your kubernetes and jenkins on google cloud!