By OGKevin
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.
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!
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?
Regards,
John Kwiatkoski Senior Developer Support Engineer
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.