Search⌘ K

Deploying New Releases

Explore how Kubernetes Deployments automate the management of ReplicaSets and Pods, allowing you to create, update, and scale applications confidently. Understand the benefits of using Deployments over ReplicaSets directly for zero-downtime updates and version rollbacks.

Just as we are not supposed to create Pods directly but use other controllers like ReplicaSet, we are not supposed to create ReplicaSets either. Kubernetes Deployments will create them for us. If you’re wondering why that is,you’ll have to wait a little while longer to find out.

First, we’ll create a few Deployments. Once we’re familiar with the process and the outcomes, it’ll become obvious why they are better at managing ReplicaSets than we are.

Looking into the definition

Let’s look at a Deployment specification for the database ReplicaSet we’ve been using so far:

...