1 From 876e674e26400dcbbee5ee52b6cd7c9b430063f7 Mon Sep 17 00:00:00 2001
2 From: Kevin Smith <kevin.smith@windriver.com>
3 Date: Mon, 23 Sep 2019 13:29:06 -0400
4 Subject: [PATCH 1/1] three masters
7 stable/elasticsearch/templates/data-statefulset.yaml | 2 +-
8 stable/elasticsearch/values.yaml | 3 +++
9 2 files changed, 4 insertions(+), 1 deletion(-)
11 diff --git a/stable/elasticsearch/templates/data-statefulset.yaml b/stable/elasticsearch/templates/data-statefulset.yaml
12 index 44b6be1..69b54cd 100644
13 --- a/stable/elasticsearch/templates/data-statefulset.yaml
14 +++ b/stable/elasticsearch/templates/data-statefulset.yaml
15 @@ -114,7 +114,7 @@ spec:
16 - name: DISCOVERY_SERVICE
17 value: {{ template "elasticsearch.fullname" . }}-discovery
20 + value: {{ .Values.data.combinedDataAndMaster | quote }}
24 diff --git a/stable/elasticsearch/values.yaml b/stable/elasticsearch/values.yaml
25 index 37321dc..a4b65b7 100644
26 --- a/stable/elasticsearch/values.yaml
27 +++ b/stable/elasticsearch/values.yaml
28 @@ -222,6 +222,9 @@ data:
29 drain: # drain the node before stopping it and re-integrate it into the cluster after start
32 + # If below is true, data nodes will also be master capable
33 + combinedDataAndMaster: false
35 ## Sysctl init container to setup vm.max_map_count
36 # see https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html
37 # and https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration-memory.html#mlockall