kubectl auth can-i <VERB> <TYPE | TYPE/NAME> [Resource]

Check whether an action is allowed

Arguments

NameDescription
VERB
TYPE | TYPE/NAME
Resource

Options

NameDescription
-A, --all-namespacesIf true, check the specified action in all namespaces
--listIf true, prints all allowed actions
--no-headersIf true, prints allowed actions without headers
-q, --quietIf true, suppress output and just return the exit code
--subresource <arg>SubResource such as pod/log or deployment/scale