Skip to content
masterclass Buddy

DevOps · Concept

Deployment

A Deployment declares how many application Pods should run and which Pod template to use. Kubernetes creates ReplicaSets and updates Pods until they match that declaration.

Last updated

Syntax

apiVersion: apps/v1
kind: Deployment
metadata:
  name: <name>
spec:
  replicas: <number>
  selector:
    matchLabels: <labels>
  template:
    metadata:
      labels: <labels>
    spec:
      containers: [...]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • ReplicaSet
  • Pod
  • PodTemplateSpec
  • RollingUpdate
  • kubectl rollout status
  • kubectl set image

Source: Deployments | Kubernetes. Checked 2026-11-03.