mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-22 11:35:58 +10:00
[bitnami/elasticsearch] Change metrics endpoint when no coordinating nodes are used (#5364)
This commit is contained in:
@@ -25,4 +25,4 @@ name: elasticsearch
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-elasticsearch
|
||||
- https://www.elastic.co/products/elasticsearch
|
||||
version: 14.1.1
|
||||
version: 14.2.0
|
||||
|
||||
@@ -34,7 +34,13 @@ spec:
|
||||
image: {{ include "elasticsearch.metrics.image" . }}
|
||||
imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }}
|
||||
args:
|
||||
{{- if gt .Values.coordinating.replicas 0 }}
|
||||
# Prefer coordinating only nodes to do the initial metrics query
|
||||
- --es.uri=http://{{ template "elasticsearch.coordinating.fullname" . }}:{{ .Values.coordinating.service.port }}
|
||||
{{- else }}
|
||||
# Using master nodes as there are no coordinating only nodes
|
||||
- --es.uri=http://{{ include "elasticsearch.master.fullname" . }}:{{ .Values.master.service.port }}
|
||||
{{- end }}
|
||||
- --es.all
|
||||
ports:
|
||||
- name: metrics
|
||||
|
||||
Reference in New Issue
Block a user