Rolling Updates & RollbacksIntermediate
1Question 1 of 1
bashHow do Rolling Updates and Rollbacks work in Kubernetes Deployments?
Explanation & Concept
A Rolling Update gradually replaces old Pods with new ones without downtime, governed by `maxSurge` (how many pods can be created above desired count) and `maxUnavailable`.
Code Example
bash
# Check rollout status
kubectl rollout status deployment/web-deployment
# Instantly rollback to previous revision
kubectl rollout undo deployment/web-deploymentHow It Works & Key Takeaways
Rolling updates guarantee that traffic continues to be served by healthy pods throughout the entire deployment process.
Mock Test · 1 Questions · Optional
Ready for Liveness & Readiness Probes?
Take a quick test to evaluate yourself, or move straight to the next module.
Intermediate1 questions