Skip to main content

Kubernetes: Restart a Deployment Safely

Bash

Rolling restart and watch until it's healthy.

C
Chisom Eze
Sample Sep 8, 2026
Bash · 2 lines
1
2
kubectl rollout restart deployment/api -n production
kubectl rollout status deployment/api -n production --timeout=5m
0 Fire 2 Learned something 1 Saved me time 2 Mind-blown
Sign in to react and star