Use the command 'kubectl auth can-i ....' to see whether you can able to perform specific operation or not.
Example
kubectl auth can-i get pods
kubectl auth can-i get deployment
kubectl auth can-i get replicaset
kubectl auth can-i create pod
$kubectl auth can-i get pods
yes
$
$kubectl auth can-i get deployments
yes
$
$kubectl auth can-i get replicasets
yes
$
$kubectl auth can-i create pod
Yes
No comments:
Post a Comment