Skip to main content

Role



Resource Icon

Resource Overview

A Kubernetes resource that creates roles applicable only within a specified namespace.

Associated Resources

Parent Resource

Connected Resources

Resource Setting Values

  • service_name: Name of the Role resource
  • namespace: Namespace where the Role resource will be deployed
  • annotations: Key-value pairs used to display necessary information in the Kubernetes system
  • labels: User-specified values to distinguish objects
  • rule: Policy rules for the role
    • name: Name of the policy rule
    • api_groups: API groups that include the resources allowed by the rule
    • resources: List of resources to which the rule applies
    • resource_names: Specifies individual instances of the resource if applicable - if empty, includes all instances of the resource
    • verbs: List of verbs that apply to all resources included in the rule

Reference Materials