[bitnami/elasticsearch] compute and configure the minimum_master_nodes

Signed-off-by: Sameer Naik <sameersbn@vmware.com>
This commit is contained in:
Sameer Naik
2019-11-11 22:17:36 +05:30
parent c69ef1fba9
commit 8de318653f
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: elasticsearch
version: 8.1.2
version: 8.2.0
appVersion: 7.4.2
description: A highly scalable open-source full-text search and analytics engine
keywords:

View File

@@ -85,6 +85,8 @@ spec:
{{- $elasticsearchMasterFullname := include "elasticsearch.master.fullname" . }}
{{- $replicas := int .Values.master.replicas }}
value: {{range $i, $e := until $replicas }}{{ $elasticsearchMasterFullname }}-{{ $e }} {{ end }}
- name: ELASTICSEARCH_MINIMUM_MASTER_NODES
value: {{ add (div .Values.master.replicas 2) 1 | quote }}
{{- if .Values.plugins }}
- name: ELASTICSEARCH_PLUGINS
value: {{ .Values.plugins | quote }}