Update image (triggers rolling update)

Learning Kubernetes · 3:29

Listen on 93

Lyrics

[Verse 1]
Your pods are running yesterday's code
The new version's ready to deploy
But you don't want downtime on the road
Rolling updates are what you'll employ

kubectl set image is the way
Point to your deployment by name
Container equals image tag today
And watch the magic rearrange

[Chorus]
Set image deployment, container name
Image colon tag, it's all the same
Rolling smooth, no downtime pain
New pods up, old ones fade away
kubectl set image saves the day
Rolling updates all the way

[Verse 2]
First you specify deployment slash name
The resource that you want to change
Then the container in the game
Followed by the image you'll exchange

The old tag's "v1" but now it's "v2"
Kubernetes does the heavy lift
Creates new pods with something new
While traffic makes a seamless shift

[Chorus]
Set image deployment, container name
Image colon tag, it's all the same
Rolling smooth, no downtime pain
New pods up, old ones fade away
kubectl set image saves the day
Rolling updates all the way

[Bridge]
Watch the rollout status flow
Old replicas decreasing slow
New ones coming up to show
Zero downtime as you go

Deployment slash your-app-name
Container equals nginx-web
Image colon v-two-dot-ten
Rolling forward, never dread

[Chorus]
Set image deployment, container name
Image colon tag, it's all the same
Rolling smooth, no downtime pain
New pods up, old ones fade away
kubectl set image saves the day
Rolling updates all the way

[Outro]
When your code needs to update
Rolling deployments seal your fate
kubectl set image, don't be late
Your users never have to wait

← Create a deployment | View rollout status →