beginnerWorkloads I: Deployment & ReplicaSet
How does kubectl rollout undo work mechanically?
Each revision is backed by a retained ReplicaSet at zero replicas. Rollback simply scales the target previous ReplicaSet back up and the current one down -- the Pod template already exists, making rollback much faster than a fresh deploy.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response