Skip to main content

ClusterRole



Resource Icon

Resource Overview

A Kubernetes resource that creates roles applicable at the cluster level and across all namespaces

Associated Resources

Parent Resource

Connected Resources

Resource Setting Values

  • service_name: Name of the ClusterRole resource
  • annotations: Key-value pairs used to display necessary information in the Kubernetes system
  • labels: User-specified values to distinguish objects
  • rule: Policy role for the ClusterRole
    • name: Name of the policy role
    • api_groups: API groups that include the resources allowed by this policy
    • resources: List of resources to which this rule applies
    • resource_names: Specifies individual instances of the resource if selected - if empty, includes all instances of the resource
    • non_resource_urls: Used for specifying rules in URL format rather than as resources - can specify URLs for health checks
    • verbs: List of verbs applied to all resources included in the rule

Reference Materials