Interview Prep/Kubernetes/Security: RBAC, ServiceAccounts & Pod Security

How do aggregated ClusterRoles (`view`, `edit`, `admin`) work?

IntermediateConceptSecurity: RBAC, ServiceAccounts & Pod Security
Answer

Built-in ClusterRoles use aggregationRule with label selectors such as rbac.authorization.k8s.io/aggregate-to-view: "true". When you add a CRD, you create a small ClusterRole with that label and its rules are automatically merged into view/edit/admin, so standard roles cover your custom resources.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Security: RBAC, ServiceAccounts & Pod Security