Fix math in resources calc

This commit is contained in:
Stefan Reimer 2020-09-11 11:07:49 +01:00
parent e56d0661d6
commit d13fc9d519
1 changed files with 2 additions and 2 deletions

View File

@ -49,12 +49,12 @@ spec:
resources: resources:
requests: requests:
cpu: {{ default "200m" .cpu_request }} cpu: {{ default "200m" .cpu_request }}
memory: {{ mul 2 ( default "4" .jvm_heap ) }}Gi memory: {{ mul 2 ( default "2" .jvm_heap ) }}Gi
limits: limits:
{{- if .cpu_limit }} {{- if .cpu_limit }}
cpu: {{ .cpu_limit }} cpu: {{ .cpu_limit }}
{{- end }} {{- end }}
memory: {{ mul 2 ( default "4" .jvm_heap ) }}Gi memory: {{ mul 2 ( default "2" .jvm_heap ) }}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