Skip to content

Commit e0f8f4f

Browse files
committed
Pass additional options to JVM
1 parent 110cd7c commit e0f8f4f

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

helm/trino-gateway/templates/deployment.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,8 @@ spec:
4343
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
4444
imagePullPolicy: {{ .Values.image.pullPolicy }}
4545
command:
46-
- "java"
47-
- "-XX:MinRAMPercentage=80.0"
48-
- "-XX:MaxRAMPercentage=80.0"
49-
- "-jar"
50-
- "/usr/lib/trino/gateway-ha-jar-with-dependencies.jar"
51-
- "/etc/gateway/config.yaml"
46+
- java
47+
{{- toYaml append .Values.javaOptions list "-XX:MinRAMPercentage=80.0" "-XX:MaxRAMPercentage=80.0" "-jar" "/usr/lib/trino/gateway-ha-jar-with-dependencies.jar" "/etc/gateway/config.yaml"}}
5248
ports:
5349
- name: request
5450
containerPort: {{ index .Values "config" "serverConfig" "http-server.http.port" }}

helm/trino-gateway/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ config:
5252
managedApps:
5353
- io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor
5454

55+
#additional java options
56+
javaOptions: []
57+
5558
service:
5659
type: ClusterIP
5760
port: 8080

0 commit comments

Comments
 (0)