Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.01 KB

File metadata and controls

39 lines (29 loc) · 1.01 KB

Runbook: Deployment Failure

Severity: P2 | Team: Infrastructure

Symptoms

  • CI/CD pipeline fails or pods stuck in Pending/CrashLoopBackOff
  • Alert: DeploymentFailed or PodCrashLooping

Diagnosis

# Check rollout status
kubectl rollout status deployment/gistpin-backend

# Describe failing pods
kubectl describe pod -n gistpin -l app=gistpin-backend

# Check recent events
kubectl get events -n gistpin --sort-by='.lastTimestamp' | tail -20

Resolution

  1. Rollback immediately if production is impacted:
    kubectl rollout undo deployment/gistpin-backend
    kubectl rollout status deployment/gistpin-backend --timeout=60s
  2. Fix and redeploy after identifying root cause in logs/events.
  3. Check image pull errors — verify registry credentials:
    kubectl get secret regcred -n gistpin

Escalation

If rollback fails → page on-call engineer immediately.

Post-Mortem

File within 24 hours for P2 incidents. Template in incident-response.md.