Add suport of Vsphere CSI driver 2.2.X versions (#7848)

This commit is contained in:
Eugene Artemenko
2021-08-09 18:19:38 +03:00
committed by GitHub
parent 82a9064d8d
commit e2b67b5700
6 changed files with 106 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: vsphere-csi-node
namespace: kube-system
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: vsphere-csi-node-role
namespace: kube-system
rules:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "list", "watch"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: vsphere-csi-node-binding
namespace: kube-system
subjects:
- kind: ServiceAccount
name: vsphere-csi-node
namespace: kube-system
roleRef:
kind: Role
name: vsphere-csi-node-role
apiGroup: rbac.authorization.k8s.io