Difference between revisions of "Kubectl rbac commands"
Jump to navigation
Jump to search
(Created page with "Rbac in kubernetes: ``` kubectl auth can-i create deployments (check permission as an admin) kubectl auth can-i create deployments - -as bob (check permission of a user) ku...") |
|||
Line 9: | Line 9: | ||
the auth can-i allow you to test the capabilities of user in a kubernetes cluster | the auth can-i allow you to test the capabilities of user in a kubernetes cluster | ||
+ | |||
+ | you can filter kubernetes object by using labels and use multiple labels with a comma separate definitions: | ||
+ | ``` | ||
+ | kubectl get po -l ‘environment=dev,release=nightly’ | ||
+ | ``` |
Latest revision as of 14:43, 11 October 2023
Rbac in kubernetes:
kubectl auth can-i create deployments (check permission as an admin) kubectl auth can-i create deployments - -as bob (check permission of a user) kubectl auth can-i create deployments - -as bob - -namespace developer
the auth can-i allow you to test the capabilities of user in a kubernetes cluster
you can filter kubernetes object by using labels and use multiple labels with a comma separate definitions:
kubectl get po -l ‘environment=dev,release=nightly’