From 080f7538c0d5ec0e94306b4e4a80f7bd887aa506 Mon Sep 17 00:00:00 2001 From: Yug Gupta Date: Tue, 3 Aug 2021 16:44:26 +0530 Subject: [PATCH] helm: update cephfs provisioner updateStrategy Update ceph-csi-cephfs.provisioner updatestrategy to allow maxUnavailable pods at a time to be 50% Signed-off-by: Yug Gupta --- .../ceph-csi-cephfs/templates/provisioner-deployment.yaml | 6 ++++++ charts/ceph-csi-cephfs/values.yaml | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml b/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml index b747e53ef..c8ba5e2a4 100644 --- a/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml +++ b/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml @@ -11,6 +11,12 @@ metadata: heritage: {{ .Release.Service }} spec: replicas: {{ .Values.provisioner.replicaCount }} + strategy: + type: {{ .Values.provisioner.strategy.type }} +{{- if eq .Values.provisioner.strategy.type "RollingUpdate" }} + rollingUpdate: + maxUnavailable: {{ .Values.provisioner.strategy.rollingUpdate.maxUnavailable }} +{{- end }} selector: matchLabels: app: {{ include "ceph-csi-cephfs.name" . }} diff --git a/charts/ceph-csi-cephfs/values.yaml b/charts/ceph-csi-cephfs/values.yaml index b7f51af6b..cd5806336 100644 --- a/charts/ceph-csi-cephfs/values.yaml +++ b/charts/ceph-csi-cephfs/values.yaml @@ -109,6 +109,14 @@ nodeplugin: provisioner: name: provisioner replicaCount: 3 + strategy: + # RollingUpdate strategy replaces old pods with new ones gradually, + # without incurring downtime. + type: RollingUpdate + rollingUpdate: + # maxUnavailable is the maximum number of pods that can be + # unavailable during the update process. + maxUnavailable: 50% # Timeout for waiting for creation or deletion of a volume timeout: 60s