easykubectl

Export a namespace definition as YAML

command

kubectl get namespace NAMESPACE -o yaml

also accepted

kubectl get namespace

Command breakdown

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

kubectlgetnamespaceNAMESPACE-oyaml
FlagPurpose
-oBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →