rbac-lookup
all
Find roles and cluster roles attached to any user, service account or group name in your Kubernetes cluster.
More info →Options (2)
-o, --outputbooleanView all RBAC bindings along with the source role binding
Example:
rbac-lookup {{[-o|--output]}} wide-k, --kindbooleanView all RBAC bindings filtered by subject
Example:
rbac-lookup {{[-k|--kind]}} {{user|group|serviceaccount}}Examples (5)
View all RBAC bindings
View RBAC bindings that match a given expression
rbac-lookup search_termView all RBAC bindings along with the source role binding
rbac-lookup [-o|--output] wideView all RBAC bindings filtered by subject
rbac-lookup [-k|--kind] user|group|serviceaccountView all RBAC bindings along with IAM roles (if you are using GKE)
rbac-lookup --gkemade by @shridhargupta | data from tldr-pages