What happens when you roll back to a specific revision of a Deployment?

Study for the Kubernetes Cloud Native Associate (KCNA) Certification. Prepare with flashcards and multiple choice questions. Ensure success with detailed explanations. Ready for your exam!

Multiple Choice

What happens when you roll back to a specific revision of a Deployment?

Explanation:
Rolling back to a specific revision reactivates the ReplicaSet that was created for that revision. Kubernetes keeps a history of ReplicaSets for each Deployment, one per revision. When you roll back, the Deployment switches its active Pod template back to that older revision and the corresponding ReplicaSet becomes the current one. The old ReplicaSet isn’t deleted; it’s simply reused as the latest revision, and the system reconciles pods to match that revision.

Rolling back to a specific revision reactivates the ReplicaSet that was created for that revision. Kubernetes keeps a history of ReplicaSets for each Deployment, one per revision. When you roll back, the Deployment switches its active Pod template back to that older revision and the corresponding ReplicaSet becomes the current one. The old ReplicaSet isn’t deleted; it’s simply reused as the latest revision, and the system reconciles pods to match that revision.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy