trino-gateway
by trinodb
A Helm chart for Trino Gateway
About this chart
trino-gateway
A Helm chart for Trino Gateway
Homepage: https://trinodb.github.io/trino-gateway/
Source Code
Values
-
replicaCount- int, default:1 -
image.repository- string, default:"trinodb/trino-gateway"Repository location of the Trino Gateway image, typically
organization/imagename -
image.pullPolicy- string, default:"IfNotPresent" -
image.tag- string, default:""Override the image tag whose default is the chart appVersion.
-
imagePullSecrets- list, default:[]An optional list of references to secrets in the same namespace to use for pulling images. Example:
imagePullSecrets: - name: registry-credentials -
envFrom- list, default:[]A list of secrets and configmaps to mount into the init container as environment variables. Example:
envFrom: - secretRef: name: password-secret -
initContainers- object, default:{}Additional containers that run to completion during pod initialization. Example:
initContainers: - name: wait-for-service image: busybox:1.28 imagePullPolicy: IfNotPresent command: ['sh', '-c', "until nslookup {{ .Values.serviceName }}.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local; do echo waiting for myservice; sleep 2; done"] - name: init-sleep image: busybox:1.28 imagePullPolicy: IfNotPresent command: ['sh', '-c', 'echo The worker is running! && sleep 3600'] -
config.serverConfig."node.environment"- string, default:"test" -
config.serverConfig."http-server.http.enabled"- bool, default:true -
config.dataStore.jdbcUrl- string, default:"jdbc:postgresql://localhost:5432/gateway"The connection details for the backend database for Trino Gateway and Trino query history
-
config.dataStore.user- string, default:"postgres" -
config.dataStore.password- string, default:"mysecretpassword" -
config.dataStore.driver- string, default:"org.postgresql.Driver" -
config.clusterStatsConfiguration.monitorType- string, default:"INFO_API" -
command- list, default:["java","-XX:MinRAMPercentage=80.0","-XX:MaxRAMPercentage=80.0","-jar","/usr/lib/trino-gateway/gateway-ha-jar-with-dependencies.jar","/etc/trino-gateway/config.yaml"]Startup command for Trino Gateway process. Add additional Java options and other modifications as desired.
-
service- object, default:{"annotations":{},"ports":[{"name":"gateway","protocol":"TCP"}],"type":"ClusterIP"}Service for accessing the gateway. The contents of this dictionary are used for the service spec. The
portandtargetPortof the first element of the ports list will automatically be set to the value ofconfig.serverConfig."http-server.http[s].port". If both https and http ports are defined the https port is used. In this case, an additional service for the http port must be configured manually. Additional ports, such as for JMX or a Java Agent can be configured by adding elements to the ports list. The selector is also automatically configured. All other values are passed through as is. Example configuration for exposing both https and http:service: type: NodePort ports: - protocol: TCP name: request nodePort: 30443 # targetPort and port will automatically pulled from serverConfig.http-server.https.port - protocol: TCP name: gateway-http nodePort: 30080 port: 8080 # targetPort must be explicitly set to the same value as serverConfig.http-server.http.port targetPort: 8080 -
serviceName- string, default:"trino-gateway"Set a custom name for the gateway service
-
ingress.enabled- bool, default:false -
ingress.className- string, default:"" -
ingress.annotations- object, default:{} -
ingress.hosts- list, default:[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]Ingress rules. Example:
- host: trino.example.com paths: - path: / pathType: ImplementationSpecific -
ingress.tls- list, default:[]Ingress TLS configuration. Example:
- secretName: chart-example-tls hosts: - chart-example.local -
resources.limits.cpu- int, default:2 -
resources.limits.memory- string, default:"4Gi" -
resources.requests.cpu- int, default:2 -
resources.requests.memory- string, default:"4Gi" -
autoscaling.enabled- bool, default:false -
autoscaling.minReplicas- int, default:1 -
autoscaling.maxReplicas- int, default:100 -
autoscaling.targetCPUUtilizationPercentage- int, default:80Target average CPU utilization, represented as a percentage of requested CPU. To disable scaling based on CPU, set to an empty string.
-
autoscaling.targetMemoryUtilizationPercentage- string, default:""Target average memory utilization, represented as a percentage of requested memory. To disable scaling based on memory, set to an empty string.
-
livenessProbe.initialDelaySeconds- int, default:30 -
livenessProbe.periodSeconds- int, default:10 -
livenessProbe.failureThreshold- int, default:3 -
livenessProbe.timeoutSeconds- int, default:1 -
livenessProbe.scheme- string, default:"HTTP" -
readinessProbe.initialDelaySeconds- int, default:5 -
readinessProbe.periodSeconds- int, default:5 -
readinessProbe.failureThreshold- int, default:12 -
readinessProbe.timeoutSeconds- int, default:1 -
readinessProbe.scheme- string, default:"HTTP" -
volumes- list, default:[] -
volumeMounts- list, default:[] -
lifecycle- object, default:{}Container lifecycle events. Example:
preStop: exec: command: ["/bin/sh", "-c", "sleep 120"] -
terminationGracePeriodSeconds- int, default:30 -
nodeSelector- object, default:{} -
tolerations- list, default:[] -
topologySpreadConstraints- list, default:[]Deployment Topology Spread Constraints configuration. Useful to control how Pods are spread across domains such as regions, zones, nodes etc. Example:
- maxSkew: 1 topologyKey: "kubernetes.io/hostname" whenUnsatisfiable: ScheduleAnyway - maxSkew: 1 topologyKey: "topology.kubernetes.io/zone" whenUnsatisfiable: ScheduleAnyway -
affinity- object, default:{} -
commonLabels- object, default:{}Labels that get applied to every resource's metadata
-
podAnnotations- object, default:{}Annotations to add to the Gateway pods. By default, all pods will have the
checksum/trino-gateway-configannotation with the checksum of the current configuration file. This is used to trigger a rolling update of the deployment when the configuration changes. This behaviour can be disabled by manually setting this annotation to a fixed constant. Example:podAnnotations: checksum/trino-gateway-config: "" -
podLabels- object, default:{} -
podDisruptionBudget- object, default:{"minAvailable":1}Pod Disruption Budget configuration.
-
podSecurityContext- object, default:{}Pod security context configuration. To remove the default, set it to null (or
~). -
securityContext- object, default:{}Container security context configuration. Example:
capabilities: drop: - ALL readOnlyRootFilesystem: true runAsNonRoot: true -
serviceAccount.create- bool, default:trueSpecifies whether a service account should be created
-
serviceAccount.automount- bool, default:trueAutomatically mount a ServiceAccount's API credentials?
-
serviceAccount.annotations- object, default:{}Annotations to add to the service account
-
serviceAccount.name- string, default:""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
-
strategy- object, default:{"rollingUpdate":{"maxSurge":"25%","maxUnavailable":"25%"},"type":"RollingUpdate"}The deployment strategy to use to replace existing pods with new ones.
-
serviceMonitor.enabled- bool, default:falseSet to true to create resources for the prometheus-operator.
-
serviceMonitor.labels- object, default:{"prometheus":"kube-prometheus"}Labels for serviceMonitor, so that Prometheus can select it
-
serviceMonitor.interval- string, default:"30s"The serviceMonitor web endpoint interval
-
extraManifests- list, default:[]Array of extra kubernetes manifests to deploy with the release. Strings are evaluated as a template and can use template expansions and functions. All other objects are used as yaml.
Autogenerated from chart metadata using helm-docs v1.14.2
Deploy trino-gateway with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has trino-gateway on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charttrino-gateway is pinned at v1.22.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply