From 36d03133f8cbb3329ea2856edd2bca29c8840292 Mon Sep 17 00:00:00 2001 From: Steve Wilkerson Date: Sat, 4 May 2019 06:40:45 -0600 Subject: [PATCH] Add statefulset update strategy to elasticsearch data statefulset This adds the helm-toolkit function for defining the update strategy for the elasticsearch-data statefulset and sets the chart default to RollingUpdate Change-Id: Ia10ea7bf000474e597bdb36778118a96d85b93c1 --- elasticsearch/templates/statefulset-data.yaml | 1 + elasticsearch/values.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/elasticsearch/templates/statefulset-data.yaml b/elasticsearch/templates/statefulset-data.yaml index 036fe158e..34fb1890c 100644 --- a/elasticsearch/templates/statefulset-data.yaml +++ b/elasticsearch/templates/statefulset-data.yaml @@ -66,6 +66,7 @@ metadata: labels: {{ tuple $envAll "elasticsearch" "data" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} spec: +{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_statefulset" | indent 2 }} serviceName: {{ tuple "elasticsearch" "data" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} replicas: {{ .Values.pod.replicas.data }} selector: diff --git a/elasticsearch/values.yaml b/elasticsearch/values.yaml index 203bd4854..57f397f14 100644 --- a/elasticsearch/values.yaml +++ b/elasticsearch/values.yaml @@ -200,6 +200,8 @@ pod: client: 3 lifecycle: upgrades: + statefulsets: + pod_replacement_strategy: RollingUpdate deployments: revision_history: 3 pod_replacement_strategy: RollingUpdate