Cluster Role
A Cluster Role in Kubernetes is a resource that is used to define a set of permissions for access to resources in a Kubernetes cluster. It grants access permissions that are not confined to a specific namespace, mainly used for cluster-wide access or for resources that are not namespace-bound. Cluster Roles can be used in combination with Role Bindings or Cluster Role Bindings to assign these permissions to users, applications, or other entities. For more detailed information, you can refer to the official Kubernetes documentation on Cluster Roles.
Terraform Mappings:
kubernetes_cluster_role_v1.metadata[0].name
Supported Methods​
GET
: Get a Cluster Role by nameLIST
: List all Cluster RolesSEARCH
: Search for a Cluster Role using the ListOptions JSON format e.g. ("labelSelector": "app=wordpress")