Allow custom memory overwrites for ES cluster
This commit is contained in:
parent
239ab6fbf2
commit
a26b652690
@ -54,12 +54,12 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: {{ default "200m" .cpu_request }}
|
cpu: {{ default "200m" .cpu_request }}
|
||||||
memory: {{ mul 2 ( default "2" .jvm_heap ) }}Gi
|
memory: {{ default ( mul 2 ( default "2" .jvm_heap ) ) .memory_request }}Gi
|
||||||
limits:
|
limits:
|
||||||
{{- if .cpu_limit }}
|
{{- if .cpu_limit }}
|
||||||
cpu: {{ .cpu_limit }}
|
cpu: {{ .cpu_limit }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
memory: {{ mul 2 ( default "2" .jvm_heap ) }}Gi
|
memory: {{ default ( mul 2 ( default "2" .jvm_heap ) ) .memory_limit }}Gi
|
||||||
env:
|
env:
|
||||||
- name: ES_JAVA_OPTS
|
- name: ES_JAVA_OPTS
|
||||||
value: -Xms{{ default "2" .jvm_heap }}g -Xmx{{ default "2" .jvm_heap }}g
|
value: -Xms{{ default "2" .jvm_heap }}g -Xmx{{ default "2" .jvm_heap }}g
|
||||||
|
Loading…
Reference in New Issue
Block a user