← Debugging388 / 640
hardkubectl

Check whether the current user has permission to create pods in a namespace

command

kubectl auth can-i create pods --namespace NAMESPACE

also accepted

kubectl auth can-i

Command breakdown

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

kubectlauthcan-icreatepods--namespaceNAMESPACE
FlagPurpose
--namespaceBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →