I often get errors about pods not syncing / ImagePullBackOff errors on my Kubernetes cluster on Google Kubernetes Engine. But I'm not sure how to debug the issue as I can't establish the root cause.
In the Google dashboard I can see the ReplicaSet has the warning: Pod errors: ImagePullBackOff
If I drill down to the pod, I can see in the logs: Message: Error syncing pod Reason: FailedSync
but nothing further. Why would a pod fail to sync?
UPDATE: further down in the logs I see:
Failed to pull image "cockroachdb/cockroach:v1.1.3": rpc error: code = Unknown desc = failed to register layer: ApplyLayer exit status 1 stdout: stderr: open /usr/share/zoneinfo/right/America/Pangnirtung: no space left on device
I've allocated cockroachdb 1 GB of persistent storage - going to try to increase to 10 GB to see if that fixes anything. Or do I need to increase the disk size on the node pools?
ImagePullBackOff occurs most of the time due to typos in the image name or not being able to reach the repository:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With