Role-Based Access Control (RBAC)
Role-Based Access Control (RBAC) uses the rbac.authorization.k8s.io API group to drive authorization decisions:
- Role: Sets permissions within a specific namespace.
- ClusterRole: Sets cluster-wide permissions (nodes, persistent volumes, or across all namespaces).
- RoleBinding / ClusterRoleBinding: Grants the permissions defined in a Role to a user, group, or ServiceAccount.
apiVersion: rbac.authorization.k8s.io/v1kind: Rolemetadata: namespace: development name: pod-readerrules: - apiGroups: [""] resources: ["pods", "pods/log"] verbs: ["get", "watch", "list"]