diff --git a/helm/trino-gateway/templates/deployment.yaml b/helm/trino-gateway/templates/deployment.yaml index 0baaf7862..c2412a6c5 100644 --- a/helm/trino-gateway/templates/deployment.yaml +++ b/helm/trino-gateway/templates/deployment.yaml @@ -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" }} diff --git a/helm/trino-gateway/values.yaml b/helm/trino-gateway/values.yaml index 5846bdabc..af9e3bc5e 100644 --- a/helm/trino-gateway/values.yaml +++ b/helm/trino-gateway/values.yaml @@ -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