DELAPARRA
Index
Color
NL
Category: Kubernetes

Deployment

Explained by Updated

What is Deployment?

Deployment: The standard way to run stateless apps. It manages a ReplicaSet and gives you rolling updates, rollbacks, and a declared replica count. A Deployment is the standard Kubernetes object for running stateless applications, such as web servers and APIs. You declare which image to run and how many copies, and Kubernetes keeps that many pods running.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Deployment

How is Deployment used in practice?

It also handles updates. When you change the image, the Deployment replaces pods gradually, keeping the application available. If the new version fails its health checks, the rollout stops, and kubectl rollout undo brings back the previous version.

What should you keep in mind with Deployment?

Good Deployments have readiness and liveness probes, resource requests and limits, and more than one replica for anything important. That way Kubernetes knows when a pod is ready for traffic, restarts it when it hangs, and places it sensibly. For databases and other stateful services, a StatefulSet or a managed database is usually the better choice.

What does an example of Deployment look like?

apiVersion: apps/v1 kind: Deployment metadata: name: web spec: replicas: 3 selector: matchLabels: { app: web } template: metadata: labels: { app: web } spec: containers: - name: web image: nginx:1.27

At a glance

CategoryKubernetes
Explained by
Updated

More Kubernetes terms

All terms starting with D

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.