mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
712 B
Plaintext
30 lines
712 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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/FairwindsOps/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:
|
|
|
|
`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):
|
|
|
|
`rbac-lookup --gke`
|