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