k8s-samples/CKA_Course/rbac/rolebinding-sa-pod-reader.yaml
2022-08-16 21:59:58 -05:00

13 lines
263 B
YAML

apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: sa-pod-reader
namespace: cka
subjects:
- kind: ServiceAccount
name: my-serviceaccount
namespace: cka
roleRef:
kind: Role
name: pod-reader
apiGroup: rbac.authorization.k8s.io