Kubernetes
Medium
Concepts
What is the difference between a RollingUpdate and a Recreate deployment strategy?
Select your answer:
Show answer and explanation
Answer: RollingUpdate gradually replaces pods, while Recreate terminates all existing pods before creating new ones
Explanation
With a RollingUpdate strategy, the Deployment updates pods in a rolling fashion, creating new pods and terminating old ones gradually, ensuring availability during updates. With a Recreate strategy, all existing pods are terminated before new ones are created, causing downtime but ensuring no two versions run simultaneously.
More medium Kubernetes questions
- Which command would you use to view the logs of a specific container in a multi-container pod?
- What is a Kubernetes Toleration?
- What is the purpose of a Kubernetes StorageClass?
- Which command would you use to drain a node for maintenance?
- What is the purpose of the 'kubectl rollout' command?
- What is a Kubernetes Endpoint?