JAEN

Kubernetes

kubectl rollout

CautionRollout restart/undo

kubectl rollout restart deploy/<name> -n <ns>

Restart, check, or roll back a Deployment.

Examples

  • kubectl rollout undo deploy/web -n prodRoll back to the previous revision

Syntax

kubectl rollout restart|status|undo deploy/<name> -n <ns>

Before you run it

restart/undo replace running pods.

Used when you see

Pod stuck in CrashLoopBackOff
4
Roll back if a recent deploy caused it
See the whole flow →

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store