![Forrest logo](/images/logo.png)
rbac-lookup:tldr:03bfa
The command rbac-lookup -o wide is used to list the roles and role bindings in Kubernetes, along with additional information about the subjects associated with those roles.
Here's what each part of the command does:
-
rbac-lookup: This is the main command that refers to the RBAC (Role-Based Access Control) lookup utility. It allows you to retrieve information about RBAC roles and bindings in Kubernetes.
-
-o wide: This is an option that tells the command to output the information in a wide format, providing additional details about the roles and bindings. The wide format typically includes more columns or fields compared to a default or compact format. It helps to provide a more comprehensive view of the RBAC configuration.
When you run the command rbac-lookup -o wide, it will display the list of roles and corresponding bindings in a detailed format with additional attributes like the namespace, kind, subject, and other relevant information. This command is commonly used for troubleshooting RBAC-related issues or auditing purposes, as it enables you to examine the current RBAC configuration in a more comprehensive manner.