Kubernetes YAML Cheat Sheet/Customize rolling update strategy

Tune availability during rollout.

Section: Deployments

Customize rolling update strategy

yaml
yaml
strategy:
  type: RollingUpdate
  rollingUpdate:
    maxUnavailable: 1
    maxSurge: 1

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Deployments
Basic Deployment YAML
Run a replicated stateless workload.
OpenIn sheetyamlsame section
Set deployment progress deadline
Mark failed rollouts sooner.
OpenIn sheetyamlsame section
Apply deployment manifest
Create or update the Deployment.
OpenIn sheetbashsame section
Watch rollout status
See whether the new ReplicaSet becomes ready.
OpenIn sheetbashsame section
Minimal Pod manifest
Smallest practical Pod YAML shape.
Labels and annotations example
Common metadata block for selectors and tooling.