This commit is contained in:
sandervanvugt 2021-10-12 11:50:30 +02:00
parent 0ebd8220ab
commit 0749b8458c
4 changed files with 20 additions and 0 deletions

Binary file not shown.

Binary file not shown.

12
clusterrolebinding.yaml Normal file
View File

@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: read-pods
subjects:
- kind: User
name: anna
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: pod-reader
apiGroup: rbac.authorization.k8s.io

View File

@ -0,0 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: pod-reader
rules:
- apiGroups: [""] # "" indicates the core API grouop
resources: ["pods"]
verbs: ["get", "watch", "list"]