kubectl rollout restart deploy/web

Category: Kubernetes & Containers

kubectl rollout restart deploy/web

Restart pods with zero downtime

Triggers a rolling restart of the deployment's pods by updating their pod template annotation. Useful for picking up new configmaps or secrets without changing the image. Watch progress with kubectl rollout status deploy/web --timeout=120s.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.