easykubectl

Apply a manifest file into a specific namespace

command

kubectl apply -f MANIFEST_FILE --namespace NAMESPACE

also accepted

kubectl apply -fkubectl apply -f MANIFEST_FILE --namespace

Command breakdown

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

kubectlapply-fMANIFEST_FILE--namespaceNAMESPACE
FlagPurpose
-fBoolean flag
--namespaceBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →