diff --git a/deploy/hostpath/csi-hostpath-plugin.yaml b/deploy/hostpath/csi-hostpath-plugin.yaml index c24271f98..d28862cc7 100644 --- a/deploy/hostpath/csi-hostpath-plugin.yaml +++ b/deploy/hostpath/csi-hostpath-plugin.yaml @@ -11,11 +11,10 @@ spec: labels: app: csi-hostpathplugin spec: - serviceAccountName: csi-node-sa hostNetwork: true containers: - name: node-driver-registrar - image: quay.io/k8scsi/csi-node-driver-registrar:v1.0.1 + image: quay.io/k8scsi/csi-node-driver-registrar:v1.0.2 imagePullPolicy: Always lifecycle: preStop: diff --git a/deploy/hostpath/csi-hostpath-rbac.yaml b/deploy/hostpath/csi-hostpath-rbac.yaml deleted file mode 100644 index f42757a31..000000000 --- a/deploy/hostpath/csi-hostpath-rbac.yaml +++ /dev/null @@ -1,46 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: csi-node-sa - ---- -kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: csi-node-sa -rules: - - apiGroups: [""] - resources: ["nodes"] - verbs: ["get", "list", "update"] - - apiGroups: [""] - resources: ["namespaces"] - verbs: ["get", "list"] - - apiGroups: [""] - resources: ["persistentvolumes"] - verbs: ["get", "list", "watch", "update"] - - apiGroups: ["apiextensions.k8s.io"] - resources: ["customresourcedefinitions"] - verbs: ["create","get","update"] - - apiGroups: ["storage.k8s.io"] - resources: ["volumeattachments"] - verbs: ["get", "list", "watch", "update"] - - apiGroups: ["csi.storage.k8s.io"] - resources: ["csidrivers"] - verbs: ["create", "get", "list", "watch", "update"] - - apiGroups: ["csi.storage.k8s.io"] - resources: ["csinodeinfos"] - verbs: ["create", "get", "list", "watch", "update"] - ---- -kind: ClusterRoleBinding -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: csi-node-sa -subjects: - - kind: ServiceAccount - name: csi-nodeplugin - namespace: default -roleRef: - kind: ClusterRole - name: csi-node-sa - apiGroup: rbac.authorization.k8s.io