easykubectl

Create resources from a YAML or JSON file, failing if they already exist

command

kubectl create -f FILENAME

also accepted

kubectl create -f

Command breakdown

Part of the Kubernetes CLI (kubectl) — Resource Operations category.

kubectlcreate-fFILENAME
FlagPurpose
-fBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →