Kubernetes 101 : Role-based access control aggregation - RBAC - rules
The ClusterRole "pods" allows us to list pods, the ClusterRole
"services" allows to list services.
The below Yaml file describes the ClusterRole named "pods" for listing pods:
The below Yaml file describes the ClusterRole named "services" for listing services:
The rule field will have all the ClusterRoles that match the labels in the matchLabels field.
We could check our ClusterRole using the below command:
Comments