Interview Prep/Kubernetes/Deployments and rollouts

What does `kubectl rollout restart` do and when do you use it?

BeginnerScenarioDeployments and rollouts
Answer

Situation read → A ConfigMap changed and the app only reads it at startup.

What I'd do →

  1. kubectl rollout restart deploy/web
  2. kubectl rollout status deploy/web
  3. Verify new pods have newer AGE with kubectl get pods
  4. Prefer a checksum annotation in the pod template (Helm sha256sum) so config changes trigger rollouts automatically

Why → The command adds a kubectl.kubernetes.io/restartedAt annotation to the pod template, which creates a new ReplicaSet and a normal rolling update.

Interview tip → Note it is zero-downtime when probes and strategy are correct, unlike deleting pods by hand.

All Kubernetes questions Roadmap: Kubernetes core

More on Deployments and rollouts