CmdID / kubectl / kubectl auth
kubectl auth can-i
Check whether an action is allowed kubectl reference
6 options Its page in the kubectl reference
Options
--all-namespaces, -AIf true, check the specified action in all namespaces.--help, -hhelp for can-i--listIf true, prints all allowed actions.--no-headersIf true, prints allowed actions without headers--quiet, -qIf true, suppress output and just return the exit code.--subresourceSubResource such as pod/log or deployment/scale