Merge pull request #18 from ustuzhanin/helm

Helm update
This commit is contained in:
Chris Lu 2021-02-17 12:39:28 -08:00 committed by GitHub
commit b4eb1f3b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 4 deletions

View File

@ -61,6 +61,19 @@ helm install --set seaweedfsFiler=<filerHost:port> seaweedfs-csi-driver ./seawee
```bash ```bash
helm uninstall seaweedfs-csi-driver helm uninstall seaweedfs-csi-driver
``` ```
# Safe rollout update
When update DaemonSet ( DS ) break processes who implements fuse mount.
And now new pod not remount net device
For better safe update use ``node.updateStrategy.type: OnDelete`` in this need manual update. Steps:
- delete DS pods on node where no exists seaweefs PV
- cordon or taint node
- evict or delete pods with seaweedfs PV
- delete DS pod on node
- uncordon or remove taint on node
- repeat all steps on all nodes
# License # License
[Apache v2 license](https://www.apache.org/licenses/LICENSE-2.0) [Apache v2 license](https://www.apache.org/licenses/LICENSE-2.0)

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%