I am trying Kubernetes and it won’t create pods

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


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s