Saturday 11 July 2020

How to check what operations you can perform against Kubernetes?

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



Previous                                                    Next                                                    Home

No comments:

Post a Comment