Skip to main content

Kubernetes: Restart a Deployment Safely

Bash

Rolling restart and watch until it's healthy.

C
Chisom Eze Sample
Sample Oct 17, 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 3 Mind-blown
Sign in to react and star