Files
tldr/pages.zh/common/rbac-lookup.md

24 lines
600 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# rbac-lookup
> 在您的 Kubernetes 集群中查找附加到任何用户、服务账户或组名称的角色和集群角色。
> 更多信息请访问:<https://github.com/reactiveops/rbac-lookup>。
- 查看所有 RBAC 绑定:
`rbac-lookup`
- 查看与给定表达式匹配的 RBAC 绑定:
`rbac-lookup {{search_term}}`
- 查看所有 RBAC 绑定及其源角色绑定:
`rbac-lookup -o wide`
- 按主题过滤查看所有 RBAC 绑定:
`rbac-lookup -k {{user|group|serviceaccount}}`
- 查看所有 RBAC 绑定以及 IAM 角色(如果您正在使用 GKE
`rbac-lookup --gke`