easykubectl

Export a deployment's full specification as YAML for inspection or backup

command

kubectl get deployment DEPLOYMENT -o yaml

also accepted

kubectl get deployment

Command breakdown

Part of the Kubernetes CLI (kubectl) — Deployments category.

kubectlgetdeploymentDEPLOYMENT-oyaml
FlagPurpose
-oBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →