Skip to content

Commit 9dc4bc1

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

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

helm/trino-gateway/templates/deployment.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@ 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+
{{- toYaml .Values.command | nindent 12}}
5247
ports:
5348
- name: request
5449
containerPort: {{ index .Values "config" "serverConfig" "http-server.http.port" }}

helm/trino-gateway/values.yaml

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

55+
# Startup command for Trino Gateway process. Add additional java options here if required
56+
command:
57+
- "java"
58+
- "-XX:MinRAMPercentage=80.0"
59+
- "-XX:MaxRAMPercentage=80.0"
60+
- "-jar"
61+
- "/usr/lib/trino/gateway-ha-jar-with-dependencies.jar"
62+
- "/etc/gateway/config.yaml"
63+
5564
service:
5665
type: ClusterIP
5766
port: 8080

0 commit comments

Comments
 (0)