Pcornel
Automation · Kubernetes Automation

Deployments

Cheat sheet · https://pcornel.dk/topic.php?topic=5795

Back to the Topic

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> — rollout
  • kubectl rollout history deploy/<n> — revisions
  • kubectl 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

Confirmation

Confirm action

Continue?