0
0
Kubernetesdevops~5 mins

Rolling update strategy in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a rolling update strategy in Kubernetes?
A rolling update strategy gradually replaces old versions of an application with new ones without downtime by updating pods one at a time.
Click to reveal answer
beginner
How does Kubernetes ensure zero downtime during a rolling update?
Kubernetes updates pods incrementally, keeping some old pods running until new pods are ready, so the service stays available.
Click to reveal answer
intermediate
What is the role of 'maxUnavailable' in a rolling update?
'maxUnavailable' sets the maximum number of pods that can be unavailable during the update, controlling update speed and availability.
Click to reveal answer
intermediate
What does 'maxSurge' control in a rolling update?
'maxSurge' controls how many extra pods can be created above the desired number during the update to speed up deployment.
Click to reveal answer
beginner
Why is a rolling update preferred over recreating all pods at once?
Because it avoids downtime by updating pods gradually, keeping the application available during the process.
Click to reveal answer
What does a rolling update do in Kubernetes?
AUpdates pods one by one without downtime
BDeletes all pods and creates new ones at once
CStops the service during update
DUpdates only half of the pods
Which setting controls how many pods can be unavailable during a rolling update?
AmaxUnavailable
BmaxSurge
Creplicas
DminReadySeconds
What does 'maxSurge' allow during a rolling update?
APods to restart automatically
BPods to be deleted faster
CExtra pods above desired count
DPods to be scaled down
Why is rolling update strategy important?
AIt updates only one pod forever
BIt prevents downtime during updates
CIt stops the service temporarily
DIt deletes all pods quickly
During a rolling update, what happens to old pods?
AThey are paused
BThey are deleted immediately
CThey keep running forever
DThey are terminated only after new pods are ready
Explain how a rolling update works in Kubernetes and why it is useful.
Think about how pods are updated one by one and how availability is maintained.
You got /4 concepts.
    Describe the difference between maxUnavailable and maxSurge in a rolling update.
    One controls how many pods can be offline, the other controls extra pods created.
    You got /3 concepts.