Allocate new volumes remotely
This commit is contained in:
@@ -49,3 +49,28 @@ roleRef:
|
||||
kind: ClusterRole
|
||||
name: rawfile-external-provisioner-runner
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: rawfile-handler
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumes"]
|
||||
verbs: ["get"]
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["get", "list", "watch", "create", "update", "patch"]
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: rawfile-handler
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: rawfile-csi-controller
|
||||
namespace: kube-system
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: rawfile-handler
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
|
Reference in New Issue
Block a user