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
This commit is contained in:
Steve Wilkerson 2019-05-04 06:40:45 -06:00 committed by Steve Wilkerson
parent 038a6e58ae
commit 36d03133f8
2 changed files with 3 additions and 0 deletions

View File

@ -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:

View File

@ -200,6 +200,8 @@ pod:
client: 3
lifecycle:
upgrades:
statefulsets:
pod_replacement_strategy: RollingUpdate
deployments:
revision_history: 3
pod_replacement_strategy: RollingUpdate