From 08bdfdf426f8fa0f9f347495285fdc409d497a86 Mon Sep 17 00:00:00 2001 From: Mark Billett Date: Fri, 19 Jul 2024 15:09:49 +0200 Subject: [PATCH] feat: ML on hot if ML count is zero --- charts/lsdmop/Chart.yaml | 2 +- charts/lsdmop/templates/elastic.es.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/lsdmop/Chart.yaml b/charts/lsdmop/Chart.yaml index 0aa0b5b..097c347 100644 --- a/charts/lsdmop/Chart.yaml +++ b/charts/lsdmop/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: lsdmop -version: "4.7.4" +version: "4.7.5" appVersion: "1.0.2" # Disabling kubeVersion because GKE is dumb # kubeVersion: ">=v1.11.0" diff --git a/charts/lsdmop/templates/elastic.es.yaml b/charts/lsdmop/templates/elastic.es.yaml index a2f50d5..64a4bb7 100644 --- a/charts/lsdmop/templates/elastic.es.yaml +++ b/charts/lsdmop/templates/elastic.es.yaml @@ -71,7 +71,11 @@ spec: - config: node.store.allow_mmap: false #path.repo: /usr/share/elasticsearch/snapshots +{{- if eq .Values.lsdmop.elastic.cluster.ml.count 0}} + node.roles: ["master", "data_hot", "data", "transform", "remote_cluster_client", "ingest", "ml"] +{{ else }} node.roles: ["master", "data_hot", "data", "transform", "remote_cluster_client", "ingest"] +{{- end}} node.attr.data: hot http.max_content_length: 100mb http.compression: true