What is the main advantage of using a rolling update strategy in Kubernetes deployments?
Think about how service availability is maintained during updates.
Rolling updates replace pods gradually, one by one, so the application stays available without downtime.
What is the output of the following command if a rolling update is in progress and 2 out of 5 pods have been updated?
kubectl rollout status deployment/myappLook for messages indicating partial progress in rollout.
The command shows how many new pods are available during the rolling update process.
Given this deployment snippet, what is the maximum number of pods that can be unavailable during the rolling update?
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 2
maxUnavailable: 1Check the value of maxUnavailable in the configuration.
The maxUnavailable field controls how many pods can be down during the update. Here it is set to 1.
You started a rolling update but it is stuck and not progressing. Which of the following is the most likely cause?
Consider what prevents new pods from becoming available during update.
If readiness probes fail, new pods won't be ready, so the update waits indefinitely.
Arrange the steps of a Kubernetes rolling update in the correct order.
Think about how new pods are created and verified before old pods are removed.
The rolling update first creates new pods (up to maxSurge), waits for readiness, then removes old pods (up to maxUnavailable), repeating until done.