diff options
| author | Cristian Chiru <cristi.chiru@gmail.com> | 2022-09-07 11:32:04 +0300 |
|---|---|---|
| committer | Cristian Chiru <cristi.chiru@gmail.com> | 2022-09-07 11:32:04 +0300 |
| commit | 97febdfe8e9cbb05dbda251ff6d53a5d9764b44f (patch) | |
| tree | 38984b08a8d01e9f332a6a85ebcfc7b54f09a990 /deploy/helm | |
| parent | 78d6ce732aaa87a8f6a18084ffe97bfbf4eadd25 (diff) | |
| download | seaweedfs-csi-driver-97febdfe8e9cbb05dbda251ff6d53a5d9764b44f.tar.xz seaweedfs-csi-driver-97febdfe8e9cbb05dbda251ff6d53a5d9764b44f.zip | |
add non standard volumes for seaweedfs-csi-driver node; improve helm texts
Diffstat (limited to 'deploy/helm')
| -rw-r--r-- | deploy/helm/seaweedfs-csi-driver/templates/daemonset.yml | 8 | ||||
| -rw-r--r-- | deploy/helm/seaweedfs-csi-driver/values.yaml | 12 |
2 files changed, 13 insertions, 7 deletions
diff --git a/deploy/helm/seaweedfs-csi-driver/templates/daemonset.yml b/deploy/helm/seaweedfs-csi-driver/templates/daemonset.yml index 7c47649..f903535 100644 --- a/deploy/helm/seaweedfs-csi-driver/templates/daemonset.yml +++ b/deploy/helm/seaweedfs-csi-driver/templates/daemonset.yml @@ -105,19 +105,19 @@ spec: 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: 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 |
