Kubernetes YAML Cheat Sheet/Apply deployment manifest

Create or update the Deployment.

Section: Deployments

Apply deployment manifest

bash
bash
kubectl apply -f deployment.yaml

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
Customize rolling update strategy
Tune availability during rollout.
OpenIn sheetyamlsame section
Set deployment progress deadline
Mark failed rollouts sooner.
OpenIn sheetyamlsame section
Watch rollout status
See whether the new ReplicaSet becomes ready.
OpenIn sheetbashsame section
Apply YAML file
Create or update resources from a YAML file.
OpenIn sheetbash1 tag match
Show last-applied configuration
Inspect the apply annotation on a live resource.
OpenIn sheetbash1 tag match