Fix optional prometheus support

This commit is contained in:
Stefan Reimer 2020-08-15 13:24:14 +01:00
parent 943a2080b7
commit 4d5a6b72d1
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#!/bin/bash
# We only need to delete the service monitor and virtual service, others will be taken over by the new chart and we dont loose data
kubectl delete -n logging VirtualService kibana-logging
kubectl delete -n logging ServiceMonitor es-logging

View File

@ -16,7 +16,9 @@ spec:
node.data: true
node.ingest: true
node.ml: false
{{- if $.Values.es.prometheus }}
prometheus.indices: false
{{- end }}
{{- if .zone }}
node.attr.zone: {{ .zone }}
cluster.routing.allocation.awareness.attributes: zone