Skip to content

Commit

Permalink
Make startup command configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
willmostly committed Oct 16, 2024
1 parent 110cd7c commit c5fb835
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
7 changes: 1 addition & 6 deletions helm/trino-gateway/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,7 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- "java"
- "-XX:MinRAMPercentage=80.0"
- "-XX:MaxRAMPercentage=80.0"
- "-jar"
- "/usr/lib/trino/gateway-ha-jar-with-dependencies.jar"
- "/etc/gateway/config.yaml"
{{- toYaml .Values.command | nindent 12}}
ports:
- name: request
containerPort: {{ index .Values "config" "serverConfig" "http-server.http.port" }}
Expand Down
9 changes: 9 additions & 0 deletions helm/trino-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ config:
managedApps:
- io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor

# Startup command for Trino Gateway process. Add additional java options here if required
command:
- "java"
- "-XX:MinRAMPercentage=80.0"
- "-XX:MaxRAMPercentage=80.0"
- "-jar"
- "/usr/lib/trino/gateway-ha-jar-with-dependencies.jar"
- "/etc/gateway/config.yaml"

service:
type: ClusterIP
port: 8080
Expand Down

0 comments on commit c5fb835

Please sign in to comment.