k8s-samples/CKA_Course/rbac/rolebinding-sa-pod-reader.yaml

14 lines
263 B
YAML
Raw Permalink Normal View History

2022-07-25 02:17:23 +00:00
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