hardkubectl
Check whether a specific user has permission to list pods in a namespace
command
kubectl auth can-i list pods --namespace NAMESPACE --as USERalso accepted
kubectl auth can-ikubectl auth can-i list pods --namespace NAMESPACE --ascommand
kubectl auth can-i list pods --namespace NAMESPACE --as USERalso accepted
kubectl auth can-ikubectl auth can-i list pods --namespace NAMESPACE --asPart of the Kubernetes CLI (kubectl) — Namespaces category.
| Flag | Purpose |
|---|---|
--namespace | Boolean flag |
--as | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →