From 424f8e72836091da502ff0c6af2e9d2288b9cc30 Mon Sep 17 00:00:00 2001 From: Bennett Ellis Date: Sat, 18 Aug 2018 13:13:27 -0400 Subject: [PATCH] Add env variable for default ES_JAVA_OPTS The default configuration here for ES_JAVA_OPTS will pretty much always fail as is, making this addon useless and broken unless modified. Since this is deployed automatically when addon is enabled, it seems like providing a value that works is the best option here, otherwise in a minikube the pod(s) deployed will continually fail to start. --- deploy/addons/efk/elasticsearch-rc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/addons/efk/elasticsearch-rc.yaml b/deploy/addons/efk/elasticsearch-rc.yaml index e282ffb2ada7..525350bb36e4 100644 --- a/deploy/addons/efk/elasticsearch-rc.yaml +++ b/deploy/addons/efk/elasticsearch-rc.yaml @@ -59,6 +59,8 @@ spec: fieldPath: metadata.namespace - name: MINIMUM_MASTER_NODES value: "1" + - name: ES_JAVA_OPTS + value: "-Xms1024m -Xmx1024m" initContainers: - image: registry.hub.docker.com/library/alpine:3.6 command: ["/sbin/sysctl", "-w", "vm.max_map_count=262144"]