hardkubectl

Validate a deployment manifest locally without sending it to the cluster

command

kubectl apply -f DEPLOYMENT_FILE --dry-run=client

also accepted

kubectl apply

Command breakdown

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

kubectlapply-fDEPLOYMENT_FILE--dry-run=client
FlagPurpose
-fBoolean flag
--dry-runSet to: client

Test your recall — not just your reading.

Practice with interactive quiz →