81699626 by Adam Heath

Add knobs to set resource limits for elasticsearch+kibana.

1 parent de8c462d
......@@ -14,8 +14,17 @@ elasticsearch:
enabled: true
version: 8.2.3
count: 2
resources:
limits:
memory: 1.5Gi
env:
- name: ES_JAVA_OPTS
value: "-Xms1g -Xmx1g"
kibana:
count: 1
resources:
limits:
memory: 1Gi
postgresql:
enabled: true
clone: {}
......
......@@ -33,6 +33,11 @@ releases:
version: {{ .Values.elasticsearch.version }}
elasticsearchRef:
name: {{ .Values.name }}-moqui
podTemplate:
spec:
containers:
- name: kibana
resources: {{ .Values.elasticsearch.kibana.resources | toYaml | nindent 20 }}
jsonPatches:
- target:
group: elasticsearch.k8s.elastic.co
......@@ -44,6 +49,14 @@ releases:
- op: replace
path: /spec/nodeSets/0/count
value: {{ .Values.elasticsearch.count }}
- op: add
path: /spec/nodeSets/0/podTemplate
value:
spec:
containers:
- name: elasticsearch
resources: {{ .Values.elasticsearch.resources | toYaml | nindent 22 }}
env: {{ .Values.elasticsearch.env | toYaml | nindent 22 }}
- name: {{ .Values.name }}-moqui-postgresql
condition: postgresql.enabled
......