Role-Based Access Control (RBAC)
Role and Cluster Role
RoleBinding and ClusterRoleBinding
Example
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: pod-reader
rules:
- apiGroups: [""] # "" indicates the core API group
resources: ["pods"]
verbs: ["get", "watch", "list"]Last updated