2019-07-05 23:00:28 +02:00
|
|
|
# rbac-lookup
|
|
|
|
|
|
|
|
> Find roles and cluster roles attached to any user, service account or group name in your Kubernetes cluster.
|
|
|
|
> More information: <https://github.com/reactiveops/rbac-lookup>.
|
|
|
|
|
|
|
|
- View all RBAC bindings:
|
|
|
|
|
|
|
|
`rbac-lookup`
|
|
|
|
|
|
|
|
- View RBAC bindings that match a given expression:
|
|
|
|
|
|
|
|
`rbac-lookup {{search_term}}`
|
|
|
|
|
|
|
|
- View all RBAC bindings along with the source role binding:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`rbac-lookup {{[-o|--output]}} wide`
|
2019-07-05 23:00:28 +02:00
|
|
|
|
|
|
|
- View all RBAC bindings filtered by subject:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`rbac-lookup {{[-k|--kind]}} {{user|group|serviceaccount}}`
|
2019-07-05 23:00:28 +02:00
|
|
|
|
|
|
|
- View all RBAC bindings along with IAM roles (if you are using GKE):
|
|
|
|
|
|
|
|
`rbac-lookup --gke`
|