k8s-samples/CKA_Course/rolebinding-sa-pod-reader.yaml
2022-07-24 21:17:23 -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