kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch17/user-groups/service-accounts/role-bindings/test-sa-group.yaml

14 lines
329 B
YAML

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: test-sa-logs-cluster
labels:
kiamol: ch17
subjects:
- kind: Group
name: system:serviceaccounts:kiamol-authn-test
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: logs-reader
apiGroup: rbac.authorization.k8s.io