Skip to content

Commit 3eed3a5

Browse files
committed
Updated Heap Dump Exporter
- Added option to disable PVC - Added option to configure terminationGracePeriodSeconds
1 parent c52067c commit 3eed3a5

File tree

4 files changed

+46
-1
lines changed

4 files changed

+46
-1
lines changed

charts/relution/ci/full-values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ autoscaling:
6262

6363
heapDumpExporter:
6464
enabled: true
65+
persistence:
66+
enabled: true
6567
s3:
6668
bucket: s3://test-relution-io
6769
awsAccessKeyId: relution

charts/relution/ci/hde-values.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
ingress:
2+
enabled: true
3+
hosts:
4+
- host: '{{ required "relution.config.relution.server.externalURL is required!" .Values.relution.config.relution.server.externalURL | replace "https://" "" }}'
5+
paths:
6+
- path: /
7+
pathType: ImplementationSpecific
8+
9+
relution:
10+
config:
11+
relution:
12+
server:
13+
externalURL: https://test.relution.io
14+
database:
15+
type: mariadb
16+
url: jdbc:mariadb://mariadb:3306/relution
17+
username: relution
18+
password: relution
19+
20+
mariadb:
21+
enabled: true
22+
fullnameOverride: mariadb
23+
auth:
24+
rootPassword: relution
25+
username: relution
26+
password: relution
27+
database: relution
28+
29+
heapDumpExporter:
30+
enabled: true
31+
persistence:
32+
enabled: true
33+
s3:
34+
bucket: s3://test-relution-io
35+
awsAccessKeyId: relution
36+
awsSecretAccessKey: relution

charts/relution/templates/deployment.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ spec:
1212
{{- if not .Values.autoscaling.enabled }}
1313
replicas: {{ .Values.replicaCount }}
1414
{{- end }}
15-
{{- if .Values.heapDumpExporter.enabled }}
15+
{{- if and .Values.heapDumpExporter.enabled .Values.heapDumpExporter.persistence.enabled }}
1616
strategy:
1717
type: Recreate
1818
{{- end }}
@@ -149,6 +149,7 @@ spec:
149149
- name: heap-dump-exporter
150150
image: "{{ .Values.heapDumpExporter.image.repository }}:{{ .Values.heapDumpExporter.image.tag }}"
151151
imagePullPolicy: {{ .Values.heapDumpExporter.image.pullPolicy }}
152+
terminationGracePeriodSeconds: {{ .Values.heapDumpExporter.terminationGracePeriodSeconds }}
152153
command: ["/bin/sh", "-c"]
153154
args:
154155
- |
@@ -185,8 +186,12 @@ spec:
185186
{{- end }}
186187
{{- if .Values.heapDumpExporter.enabled }}
187188
- name: heap-dumps
189+
{{- if .Values.heapDumpExporter.persistence.enabled }}
188190
persistentVolumeClaim:
189191
claimName: {{ include "relution.fullname" . }}-heap-dump-exporter
192+
{{- else }}
193+
emptyDir: {}
194+
{{- end }}
190195
{{- end }}
191196
{{- if .Values.additionalVolumes }}
192197
{{- toYaml .Values.additionalVolumes | nindent 8 }}

charts/relution/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,15 @@ heapDumpExporter:
167167
repository: amazon/aws-cli
168168
pullPolicy: IfNotPresent
169169
tag: "2.9.13"
170+
terminationGracePeriodSeconds: 30
170171
directory: /opt/relution/log
171172
s3:
172173
endpointUrl: https://s3.eu-central-1.amazonaws.com
173174
bucket: ""
174175
awsAccessKeyId: ""
175176
awsSecretAccessKey: ""
176177
persistence:
178+
enabled: false
177179
size: 10Gi
178180
storageClass: ""
179181

0 commit comments

Comments
 (0)