From 0ddc866b7f897f01f7f7c9888c80c7f0a7dba24e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 11 Jan 2021 04:23:38 -0800 Subject: [PATCH] update to latest fix https://github.com/seaweedfs/seaweedfs-csi-driver/issues/7 --- deploy/kubernetes/seaweedfs-csi.yaml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/deploy/kubernetes/seaweedfs-csi.yaml b/deploy/kubernetes/seaweedfs-csi.yaml index bb3d222..5ad1c01 100644 --- a/deploy/kubernetes/seaweedfs-csi.yaml +++ b/deploy/kubernetes/seaweedfs-csi.yaml @@ -44,7 +44,7 @@ metadata: namespace: kube-system annotations: storageclass.kubernetes.io/is-default-class: "true" -provisioner: com.seaweedfs.csi +provisioner: seaweedfs-csi-driver --- apiVersion: v1 kind: ServiceAccount @@ -106,16 +106,19 @@ metadata: rules: - apiGroups: [""] resources: ["persistentvolumes"] - verbs: ["get", "list", "watch", "update"] + verbs: ["get", "list", "watch", "update", "patch"] - apiGroups: [""] resources: ["nodes"] - verbs: ["get", "list", "watch"] - - apiGroups: ["csi.storage.k8s.io"] - resources: ["csinodeinfos"] - verbs: ["get", "list", "watch"] + verbs: ["get", "list", "watch", "update", "patch"] + - apiGroups: ["storage.k8s.io"] + resources: ["csinodes"] + verbs: ["get", "list", "watch", "update", "patch"] - apiGroups: ["storage.k8s.io"] resources: ["volumeattachments"] - verbs: ["get", "list", "watch", "update"] + verbs: ["get", "list", "watch", "update", "patch"] + - apiGroups: ["storage.k8s.io"] + resources: ["volumeattachments/status"] + verbs: ["patch"] --- kind: ClusterRoleBinding @@ -249,9 +252,8 @@ spec: containers: # provisioner - name: csi-provisioner - image: quay.io/k8scsi/csi-provisioner:v1.0.1 + image: k8s.gcr.io/sig-storage/csi-provisioner:v2.0.4 args: - - "--provisioner=com.seaweedfs.csi" - "--csi-address=$(ADDRESS)" - "--v=5" env: @@ -263,7 +265,7 @@ spec: mountPath: /var/lib/csi/sockets/pluginproxy/ # attacher - name: csi-attacher - image: quay.io/k8scsi/csi-attacher:v1.0.1 + image: k8s.gcr.io/sig-storage/csi-attacher:v3.0.2 args: - "--v=5" - "--csi-address=$(ADDRESS)" @@ -333,7 +335,7 @@ spec: dnsPolicy: ClusterFirstWithHostNet containers: - name: driver-registrar - image: quay.io/k8scsi/csi-node-driver-registrar:v1.0.1 + image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.0.1 args: - "--v=5" - "--csi-address=$(ADDRESS)" @@ -342,7 +344,7 @@ spec: - name: ADDRESS value: /csi/csi.sock - name: DRIVER_REG_SOCK_PATH - value: /var/lib/kubelet/plugins/com.seaweedfs.csi/csi.sock + value: /var/lib/kubelet/plugins/seaweedfs-csi-driver/csi.sock - name: KUBE_NODE_NAME valueFrom: fieldRef: @@ -388,7 +390,7 @@ spec: type: DirectoryOrCreate - name: plugin-dir hostPath: - path: /var/lib/kubelet/plugins/com.seaweedfs.csi + path: /var/lib/kubelet/plugins/seaweedfs-csi-driver type: DirectoryOrCreate - name: pods-mount-dir hostPath: