Rollback to previous version

Kubernetes Administration Essentials · 3:31

Listen on 93

Lyrics

[Verse 1]
When your deployment goes astray
And the new version breaks today
Don't panic when the users call
There's a command to fix it all
Kubectl rollout undo saves the day
Takes you back to yesterday
Just add deployment and the name
Your system's running right again

[Chorus]
Roll it back, roll it back
When the current version's cracked
Undo deployment by name
Makes it work the same
Roll it back, roll it back
Get your system on the track
Kubectl rollout undo
That's what you need to do

[Verse 2]
Sometimes you need a specific place
Not just the previous embrace
Add the flag to revision three
Or whatever number it should be
Version history keeps the trail
Of every update without fail
Choose the number that worked before
That's what revision flags are for

[Chorus]
Roll it back, roll it back
When the current version's cracked
Undo deployment by name
Makes it work the same
Roll it back, roll it back
Get your system on the track
Kubectl rollout undo
That's what you need to do

[Bridge]
To revision equals the number you choose
Three or five or two you can use
Previous version is the default way
When you don't specify the day
Quick recovery from your mistake
Rolling back for your users' sake

[Chorus]
Roll it back, roll it back
When the current version's cracked
Undo deployment by name
Makes it work the same
Roll it back, roll it back
Get your system on the track
Kubectl rollout undo
That's what you need to do

[Outro]
When deployments go wrong today
Remember rollback is the way

← View network policies | 5 Troubleshooting Common Issues →