Pods go into CrashLoopBackOff after a config change; logs show `KeyError: 'DATABASE_URL'`.
BeginnerTroubleshootingSite down
Answer
Likely causes → The env var was removed or renamed in the ConfigMap/Secret, the Secret key changed, or the pod references a Secret in another namespace.
Diagnose →
kubectl logs deploy/api -n prod --previous
kubectl describe pod -n prod -l app=api | grep -A5 -i -E 'environment|events'
kubectl get secret api-secrets -n prod -o jsonpath='{.data}' | jq 'keys'
Fix → kubectl rollout undo deploy/api -n prod, then restore the key.
Prevent → Validate required config at startup with a clear message, keep config in the same PR as code, and mark env refs with optional: false (the default) so missing keys fail at pod creation, not runtime.
More on Site down
Every user reports "This site can't be reached — ERR_NAME_NOT_RESOLVED" for your domain.BeginnerRight after a deploy, nginx returns "502 Bad Gateway" on every page.BeginnerALB returns "503 Service Temporarily Unavailable" and the target group shows 0 healthy targets.Beginner`curl https://app.example.com` hangs and ends with "Connection timed out" on port 443.BeginnerAfter a Helm upgrade, the ingress returns "default backend - 404" for your domain.IntermediateAll pods are Running and Ready, but the Service has no endpoints and traffic fails.Intermediate