Interview Prep/Kubernetes/Pods & Workloads

What is a Deployment and what does it add over a ReplicaSet?

BeginnerConceptPods & Workloads
Answer

A Deployment manages ReplicaSets to provide declarative rolling updates and rollbacks for stateless apps. Changing the Pod template creates a new ReplicaSet and gradually shifts replicas over; the old ReplicaSets are kept (per revisionHistoryLimit) so you can roll back.

kubectl set image deploy/web web=nginx:1.27.1
kubectl rollout status deploy/web
kubectl rollout undo deploy/web
All Kubernetes questions Roadmap: Kubernetes core

More on Pods & Workloads