Role
A Role in Kubernetes defines a set of permissions that can be granted within a namespace, allowing for fine-grained access control to resources in that specific context. Roles specify what actions can be performed on which resources (such as pods or services) within the namespace they are created in. For more detailed information, refer to the official Kubernetes documentation on Roles.
Terraform Mappings:
kubernetes_role_v1.metadata[0].name
kubernetes_role.metadata[0].name
Supported Methods​
GET
: Get a Role by nameLIST
: List all RolesSEARCH
: Search for a Role using the ListOptions JSON format e.g. ("labelSelector": "app=wordpress")