updated psp
This commit is contained in:
parent
e155cf9437
commit
f22d70abfb
3 changed files with 8 additions and 3 deletions
32
config/300-rbac.yaml
Normal file
32
config/300-rbac.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: pvc-reaper
|
||||
namespace: pvc-reaper
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: pvc-reaper
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumes", "persistentvolumeclaims"]
|
||||
verbs: ["get", "list", "watch", "patch"]
|
||||
- apiGroups: ["policy"]
|
||||
resources: ["podsecuritypolicies"]
|
||||
resourceNames: ["pvc-reaper"]
|
||||
verbs: ["use"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: pvc-reaper
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: pvc-reaper
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: pvc-reaper
|
||||
namespace: pvc-reaper
|
||||
Loading…
Add table
Add a link
Reference in a new issue