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.
pull/3113/head
Bennett Ellis 2018-08-18 13:13:27 -04:00 committed by dlorenc
parent a7a5ede68e
commit e13ed7a1ae
1 changed files with 2 additions and 0 deletions

View File

@ -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"]