commands.sh

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, --outputboolean

View all RBAC bindings along with the source role binding

Example: rbac-lookup {{[-o|--output]}} wide
-k, --kindboolean

View 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_term

View all RBAC bindings along with the source role binding

rbac-lookup [-o|--output] wide

View all RBAC bindings filtered by subject

rbac-lookup [-k|--kind] user|group|serviceaccount

View all RBAC bindings along with IAM roles (if you are using GKE)

made by @shridhargupta | data from tldr-pages