kubectl auth can-i <VERB> <TYPE | TYPE/NAME> [Resource]
Check whether an action is allowed
Arguments
| Name | Description | 
|---|---|
| VERB | |
| TYPE | TYPE/NAME | |
| Resource | 
Options
| Name | Description | 
|---|---|
| -A, --all-namespaces | If true, check the specified action in all namespaces | 
| --list | If true, prints all allowed actions | 
| --no-headers | If true, prints allowed actions without headers | 
| -q, --quiet | If true, suppress output and just return the exit code | 
| --subresource  <arg> | SubResource such as pod/log or deployment/scale |