How to Check If User Has Permission to Do Something in Kubernetes

Check if user has permission to do something in Kubernetes

Planted .

You can check what role a user has/related to RBAC in Kubernetes.

You can run the command with --as <user>

## To check if user can list pods

kubectl get pods --as devuser
Updated . Thoughts? Email me.