Allocate new volumes remotely

This commit is contained in:
Mehran Kholdi
2020-04-24 16:18:09 +04:30
parent 73a618228b
commit 9de82a9b47
9 changed files with 199 additions and 10 deletions

View File

@@ -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