Automation · Kubernetes Automation
Deployments
Cheat sheet · https://pcornel.dk/topic.php?topic=5795
Answer
Deployments manage stateless pods through ReplicaSets, handling rolling updates, rollbacks with kubectl rollout undo, scaling and self-healing of failed pods.
Remember
- Deployments manage ReplicaSets and rolling updates.
- kubectl rollout undo reverts.
- Readiness probes decide when pods get traffic.
First checks
kubectl rollout status deploy/<n> -n <ns>— rolloutkubectl rollout history deploy/<n>— revisionskubectl rollout undo deploy/<n>— rollback
Verify in this order
new spec → rollout → ready pods → done
Where it usually breaks
Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5795