easykubectl

List all service accounts in a specific namespace

command

kubectl get serviceaccounts -n NAMESPACE

also accepted

kubectl get serviceaccounts -n

Command breakdown

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

kubectlgetserviceaccounts-nNAMESPACE
FlagPurpose
-nBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →