How do you alert on a Deployment that is "stuck" mid-rollout?
IntermediateProductionObservability & Day-2 Operations
Answer
Alert when kube_deployment_status_replicas_unavailable > 0 or kube_deployment_status_observed_generation != kube_deployment_metadata_generation for more than 10-15 minutes, and when the Progressing condition has reason ProgressDeadlineExceeded. Argo CD health status Degraded is another signal.
More on Observability & Day-2 Operations
What are the three pillars of observability and the standard tools on Kubernetes?BeginnerWhat is kube-state-metrics and how does it differ from metrics-server?BeginnerWhich alerts do you set up first on a cluster?BeginnerWhere do container logs live and how do you ship them?BeginnerWhat is the difference between `kubectl logs --previous` and `kubectl logs -f`?BeginnerWhat does a good runbook for a Kubernetes alert include?Beginner