Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-flock / stx-monitor-armada-app / monitor-helm-elastic / 0005-set-initial-masters-to-master-0.patch
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
5
6 ---
7  elasticsearch/templates/statefulset.yaml | 2 +-
8  elasticsearch/values.yaml                | 3 +++
9  2 files changed, 4 insertions(+), 1 deletion(-)
10
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 }}"
21            {{- else }}
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
30  masterService: ""
31  
32 +# On initial cluster formation, the initial set of masters.
33 +initialMasterNodes: "mon-elasticsearch-master-0"
34 +
35  # Elasticsearch roles that will be applied to this nodeGroup
36  # These will be set as environment variables. E.g. node.master=true
37  roles:
38 -- 
39 1.8.3.1
40