hardkubectl

Create a resource and save its configuration as an annotation for future apply operations

command

kubectl create -f FILE --save-config

also accepted

kubectl create -f

Command breakdown

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

kubectlcreate-fFILE--save-config
FlagPurpose
-fBoolean flag
--save-configBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →