On one of the (newly created) Kubernetes nodes, all pods with private docker image fail with ImagePullBackOff

I have a k8s cluster with 2 nodes.

I have a few deployments and CronJobs running in this cluster, all these deployments and CronJobs use a docker image that is hosted in a private repo on dockerhub.

Some of the deployments gets scheduled on node A, where everything works fine, However, every pod that uses that private image that gets scheduled on node B, fails with ImagePullBackOff. For some reason, this node can not pull the image from the private repo. Even though imagePullSecrets is defined in all the yaml’s for these pods.

Any ideas on where to look or what might be going on here?

The funny/weird thing is, when I delete one of the running pod on node A that is running and that uses the same image + pull secret and it gets scheduled on node B. It gets pulled fine and all subsequent deploys also work fine.

I have a feeling this only happens when the node is newly created and the pods get scheduled on there for the first time, but I can’t figure out why.

Thanks in advance.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

I would try recycling Node B in this case as it sounds like there may be an issue with the docker instance running on node B. Do any workloads run fine on node B?


John Kwiatkoski Senior Developer Support Engineer