easykubectl

Check whether the current user can list secrets in the kube-system namespace

command

kubectl auth can-i list secrets -n kube-system

also accepted

kubectl auth can-i list secretskubectl auth can-i list secrets -n

Command breakdown

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

kubectlauthcan-ilistsecrets-nkube-system
FlagPurpose
-nBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →