Aggregating ClusterRoles

Aggregating ClusterRoles

Automagically aggregate rules into new ClusterRoles

```yaml [5-8] apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: monitoring aggregationRule: clusterRoleSelectors:

```yaml [5-6] apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: monitoring-endpoints labels: aggregate-to-monitoring: “true” rules:

Heavily used in builtin ClusterRoles


Demo

Inspect builtin ClusterRoles with aggregation

Create custom aggregation