81699626 by Adam Heath

Add knobs to set resource limits for elasticsearch+kibana.

1 parent de8c462d
...@@ -14,8 +14,17 @@ elasticsearch: ...@@ -14,8 +14,17 @@ elasticsearch:
14 enabled: true 14 enabled: true
15 version: 8.2.3 15 version: 8.2.3
16 count: 2 16 count: 2
17 resources:
18 limits:
19 memory: 1.5Gi
20 env:
21 - name: ES_JAVA_OPTS
22 value: "-Xms1g -Xmx1g"
17 kibana: 23 kibana:
18 count: 1 24 count: 1
25 resources:
26 limits:
27 memory: 1Gi
19 postgresql: 28 postgresql:
20 enabled: true 29 enabled: true
21 clone: {} 30 clone: {}
......
...@@ -33,6 +33,11 @@ releases: ...@@ -33,6 +33,11 @@ releases:
33 version: {{ .Values.elasticsearch.version }} 33 version: {{ .Values.elasticsearch.version }}
34 elasticsearchRef: 34 elasticsearchRef:
35 name: {{ .Values.name }}-moqui 35 name: {{ .Values.name }}-moqui
36 podTemplate:
37 spec:
38 containers:
39 - name: kibana
40 resources: {{ .Values.elasticsearch.kibana.resources | toYaml | nindent 20 }}
36 jsonPatches: 41 jsonPatches:
37 - target: 42 - target:
38 group: elasticsearch.k8s.elastic.co 43 group: elasticsearch.k8s.elastic.co
...@@ -44,6 +49,14 @@ releases: ...@@ -44,6 +49,14 @@ releases:
44 - op: replace 49 - op: replace
45 path: /spec/nodeSets/0/count 50 path: /spec/nodeSets/0/count
46 value: {{ .Values.elasticsearch.count }} 51 value: {{ .Values.elasticsearch.count }}
52 - op: add
53 path: /spec/nodeSets/0/podTemplate
54 value:
55 spec:
56 containers:
57 - name: elasticsearch
58 resources: {{ .Values.elasticsearch.resources | toYaml | nindent 22 }}
59 env: {{ .Values.elasticsearch.env | toYaml | nindent 22 }}
47 60
48 - name: {{ .Values.name }}-moqui-postgresql 61 - name: {{ .Values.name }}-moqui-postgresql
49 condition: postgresql.enabled 62 condition: postgresql.enabled
......