Following this document from Red Hat, I am giving Kubernetes a spin to manage docker containers today.
So I followed the instructions and got ready to launch pods but it won’t. “docker ps -a” shows nothing. “kubectl get pod” shows me it is trying create two pods but the status remains “creating….”.
Then I see this /var/log/messages:
Feb 4 06:17:26 my_host_name kubelet: E0204 06:17:26.026916 15051 manager.go:1557] Failed to create pod infra container: image pull failed for gcr.io/google_containers/pause:0.8.0, this may be because there are no credentials on this request. details: (unable to ping registry endpoint https://gcr.io/v0/
It is trying pull “pause” image from Google and my server can’t access it. I verified with “docker pull gcr.io/google_containers/pause:0.8.0”.
I found workaround here by way of pulling the image from docker.io which I can access.
docker pull docker.io/kubernetes/pause
docker tag kubernetes/pause gcr.io/google_containers/pause:0.8.0
docker tag gcr.io/google_containers/pause:0.8.0 gcr.io/google_containers/pause