diff options
| author | chrislu <chris.lu@gmail.com> | 2022-09-13 10:45:40 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-09-13 10:45:40 -0700 |
| commit | 4cec4e522be8e5453e5789177a04d50fdbfdd8a3 (patch) | |
| tree | 589d447438aa971a61859383a04e2c575be0f6b8 /deploy | |
| parent | 741f1d946e71a676abee570600652a85fc7b6026 (diff) | |
| parent | 91803d195e9439e8b7787f0852f40b3dd64260bf (diff) | |
| download | seaweedfs-csi-driver-4cec4e522be8e5453e5789177a04d50fdbfdd8a3.tar.xz seaweedfs-csi-driver-4cec4e522be8e5453e5789177a04d50fdbfdd8a3.zip | |
Merge branch 'master' of https://github.com/seaweedfs/seaweedfs-csi-driver
Diffstat (limited to 'deploy')
| -rw-r--r-- | deploy/helm/seaweedfs-csi-driver/Chart.yaml | 2 | ||||
| -rw-r--r-- | deploy/helm/seaweedfs-csi-driver/templates/daemonset.yml | 19 | ||||
| -rw-r--r-- | deploy/helm/seaweedfs-csi-driver/values.yaml | 12 |
3 files changed, 22 insertions, 11 deletions
diff --git a/deploy/helm/seaweedfs-csi-driver/Chart.yaml b/deploy/helm/seaweedfs-csi-driver/Chart.yaml index ac9c7aa..449ad42 100644 --- a/deploy/helm/seaweedfs-csi-driver/Chart.yaml +++ b/deploy/helm/seaweedfs-csi-driver/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: seaweedfs-csi-driver description: A Helm chart for Kubernetes type: application -version: 0.1.1 +version: 0.1.2 appVersion: latest diff --git a/deploy/helm/seaweedfs-csi-driver/templates/daemonset.yml b/deploy/helm/seaweedfs-csi-driver/templates/daemonset.yml index 8e768d3..be31682 100644 --- a/deploy/helm/seaweedfs-csi-driver/templates/daemonset.yml +++ b/deploy/helm/seaweedfs-csi-driver/templates/daemonset.yml @@ -37,7 +37,7 @@ spec: - name: ADDRESS value: /csi/csi.sock - name: DRIVER_REG_SOCK_PATH - value: /var/lib/kubelet/plugins/{{ .Values.driverName }}/csi.sock + value: {{ .Values.node.volumes.plugins_dir }}/{{ .Values.driverName }}/csi.sock - name: KUBE_NODE_NAME valueFrom: fieldRef: @@ -61,6 +61,7 @@ spec: - "--endpoint=$(CSI_ENDPOINT)" - "--filer=$(SEAWEEDFS_FILER)" - "--nodeid=$(NODE_ID)" + - "--cacheDir=/var/cache/seaweedfs" env: - name: CSI_ENDPOINT value: unix:///csi/csi.sock @@ -88,10 +89,10 @@ spec: - name: plugin-dir mountPath: /csi - name: plugins-dir - mountPath: /var/lib/kubelet/plugins + mountPath: {{ .Values.node.volumes.plugins_dir }} mountPropagation: "Bidirectional" - name: pods-mount-dir - mountPath: /var/lib/kubelet/pods + mountPath: {{ .Values.node.volumes.pods_mount_dir }} mountPropagation: "Bidirectional" - mountPath: /dev name: device-dir @@ -99,26 +100,30 @@ spec: - name: tls mountPath: /var/run/secrets/app/tls {{- end }} + - name: cache + mountPath: /var/cache/seaweedfs volumes: - name: registration-dir hostPath: - path: /var/lib/kubelet/plugins_registry/ + path: {{ .Values.node.volumes.registration_dir }} type: DirectoryOrCreate - name: plugin-dir hostPath: - path: /var/lib/kubelet/plugins/{{ .Values.driverName }} + path: {{ .Values.node.volumes.plugins_dir }}/{{ .Values.driverName }} type: DirectoryOrCreate - name: plugins-dir hostPath: - path: /var/lib/kubelet/plugins + path: {{ .Values.node.volumes.plugins_dir }} type: Directory - name: pods-mount-dir hostPath: - path: /var/lib/kubelet/pods + path: {{ .Values.node.volumes.pods_mount_dir }} type: Directory - name: device-dir hostPath: path: /dev + - name: cache + emptyDir: {} {{- if .Values.tlsSecret }} - name: tls secret: diff --git a/deploy/helm/seaweedfs-csi-driver/values.yaml b/deploy/helm/seaweedfs-csi-driver/values.yaml index bb5af07..80637d6 100644 --- a/deploy/helm/seaweedfs-csi-driver/values.yaml +++ b/deploy/helm/seaweedfs-csi-driver/values.yaml @@ -30,7 +30,7 @@ seaweedfsCsiPlugin: image: chrislusf/seaweedfs-csi-driver:latest resources: {} -# NOT Change, for future releases. Must be equal Name in GetPluginInfoResponse +# DO NOT Change. Reserved for future releases. Must be equal Name in GetPluginInfoResponse driverName: seaweedfs-csi-driver controller: @@ -40,11 +40,17 @@ controller: node: # Deploy node daemonset enabled: true - # When pod on node be recreated all pod on same node lost PV. - # For safe update use updateStrategy.type: OnDelete and manual move pods who use PV and delete damonset pod + # When seaweedfs-csi-driver-node pod on node is recreated, all pods on same node using seaweed-csi PV will stop working. + # For safe update set updateStrategy.type: OnDelete and manually move pods who use seaweed-csi PV, then delete seaweedfs-csi-driver-node damonset pod updateStrategy: type: RollingUpdate rollingUpdate: maxUnavailable: 25% affinity: {} tolerations: {} + + ## Change if not using standard kubernetes deployments, like k0s + volumes: + registration_dir: /var/lib/kubelet/plugins_registry + plugins_dir: /var/lib/kubelet/plugins + pods_mount_dir: /var/lib/kubelet/pods |
