Pods can have startup and runtime errors.
Startup errors include:
β
ImagePullBackoff
β
ImageInspectError
β
ErrImagePull
β
ErrImageNeverPull
β
RegistryUnavailable
β
InvalidImageName
Runtime errors include:
π
β
CrashLoopBackOff
β
RunContainerError
β
KillContainerError
β
VerifyNonRootError
β
RunInitContainerError
β
CreatePodSandboxError
β
ConfigPodSandboxError
β
KillPodSandboxError
β
SetupNetworkError
β
TeardownNetworkError
π°πππππ·ππππ©ππππΆππ
β
β This error appears whenΒ #k8sΒ isn’t able to retrieve the image for one of theΒ #containersΒ of the Pod.
There are three common culprits:
β
The image name is invalid
β
You specified a non-existing tag for the image.
β
The image that you’re trying to retrieve belongs to a private registry and the cluster doesn’t have credentials to access it.
The first two cases can be solved by correcting the image name and tag.
For the last, one should add the credentials to your private registry in a Secret and reference it in the Pods
πΉπππͺπππππππππ¬ππππ
β
β The error appears when the container is unable to start before application
Common causes:
β
Mounting a not-existent volume such as ConfigMap or Secrets
β
Mounting a read-only volume as read-write
More detailed aspect can be found by describing the ‘failed’ pod
πͺπππππ³ππππ©ππππΆππ
β
β If the container can’t start, thenΒ #KubernetesΒ shows the CrashLoopBackOff message as a status.
Usually, a container can’t start when:
β
There’s an error in the application that prevents it from starting.
β
YouΒ misconfigured the container.
β
The Liveness probe failed too many times.
π·ππ π ππ π π·πππ πππ πππππ
β
β Assuming that the scheduler component is running fine, here are the causes:
β
The cluster doesn’t have enough resources such as CPU and memory to run the Pod.
β
The current Namespace has a ResourceQuota object and creating the Pod will make the Namespace go over the quota.
β
The Pod is bound to aΒ PendingΒ PersistentVolumeClaim.
The best option is to inspect theΒ EventsΒ section in theΒ “kubectl describe”
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024