[stable/elasticsearch] Rolling update statefulsets and deployment on configmap change (#14539)

* [stable/elasticsearch] rolling update data/master statefulset and client deployment on configmap change

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@commercetools.de>

* [stable/elasticsearch] remove not needed if

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@commercetools.de>

* [stable/elasticsearch] set updateStrategy.type for data and master nodes to RollingUpdate

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@commercetools.de>
This commit is contained in:
tetianakravchenko
2019-06-06 07:10:17 -07:00
committed by Kubernetes Prow Robot
parent f16973e227
commit 041a320351
5 changed files with 24 additions and 6 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: elasticsearch
home: https://www.elastic.co/products/elasticsearch
version: 1.28.0
version: 1.28.1
appVersion: 6.7.0
description: Flexible and powerful open source, distributed real-time search and analytics
engine.
@@ -0,0 +1,7 @@
data:
updateStrategy:
type: RollingUpdate
master:
updateStrategy:
type: RollingUpdate
@@ -16,8 +16,9 @@ spec:
app: {{ template "elasticsearch.name" . }}
component: "{{ .Values.client.name }}"
release: {{ .Release.Name }}
{{- if .Values.client.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- if .Values.client.podAnnotations }}
{{ toYaml .Values.client.podAnnotations | indent 8 }}
{{- end }}
spec:
@@ -18,10 +18,15 @@ spec:
component: "{{ .Values.data.name }}"
release: {{ .Release.Name }}
role: data
{{- if .Values.data.podAnnotations }}
{{- if or .Values.data.podAnnotations (eq .Values.data.updateStrategy.type "RollingUpdate") }}
annotations:
{{- if .Values.data.podAnnotations }}
{{ toYaml .Values.data.podAnnotations | indent 8 }}
{{- end }}
{{- end }}
{{- if eq .Values.data.updateStrategy.type "RollingUpdate" }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- end }}
{{- end }}
spec:
{{- if .Values.schedulerName }}
schedulerName: "{{ .Values.schedulerName }}"
@@ -18,10 +18,15 @@ spec:
component: "{{ .Values.master.name }}"
release: {{ .Release.Name }}
role: master
{{- if .Values.master.podAnnotations }}
{{- if or .Values.master.podAnnotations (eq .Values.master.updateStrategy.type "RollingUpdate") }}
annotations:
{{- if .Values.master.podAnnotations }}
{{ toYaml .Values.master.podAnnotations | indent 8 }}
{{- end }}
{{- end }}
{{- if eq .Values.master.updateStrategy.type "RollingUpdate" }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- end }}
{{- end }}
spec:
{{- if .Values.schedulerName }}
schedulerName: "{{ .Values.schedulerName }}"