1 From 066b7c9996d9bdee56857eca8a1af72bbbaaafff Mon Sep 17 00:00:00 2001
2 From: Kevin Smith <kevin.smith@windriver.com>
3 Date: Thu, 24 Oct 2019 11:06:30 -0400
4 Subject: [PATCH 1/1] set initial masters to master-0
7 elasticsearch/templates/statefulset.yaml | 2 +-
8 elasticsearch/values.yaml | 3 +++
9 2 files changed, 4 insertions(+), 1 deletion(-)
11 diff --git a/elasticsearch/templates/statefulset.yaml b/elasticsearch/templates/statefulset.yaml
12 index 36c7af6..e17d39e 100644
13 --- a/elasticsearch/templates/statefulset.yaml
14 +++ b/elasticsearch/templates/statefulset.yaml
15 @@ -233,7 +233,7 @@ spec:
16 {{- if eq .Values.roles.master "true" }}
17 {{- if ge (int (include "esMajorVersion" .)) 7 }}
18 - name: cluster.initial_master_nodes
19 - value: "{{ template "endpoints" . }}"
20 + value: "{{ .Values.initialMasterNodes }}"
22 - name: discovery.zen.minimum_master_nodes
23 value: "{{ .Values.minimumMasterNodes }}"
24 diff --git a/elasticsearch/values.yaml b/elasticsearch/values.yaml
25 index 6175540..0d983eb 100755
26 --- a/elasticsearch/values.yaml
27 +++ b/elasticsearch/values.yaml
28 @@ -6,6 +6,9 @@ nodeGroup: "master"
29 # This should be set to clusterName + "-" + nodeGroup for your master group
32 +# On initial cluster formation, the initial set of masters.
33 +initialMasterNodes: "mon-elasticsearch-master-0"
35 # Elasticsearch roles that will be applied to this nodeGroup
36 # These will be set as environment variables. E.g. node.master=true