Prompt
Why does Kubernetes keep failing my deployments?
Latest observation
Oct 19, 2026
OpenAI APIWeb search: off
Kubernetes deployments usually fail for one of a handful of reasons. The trick is to identify which layer is failing: scheduling, image pulling, startup, readiness, networking, config, or resource limits.
Most common causes
1. Bad image or image pull issues
- Wrong image name/tag
- Private registry auth missing
- Image doesn’t exist
- Architecture mismatch
Symptoms:
ImagePullBackOffErrImagePull
Check:
kubectl describe pod <pod-name>
2. Container starts but crashes immediately
- App exits on startup
- Missing environment variables
- Bad command/args
- Config file errors
Symptoms:
CrashLoopBackOff
Check logs:
kubectl logs <pod-name>
kubectl logs <pod-name> --previous
3. Readiness/liveness probes are wrong
- App needs more startup time than probe allows
- Probe path/port incorrect
- App only binds to
localhost - Probe is too aggressive
Symptoms:
- Pod runs, but never becomes Ready
- Repeated restarts
Check pod details:
kubectl describe pod <pod-name>
4. Resource limits too low
- CPU/memory requests too small
- Container gets OOM-killed
- Node can’t fit the pod
Symptoms:
OOMKilledPending- eviction events
Check:
kubectl describe pod <pod-name>
kubectl top pod
kubectl top nodes
5. Scheduling problems
- No nodes match nodeSelector/affinity
- Taints without tolerations
- Insufficient cluster resources
- PVC not bound
Symptoms:
- Pod stuck in
Pending
Check events:
kubectl describe pod <pod-name>
kubectl get events --sort-by=.metadata.creationTimestamp
6. Service or ingress misconfiguration
- Service selects wrong labels
- Wrong targetPort
- Ingress points to wrong service/path/host
- TLS secret missing
Symptoms:
- Pod is running, but app is unreachable
Check:
kubectl get svc
kubectl describe svc <service-name>
kubectl describe ingress <ingress-name>
7. Bad config from ConfigMap/Secret
- Missing keys
- Wrong secret name
- Wrong mount path
- Wrong environment variable reference
Symptoms:
- Crash on startup
- App works locally but not in cluster
8. RBAC or permissions issues
- Service account lacks permission to access API resources
- Cannot mount secrets/configmaps in some setups
- Cloud provider permissions missing for volumes, load balancers, etc.
Symptoms:
- Permission denied errors in logs/events
Fast debugging workflow
Run these in order:
kubectl get pods
kubectl describe pod <pod-name>
kubectl logs <pod-name>
kubectl logs <pod-name> --previous
kubectl get events --sort-by=.metadata.creationTimestamp
If the deployment is involved:
kubectl describe deployment <deployment-name>
kubectl rollout status deployment/<deployment-name>
kubectl rollout history deployment/<deployment-name>
If you want the exact reason
Paste the output of:
kubectl describe pod <pod-name>
kubectl logs <pod-name> --previous
and I can tell you what’s failing and how to fix it.
Brands