Skip to content

Commit 5a278a5

Browse files
committed
Add JVM options configuration to self-monitor chart deployment.
1 parent 7baa918 commit 5a278a5

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

self-monitor/charts/self-monitor/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ spec:
1919
imagePullPolicy: {{ .Values.image.pullPolicy }}
2020
envFrom:
2121
{{- toYaml .Values.envFrom | nindent 12 }}
22+
env:
23+
- name: JAVA_OPTS
24+
value: {{ .Values.jvmOpts }}
2225
ports:
2326
- containerPort: {{ .Values.service.targetPort }}
2427
volumeMounts:

self-monitor/charts/self-monitor/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ resources:
88
cpu: 500m
99
memory: 512Mi
1010

11+
jvmOpts: >-
12+
-Xms512m
13+
-Xmx512m
14+
-XX:MaxMetaspaceSize=64m
15+
-XX:ReservedCodeCacheSize=128m
16+
-XX:MaxDirectMemorySize=64m
17+
-Xss512k
18+
1119
image:
1220
repository: ghcr.io/daverbk/self-monitor
1321
tag: latest

0 commit comments

Comments
 (0)