diff --git a/charts/kubezero-logging/delete_zdt-logging.sh b/charts/kubezero-logging/delete_zdt-logging.sh new file mode 100755 index 00000000..0931e5da --- /dev/null +++ b/charts/kubezero-logging/delete_zdt-logging.sh @@ -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 diff --git a/charts/kubezero-logging/templates/elasticsearch.yaml b/charts/kubezero-logging/templates/elasticsearch.yaml index 5798c5e5..a9dfd271 100644 --- a/charts/kubezero-logging/templates/elasticsearch.yaml +++ b/charts/kubezero-logging/templates/elasticsearch.yaml @@ -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