From c49387dcba793aa4dc7ba6265777daf700dc7ad9 Mon Sep 17 00:00:00 2001 From: Nishant Kumar Date: Mon, 18 May 2020 16:34:03 +0000 Subject: [PATCH] [ceph-rgw] Add helm-toolkit snippet to support update strategy This PS adds helm-toolkit snippet in deployment spec to support update strategy driven by values.yaml. Change-Id: I49616abd1bbaf3930a70c0734b5c3b7ef34a9391 --- ceph-rgw/templates/deployment-rgw.yaml | 1 + ceph-rgw/values.yaml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/ceph-rgw/templates/deployment-rgw.yaml b/ceph-rgw/templates/deployment-rgw.yaml index 1dce6f8d1d..36fa0063ea 100644 --- a/ceph-rgw/templates/deployment-rgw.yaml +++ b/ceph-rgw/templates/deployment-rgw.yaml @@ -43,6 +43,7 @@ spec: selector: matchLabels: {{ tuple $envAll "ceph" "rgw" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 6 }} +{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} template: metadata: labels: diff --git a/ceph-rgw/values.yaml b/ceph-rgw/values.yaml index cc0d40caac..376413a719 100644 --- a/ceph-rgw/values.yaml +++ b/ceph-rgw/values.yaml @@ -97,6 +97,14 @@ pod: dns_policy: "ClusterFirstWithHostNet" replicas: rgw: 2 + lifecycle: + upgrades: + deployments: + pod_replacement_strategy: RollingUpdate + revision_history: 3 + rolling_update: + max_surge: 50% + max_unavailable: 50% affinity: anti: type: