From 713f38090bcb2406cc2206da2dd8401f8a8d5b6d Mon Sep 17 00:00:00 2001 From: petertc Date: Wed, 15 Jan 2025 11:57:47 +0800 Subject: [PATCH] Sync prerequisites with Helm Charts (#4483) ### What problem does this PR solve? Address #4391 ### Type of change - [x] Other (please describe): --- helm/templates/elasticsearch.yaml | 6 ++++++ helm/values.yaml | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/helm/templates/elasticsearch.yaml b/helm/templates/elasticsearch.yaml index 5307b9561..8409442f1 100644 --- a/helm/templates/elasticsearch.yaml +++ b/helm/templates/elasticsearch.yaml @@ -52,6 +52,12 @@ spec: volumeMounts: - mountPath: /usr/share/elasticsearch/data name: es-data + - name: sysctl + image: busybox + securityContext: + privileged: true + runAsUser: 0 + command: ["sysctl", "-w", "vm.max_map_count=262144"] containers: - name: elasticsearch image: docker.elastic.co/elasticsearch/elasticsearch:{{ .Values.env.STACK_VERSION }} diff --git a/helm/values.yaml b/helm/values.yaml index ebf1b02d0..898fdd5db 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -91,7 +91,8 @@ elasticsearch: strategy: resources: requests: - memory: 8Gi + cpu: "4" + memory: "16Gi" service: type: ClusterIP