feat: custom updateStrategy for deamonset

This commit is contained in:
Ustuzhanin Anton 2021-02-18 00:29:44 +05:00
parent 171f304191
commit 641cce456f
No known key found for this signature in database
GPG Key ID: D41880C7E7103E79
5 changed files with 12 additions and 5 deletions

View File

@ -53,7 +53,7 @@ git clone https://github.com/seaweedfs/seaweedfs-csi-driver.git
``` ```
2. Install 2. Install
```bash ```bash
helm install --set seaweedfsFiller=<url to filler host:port> seaweedfs-csi-driver ./seaweedfs-csi-driver/deploy/helm/seaweedfs-csi-driver helm install --set seaweedfsFiller=<url to filer host:port> seaweedfs-csi-driver ./seaweedfs-csi-driver/deploy/helm/seaweedfs-csi-driver
``` ```
3. Clean up 3. Clean up

View File

@ -21,3 +21,4 @@
.idea/ .idea/
*.tmproj *.tmproj
.vscode/ .vscode/
.tgz

View File

@ -2,5 +2,5 @@ apiVersion: v2
name: seaweedfs-csi-driver name: seaweedfs-csi-driver
description: A Helm chart for Kubernetes description: A Helm chart for Kubernetes
type: application type: application
version: 0.1.0 version: 0.1.1
appVersion: latest appVersion: latest

View File

@ -9,8 +9,7 @@ spec:
matchLabels: matchLabels:
app: {{ template "seaweedfs-csi-driver.name" . }}-node app: {{ template "seaweedfs-csi-driver.name" . }}-node
updateStrategy: updateStrategy:
rollingUpdate: {{ toYaml .Values.node.updateStrategy | nindent 4 }}
maxUnavailable: 25%
template: template:
metadata: metadata:
labels: labels:

View File

@ -28,5 +28,12 @@ driverName: seaweedfs-csi-driver
node: node:
# Deploy node daemonset # Deploy node daemonset
# for a smoother update it is better to use static pods on nodes
enabled: true 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
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%