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.
SubscribeRelated
ReplicaSetPodPodTemplateSpecRollingUpdatekubectl rollout statuskubectl set image