Skip to content

Commit 1e89e06

Browse files
author
mway-niels
authored
Updated Heap Dump Exporter (#22)
- Added option to disable PVC - Added option to configure terminationGracePeriodSeconds
1 parent c52067c commit 1e89e06

File tree

5 files changed

+49
-3
lines changed

5 files changed

+49
-3
lines changed

charts/relution/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ maintainers:
88

99
type: application
1010

11-
version: 2.4.6-1
11+
version: 2.5.0-1
1212

13-
appVersion: "5.26.4"
13+
appVersion: "5.29.1"
1414

1515
dependencies:
1616
- name: mariadb

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: false
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 }}
@@ -54,6 +54,7 @@ spec:
5454
hostAliases:
5555
{{- toYaml .Values.hostAliases | nindent 8 }}
5656
{{- end }}
57+
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
5758
{{- if .Values.heapDumpExporter.enabled }}
5859
initContainers:
5960
- name: volume-permission
@@ -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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ securityContext: {}
2323

2424
hostAliases: []
2525

26+
terminationGracePeriodSeconds: 30
27+
2628
service:
2729
type: ClusterIP
2830
port: 80
@@ -174,6 +176,7 @@ heapDumpExporter:
174176
awsAccessKeyId: ""
175177
awsSecretAccessKey: ""
176178
persistence:
179+
enabled: false
177180
size: 10Gi
178181
storageClass: ""
179182

0 commit comments

Comments
 (0)