Kuberneters Known Errors

ErrorMeaningCommon CauseTypical Fix
CrashLoopBackOffPod repeatedly crashesApplication error, missing config, bad imageCheck kubectl logs and kubectl describe pod
ImagePullBackOffImage cannot be pulledWrong image name, missing registry credentialsVerify image name and imagePullSecrets
ErrImagePullInitial image pull failedImage doesn't exist or registry unavailableCheck registry and image tag
PendingPod not scheduledInsufficient resources, node selectors, taintsRun kubectl describe pod to view scheduling events
CreateContainerConfigErrorInvalid container configurationMissing ConfigMap or SecretVerify referenced resources
CreateContainerErrorContainer couldn't be createdInvalid command, mount, or permissionsCheck pod events and logs
OOMKilledContainer exceeded memory limitMemory usage above configured limitIncrease memory limit or optimize the application
ContainerCreating (stuck)Container is still startingVolume or network issuesCheck pod events
EvictedPod removed from nodeNode under memory or disk pressureFree resources or adjust requests/limits
NodeNotReadyNode unavailableKubelet or node issuesCheck node status and kubelet logs
FailedSchedulingScheduler couldn't place podResource shortage or affinity constraintsInspect scheduler events
Back-off restarting failed containerRestart delay after repeated failuresApplication keeps exitingCheck application logs
FailedMountVolume mount failedStorage or CSI issuesCheck PVC, PV, and storage class
FailedAttachVolumeVolume couldn't attachCloud or storage problemCheck CSI driver and cloud provider logs
Unauthorized (401)Authentication failedInvalid credentialsVerify kubeconfig or service account
Forbidden (403)Permission deniedRBAC restrictionsCheck Roles and RoleBindings
NotFound (404)Resource doesn't existIncorrect resource name or namespaceVerify resource and namespace
Conflict (409)Resource version conflictConcurrent updatesRetry with the latest resource version
TooManyRequests (429)API server rate limitingHigh request volumeRetry with backoff or reduce request rate
Internal Server Error (500)Kubernetes API/server errorAPI server or controller issueCheck control plane logs
ServiceUnavailable (503)Service temporarily unavailableAPI server or backend unavailableCheck component health

Comments

Popular posts from this blog

ETCD -- Deploying in productin grade cluster

ETCD -- ETCD Snapshot

Kube-Proxy : Configure Production Grade Cluster