Summary
In this chapter, we learned that Deployments are a great way to manage Kubernetes apps. They build on top of Pods by adding self-healing, scalability, rolling updates, and rollbacks. Behind the scenes, they leverage ReplicaSets for the self-healing and scalability parts.
Like Pods, Deployments are objects in the Kubernetes API, and we should work with them declaratively.
When we perform updates with the kubectl apply
command, older versions of ReplicaSets get wound down, but they stick around, making it easy to perform rollbacks.