← Services540 / 640
easykubectl

Export the default service account definition for the current namespace as YAML

command

kubectl get serviceaccount default -o yaml

also accepted

kubectl get serviceaccount

Command breakdown

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

kubectlgetserviceaccountdefault-oyaml
FlagPurpose
-oBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →