2021-08-09 23:19:38 +08:00
|
|
|
---
|
|
|
|
kind: ServiceAccount
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: vsphere-csi-node
|
|
|
|
namespace: kube-system
|
|
|
|
---
|
2021-12-11 03:07:23 +08:00
|
|
|
kind: ClusterRole
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
|
|
|
name: vsphere-csi-node-cluster-role
|
|
|
|
rules:
|
|
|
|
- apiGroups: ["cns.vmware.com"]
|
|
|
|
resources: ["csinodetopologies"]
|
2022-04-04 16:08:11 +08:00
|
|
|
verbs: ["create", "watch", "get", "patch" ]
|
2021-12-11 03:07:23 +08:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["nodes"]
|
|
|
|
verbs: ["get"]
|
|
|
|
---
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
metadata:
|
|
|
|
name: vsphere-csi-node-cluster-role-binding
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: vsphere-csi-node
|
|
|
|
namespace: kube-system
|
|
|
|
roleRef:
|
|
|
|
kind: ClusterRole
|
|
|
|
name: vsphere-csi-node-cluster-role
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
---
|
2021-08-09 23:19:38 +08:00
|
|
|
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
|