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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store