Trino, from the first test
to the team's cluster.
Five common scenarios, from the first installation to corporate login. Each one covers: what the chart already provides, what changes in the cluster, the values file commented line by line, and a step-by-step with verification.
The tdp-trino chart starts Trino with a coordinator, workers that scale automatically and protections to keep queries from failing when a worker stops. Sizing, access and data sources are your decisions. Each scenario below covers one of them. For architecture, see Trino - Concepts.
Your environment
If you fill in your environment details here, examples and commands on the page use what you entered. The namespace, release name and values file are your choices, not the chart's.
Scenarios
- 1 · First contact
- 2 · Sizing
- 3 · Publish at a URL
- 4 · Require login
- 5 · Connect sources
Install with chart defaults, access from your machine and run a test query.
This tab installs Trino with the chart defaults, without a values file, accesses it from your machine and runs a test query on data that does not depend on any external database. What starts is a coordinator, which receives and plans queries, and workers, which execute them.
You have just received access to the cluster and want to see Trino working before deciding anything about sizing, access or data sources. Everything shown here is what the chart provides on its own. Other scenarios start from this state.
One coordinator and the initial workers set in server.workers. HPA (Horizontal Pod Autoscaler, the Kubernetes resource that creates and removes pods based on CPU and memory usage) is already enabled, can reach the maximum set in server.autoscaling.maxReplicas and reads CPU and memory from the cluster metrics API.
Requests in resources.requests, limits in resources.limits and the JVM heap in jvm.maxHeapSize, with the same defaults on the coordinator and each worker (values in All parameters).
Internal Service (ClusterIP) on the port set in service.port, without Ingress or authentication: any username can log in, without a password.
tpch, tpcds and memory, the reference catalogs, with synthetic data and in-memory tables.
Distribution across nodes, graceful shutdown and PodDisruptionBudget, all three enabled. Scenario 2 explains each.
What starts in the namespace with chart defaults
- Who queries. Without external exposure, each person opens a tunnel from their machine to the Service with kubectl port-forward. Suitable for testing, not for a team. Chart default:
no external exposure (port-forward). - Service. The internal Trino address in the cluster. Its name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino. Chart default:
ClusterIP, on the port defined in service.port. (tdp-trino.service.type · tdp-trino.service.port) - Coordinator. Receives queries, plans execution and distributes work among workers. A single replica. No authentication: accepts any username, without a password. Memory: limit of 4Gi with heap of 3G. Chart default:
HTTP without authentication · requests and limits in coordinator.resources · heap in coordinator.jvm.maxHeapSize. (tdp-trino.coordinator.resources · tdp-trino.coordinator.jvm.maxHeapSize) - Workers. Execute query stages in parallel and read data sources. Start at 2 and HPA creates or removes workers based on CPU and memory. Memory: limit of 4Gi with heap of 3G. Chart default:
initial count in server.workers · HPA enabled · requests and limits in worker.resources · heap in worker.jvm.maxHeapSize. (tdp-trino.server.workers · tdp-trino.worker.resources · tdp-trino.worker.jvm.maxHeapSize) - HPA (Horizontal Pod Autoscaler). A native Kubernetes resource that creates and removes pods based on CPU and memory usage, read from the cluster resource metrics API (metrics.k8s.io): metrics-server on Kubernetes and Rancher. The monitoring stack on OpenShift. Requires requests configured for workers. Chart default:
enabled: maximum in server.autoscaling.maxReplicas, CPU and memory targets in targetCPUUtilizationPercentage and targetMemoryUtilizationPercentage. (tdp-trino.server.autoscaling) - Distribution across nodes. At most one worker difference between any two nodes, so a node failure does not take down most workers. Chart default:
enabled. (tdp-trino.worker.topologySpreadConstraints) - Graceful shutdown. A worker about to stop stops receiving tasks, finishes its running tasks and only then exits. It applies to every worker stop: in HPA scale-down, rollouts and node drains. Without it, a query that had a task on that worker fails. Chart default:
enabled: time limits in gracefulShutdown.gracePeriodSeconds and terminationGracePeriodSeconds. (tdp-trino.worker.gracefulShutdown) - PodDisruptionBudget. The Kubernetes limit on how many workers can be taken down at once during node drains and other evictions. Chart default:
enabled, with the limit in maxUnavailable. (workerPodDisruptionBudget) - Reference catalogs. Synthetic data from the TPC-H and TPC-DS benchmarks and in-memory tables: used to test Trino without any external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs)
Check the TDP license
The chart requires a valid TDP license installed in the cluster.
kubectl get platformlicenses -A
Success criteria
Create the registry pull Secret
The chart uses the tdp-registry Secret with your TDP registry credentials in the release namespace.
kubectl -n <NAMESPACE> create secret docker-registry tdp-registry \
--docker-server=registry.tecnisys.com.br \
--docker-username=<REGISTRY_USERNAME> --docker-password=<REGISTRY_CLI_SECRET>
Success criteria
kubectl -n <NAMESPACE> get secret tdp-registry. Registry credentials are covered in Prerequisites.If the namespace does not exist yet
Create the namespace before the Secret:
kubectl create namespace <NAMESPACE>
Check the metrics API
The worker HPA, enabled by default, reads CPU and memory from this API.
kubectl get apiservices v1beta1.metrics.k8s.io
Success criteria
Available).If the API does not exist or is unavailable
On Kubernetes and Rancher, the API comes from metrics-server. On OpenShift, from the monitoring stack. Without it, workers stay at the server.workers count and HPA logs FailedGetResourceMetric. To install without HPA, add --set tdp-trino.server.autoscaling.enabled=false to the next step's command.
Install with defaults
Without a values file, the chart starts exactly as in the figure above.
helm install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-trino \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace
--version pins the chart version. Without it, Helm installs the latest version published in the registry.
On x86 nodes, the CPU must be x86-64-v3 (Intel Haswell 2013+ or AMD Zen 2+). On older hardware, add --set tdp-trino.image.tag=476 to use the alternative image.
Success criteria
kubectl -n <NAMESPACE> get pods
The coordinator and workers reach Running.
If a pod does not start
Namespace events, in chronological order, show the reason:
kubectl -n <NAMESPACE> get events --sort-by=.lastTimestamp
Then look up the message in When something goes wrong.
Access from your machine
Without external exposure, kubectl opens a tunnel from your machine to the Service.
kubectl -n <NAMESPACE> port-forward svc/<RELEASE_NAME>-tdp-trino 8080:8080 &
trino --server http://localhost:8080
The Service name derives from the release: <RELEASE_NAME>-tdp-trino, or only <RELEASE_NAME> when the release name already contains tdp-trino.
Success criteria
localhost, on the local port from the port-forward above, and the trino client accepts queries against reference catalogs:| Catalog | What it provides |
|---|---|
tpch | Synthetic data from the TPC-H benchmark, for initial testing and validation. |
tpcds | Synthetic data from the TPC-DS benchmark, for analytical scenarios. |
memory | Temporary in-memory tables, for simple tests. |
Give pods more memory and decide how workers scale, without failing queries.
Trino runs as a coordinator, which receives queries and distributes the work, and a set of workers, which execute them. Sizing Trino means adjusting those pods: how much memory each one receives and how many workers exist.
Trino is already in use and queries have grown: they read more data, join larger tables and run several at once. Signs typically include queries failing for lack of memory or workers terminated by Kubernetes (OOMKilled).
The chart already decides the worker count by itself: HPA is enabled and creates or removes workers based on CPU and memory usage, between server.workers and server.autoscaling.maxReplicas, as long as the cluster has the metrics API. You only need to choose another mode (KEDA or a fixed count) if HPA does not fit. Memory comes with a chart default, the same for the coordinator and the workers, and it does not follow the load: when the load grows, you are the one who adjusts it, and there is a chart rule worth understanding before changing it.
The limit in resources.limits.memory and heap in jvm.maxHeapSize, on the coordinator and each worker. Per-node query memory is set in config.query.maxMemoryPerNode and cluster query memory in server.config.query.maxMemory.
Initial count in server.workers. HPA enabled, with its maximum in server.autoscaling.maxReplicas and CPU and memory targets in targetCPUUtilizationPercentage and targetMemoryUtilizationPercentage. KEDA disabled.
How the workers scale
What determines the worker count
- Who queries. Without external exposure, each person opens a tunnel from their machine to the Service with kubectl port-forward. Suitable for testing, not for a team. Chart default:
no external exposure (port-forward). - Service. The internal Trino address in the cluster. Its name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino. Chart default:
ClusterIP, on the port defined in service.port. (tdp-trino.service.type · tdp-trino.service.port) - Coordinator. Receives queries, plans execution and distributes work among workers. A single replica. No authentication: accepts any username, without a password. Memory: limit of 8Gi with heap of 6G. Chart default:
HTTP without authentication · requests and limits in coordinator.resources · heap in coordinator.jvm.maxHeapSize. (tdp-trino.coordinator.resources · tdp-trino.coordinator.jvm.maxHeapSize) - Workers. Execute query stages in parallel and read data sources. Start at 2 and HPA creates or removes workers based on CPU and memory. Memory: limit of 8Gi with heap of 6G. Chart default:
initial count in server.workers · HPA enabled · requests and limits in worker.resources · heap in worker.jvm.maxHeapSize. (tdp-trino.server.workers · tdp-trino.worker.resources · tdp-trino.worker.jvm.maxHeapSize) - HPA (Horizontal Pod Autoscaler). A native Kubernetes resource that creates and removes pods based on CPU and memory usage, read from the cluster resource metrics API (metrics.k8s.io): metrics-server on Kubernetes and Rancher. The monitoring stack on OpenShift. Requires requests configured for workers. Chart default:
enabled: maximum in server.autoscaling.maxReplicas, CPU and memory targets in targetCPUUtilizationPercentage and targetMemoryUtilizationPercentage. (tdp-trino.server.autoscaling) - Distribution across nodes. At most one worker difference between any two nodes, so a node failure does not take down most workers. Chart default:
enabled. (tdp-trino.worker.topologySpreadConstraints) - Graceful shutdown. A worker about to stop stops receiving tasks, finishes its running tasks and only then exits. It applies to every worker stop: in HPA scale-down, rollouts and node drains. Without it, a query that had a task on that worker fails. Chart default:
enabled: time limits in gracefulShutdown.gracePeriodSeconds and terminationGracePeriodSeconds. (tdp-trino.worker.gracefulShutdown) - PodDisruptionBudget. The Kubernetes limit on how many workers can be taken down at once during node drains and other evictions. Chart default:
enabled, with the limit in maxUnavailable. (workerPodDisruptionBudget) - Reference catalogs. Synthetic data from the TPC-H and TPC-DS benchmarks and in-memory tables: used to test Trino without any external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs)
What determines the worker count: HPA (default)
- Who queries. Without external exposure, each person opens a tunnel from their machine to the Service with kubectl port-forward. Suitable for testing, not for a team. Chart default:
no external exposure (port-forward). - Service. The internal Trino address in the cluster. Its name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino. Chart default:
ClusterIP, on the port defined in service.port. (tdp-trino.service.type · tdp-trino.service.port) - Coordinator. Receives queries, plans execution and distributes work among workers. A single replica. No authentication: accepts any username, without a password. Memory: limit of 8Gi with heap of 6G. Chart default:
HTTP without authentication · requests and limits in coordinator.resources · heap in coordinator.jvm.maxHeapSize. (tdp-trino.coordinator.resources · tdp-trino.coordinator.jvm.maxHeapSize) - Workers. Execute query stages in parallel and read data sources. Start at 2 and HPA creates or removes workers based on CPU and memory. Memory: limit of 8Gi with heap of 6G. Chart default:
initial count in server.workers · HPA enabled · requests and limits in worker.resources · heap in worker.jvm.maxHeapSize. (tdp-trino.server.workers · tdp-trino.worker.resources · tdp-trino.worker.jvm.maxHeapSize) - HPA (Horizontal Pod Autoscaler). A native Kubernetes resource that creates and removes pods based on CPU and memory usage, read from the cluster resource metrics API (metrics.k8s.io): metrics-server on Kubernetes and Rancher. The monitoring stack on OpenShift. Requires requests configured for workers. Chart default:
enabled: maximum in server.autoscaling.maxReplicas, CPU and memory targets in targetCPUUtilizationPercentage and targetMemoryUtilizationPercentage. (tdp-trino.server.autoscaling) - Distribution across nodes. At most one worker difference between any two nodes, so a node failure does not take down most workers. Chart default:
enabled. (tdp-trino.worker.topologySpreadConstraints) - Graceful shutdown. A worker about to stop stops receiving tasks, finishes its running tasks and only then exits. It applies to every worker stop: in HPA scale-down, rollouts and node drains. Without it, a query that had a task on that worker fails. Chart default:
enabled: time limits in gracefulShutdown.gracePeriodSeconds and terminationGracePeriodSeconds. (tdp-trino.worker.gracefulShutdown) - PodDisruptionBudget. The Kubernetes limit on how many workers can be taken down at once during node drains and other evictions. Chart default:
enabled, with the limit in maxUnavailable. (workerPodDisruptionBudget) - Reference catalogs. Synthetic data from the TPC-H and TPC-DS benchmarks and in-memory tables: used to test Trino without any external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs)
What determines the worker count: KEDA
- Who queries. Without external exposure, each person opens a tunnel from their machine to the Service with kubectl port-forward. Suitable for testing, not for a team. Chart default:
no external exposure (port-forward). - Service. The internal Trino address in the cluster. Its name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino. Chart default:
ClusterIP, on the port defined in service.port. (tdp-trino.service.type · tdp-trino.service.port) - Coordinator. Receives queries, plans execution and distributes work among workers. A single replica. No authentication: accepts any username, without a password. Memory: limit of 8Gi with heap of 6G. Chart default:
HTTP without authentication · requests and limits in coordinator.resources · heap in coordinator.jvm.maxHeapSize. (tdp-trino.coordinator.resources · tdp-trino.coordinator.jvm.maxHeapSize) - Workers. Execute query stages in parallel and read data sources. KEDA decides the count based on Trino's own metrics. Memory: limit of 8Gi with heap of 6G. Chart default:
initial count in server.workers · HPA enabled · requests and limits in worker.resources · heap in worker.jvm.maxHeapSize. (tdp-trino.server.workers · tdp-trino.worker.resources · tdp-trino.worker.jvm.maxHeapSize) - KEDA. An event-driven scaler: queries Prometheus, which collects Trino JMX metrics, and decides how many workers are needed. Requires KEDA and Prometheus in the cluster and cannot be combined with HPA. Chart default:
disabled. (tdp-trino.server.keda) - Distribution across nodes. At most one worker difference between any two nodes, so a node failure does not take down most workers. Chart default:
enabled. (tdp-trino.worker.topologySpreadConstraints) - Graceful shutdown. A worker about to stop stops receiving tasks, finishes its running tasks and only then exits. It applies to every worker stop: in KEDA scale-down, rollouts and node drains. Without it, a query that had a task on that worker fails. Chart default:
enabled: time limits in gracefulShutdown.gracePeriodSeconds and terminationGracePeriodSeconds. (tdp-trino.worker.gracefulShutdown) - PodDisruptionBudget. The Kubernetes limit on how many workers can be taken down at once during node drains and other evictions. Chart default:
enabled, with the limit in maxUnavailable. (workerPodDisruptionBudget) - Reference catalogs. Synthetic data from the TPC-H and TPC-DS benchmarks and in-memory tables: used to test Trino without any external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs)
What determines the worker count: Fixed count
- Who queries. Without external exposure, each person opens a tunnel from their machine to the Service with kubectl port-forward. Suitable for testing, not for a team. Chart default:
no external exposure (port-forward). - Service. The internal Trino address in the cluster. Its name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino. Chart default:
ClusterIP, on the port defined in service.port. (tdp-trino.service.type · tdp-trino.service.port) - Coordinator. Receives queries, plans execution and distributes work among workers. A single replica. No authentication: accepts any username, without a password. Memory: limit of 8Gi with heap of 6G. Chart default:
HTTP without authentication · requests and limits in coordinator.resources · heap in coordinator.jvm.maxHeapSize. (tdp-trino.coordinator.resources · tdp-trino.coordinator.jvm.maxHeapSize) - Workers. Execute query stages in parallel and read data sources. Fixed count of 2, without autoscaling. Memory: limit of 8Gi with heap of 6G. Chart default:
initial count in server.workers · HPA enabled · requests and limits in worker.resources · heap in worker.jvm.maxHeapSize. (tdp-trino.server.workers · tdp-trino.worker.resources · tdp-trino.worker.jvm.maxHeapSize) - Distribution across nodes. At most one worker difference between any two nodes, so a node failure does not take down most workers. Chart default:
enabled. (tdp-trino.worker.topologySpreadConstraints) - Graceful shutdown. A worker about to stop stops receiving tasks, finishes its running tasks and only then exits. It applies to every worker stop: in rollouts and node drains. Without it, a query that had a task on that worker fails. Chart default:
enabled: time limits in gracefulShutdown.gracePeriodSeconds and terminationGracePeriodSeconds. (tdp-trino.worker.gracefulShutdown) - PodDisruptionBudget. The Kubernetes limit on how many workers can be taken down at once during node drains and other evictions. Chart default:
enabled, with the limit in maxUnavailable. (workerPodDisruptionBudget) - Reference catalogs. Synthetic data from the TPC-H and TPC-DS benchmarks and in-memory tables: used to test Trino without any external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs)
HPA, the default mode. Horizontal Pod Autoscaler is the native Kubernetes resource that creates and removes pods based on CPU and memory usage, read from the cluster resource metrics API (metrics.k8s.io). With the unmodified chart, workers already scale up to server.autoscaling.maxReplicas. To change limits, write the autoscaling block below. Two prerequisites: that API must be available (metrics-server on Kubernetes and Rancher; the monitoring stack on OpenShift), and workers need requests, without which HPA cannot measure usage. Without the API, workers stay at the server.workers count and HPA logs FailedGetResourceMetric. Check with kubectl get apiservices v1beta1.metrics.k8s.io. Scale-down is graceful: each removed worker finishes its running tasks before exiting.
KEDA, to scale using Trino's own metrics. CPU and memory do not always tell the right story: Trino with queued queries may have idle CPU. KEDA is an event-driven scaler that queries Prometheus, and the chart includes an example asking Trino how many workers it needs (RequiredWorkers). It requires KEDA and Prometheus installed, JMX metrics exposed (JMX is already enabled. The exporter and ServiceMonitor are enabled in the block) and native HPA disabled: both cannot control the same workers. Scale-down, including down to zero, is graceful.
Fixed count. You choose tdp-trino.server.workers and disable autoscaling. This makes sense when the cluster lacks the metrics API, when load is predictable or when you want to reserve capacity explicitly. The cost is that nobody adjusts the count for you.
The memory rule
When changing resources.limits.memory, change jvm.maxHeapSize with it: a heap larger than the limit causes the pod to be terminated for lack of memory (OOMKilled). The heap is about 75% of the limit. With a heap below about 1.5G, also reduce per-node query memory (at most about 30% of the heap) and server.config.query.maxMemory. Otherwise, Trino does not start (Configuration is invalid ... setMaxQueryMemoryPerNode).
Try it: drag a pod's memory limit. Heap and query memory are calculated using the rule above, and the scenario diagram and the values file just below show the same values. The coordinator and workers have separate controls because the chart configures each independently.
Coordinator
Each worker
The values file
Two blocks, one decision each: the resources of each pod, which apply to any mode, and who decides the number of workers, which changes with the choice above. Both go in the same file.
The resources block follows the memory control above and starts from the example for workloads with more memory, explained line by line. Only differences from defaults go in the file. Everything else still comes from the chart.
1tdp-trino:2 coordinator:3 resources:4 requests:5 cpu: "2"6 memory: "4Gi"7 limits:8 cpu: "4"9 memory: "8Gi"10 jvm:11 maxHeapSize: "6G"12 worker:13 resources:14 requests:15 cpu: "2"16 memory: "4Gi"17 limits:18 cpu: "4"19 memory: "8Gi"20 jvm:21 maxHeapSize: "6G"
All Trino settings go under the subchart key. Without this prefix, Helm does not apply the block.
- Chart prefix (linha 1). All Trino settings go under the subchart key. Without this prefix, Helm does not apply the block.
- requests (linha 4). What Kubernetes reserves for the pod. In the example, the reserved memory is half the limit, the same proportion as the chart default. HPA works only with requests configured for workers.
- limits (linha 7). The pod's maximum: the value chosen in the control above. It determines the heap.
- Coordinator heap (linha 11). About 75% of the limit, calculated from the control. A heap larger than the limit results in OOMKilled.
- Workers (linha 12). Execute queries and usually need more resources than the coordinator. Adjust for query complexity and data volume.
- Worker heap (linha 21). About 75% of the limit, calculated from the control. A heap larger than the limit results in OOMKilled.
1tdp-trino:2server:3 workers: 24 autoscaling:5 enabled: true6 maxReplicas: 107 targetCPUUtilizationPercentage: 708 targetMemoryUtilizationPercentage: 809 behavior:10 scaleDown:11 stabilizationWindowSeconds: 30012 scaleUp:13 stabilizationWindowSeconds: 0
Starting count. HPA grows from it up to maxReplicas.
- Initial workers (linha 3). Starting count. HPA grows from it up to maxReplicas.
- Worker requests (linha 4). HPA measures usage only when workers have requests. They come from the resources block above.
- maxReplicas (linha 6). Maximum worker count. The example raises the chart default, listed in the parameters table.
- Targets (linha 7). CPU and memory usage percentage that triggers scaling. Chart defaults are in the parameters table.
- scaleDown (linha 10). How long HPA waits before scaling down. Scale-down is graceful: each removed worker drains for up to terminationGracePeriodSeconds before exiting.
HPA: Best suited when the load shows up in CPU and memory and the cluster has the resource metrics API (metrics.k8s.io). It is the default mode.
1tdp-trino:2server:3 autoscaling:4 enabled: false56 keda:7 enabled: true8 pollingInterval: 309 cooldownPeriod: 30010 minReplicaCount: 111 maxReplicaCount: 1012 triggers:13 - type: prometheus14 metricType: Value15 metadata:16 serverAddress: "http://prometheus-server.monitoring.svc.cluster.local"17 threshold: "1"18 metricName: required_workers19 query: >-20 sum(avg_over_time(trino_execution_ClusterSizeMonitor_RequiredWorkers{21 service="tdp-trino"22 }[1m]))2324jmx:25 enabled: true26 exporter:27 enabled: true2829serviceMonitor:30 enabled: true
KEDA and HPA cannot control the same workers. HPA is enabled by default, so it must be disabled here.
- HPA disabled (linha 4). KEDA and HPA cannot control the same workers. HPA is enabled by default, so it must be disabled here.
- Timing (linha 8). pollingInterval: how often, in seconds, KEDA queries the metric. cooldownPeriod: how long it waits before scaling down.
- Range (linha 10). Minimum and maximum worker count. Scale-down, including down to zero, is graceful.
- Trigger (linha 13). A Prometheus query. The example uses the metric where Trino itself reports how many workers it needs.
- Prometheus (linha 16). Your Prometheus address. It must collect Trino JMX metrics.
- JMX and ServiceMonitor (linha 25). JMX exposes Trino internal metrics; the exporter publishes them in Prometheus format; ServiceMonitor tells Prometheus Operator where to collect them.
KEDA: Best suited when CPU and memory do not reflect the load, such as queued queries with workers idle on CPU, and the cluster already has KEDA and Prometheus.
1tdp-trino:2server:3 workers: 34 autoscaling:5 enabled: false
The count you want. With autoscaling disabled, this is exactly how many will exist.
- Workers (linha 3). The count you want. With autoscaling disabled, this is exactly how many will exist.
- Autoscaling disabled (linha 5). HPA is enabled by default. Without this line, it would keep adjusting the count.
Fixed count: Best suited when the cluster lacks the metrics API, the load is predictable or you want to reserve capacity explicitly.
Write the values file
Combine the blocks above, adjusted for your cluster, in a single file.
If you already have a Trino values file, add the blocks to it.
Apply to the release
The same command installs and upgrades.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-trino \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
The upgrade restarts workers. If the current release came from a version without graceful shutdown, this first rollout is not graceful yet: perform it during a quiet maintenance window.
Success criteria
kubectl -n <NAMESPACE> get pods
New workers reach Running and old ones exit one by one.
If a pod restarts or does not start
OOMKilled means the heap exceeds the limit; Configuration is invalid means a small heap without reducing query memory. Both are covered in When something goes wrong.
How a worker stops without failing queries
With HPA, workers stop frequently.
With KEDA, workers stop frequently.
With a fixed count, workers still stop during rollouts and node drains.
Without protection, each stop would fail queries with tasks on that worker, because Trino does not retry tasks on its own (there is no retry-policy). The chart provides three protections, all enabled by default. The coordinator, a single replica, is excluded from all three.
Distribution across nodes
Spreads workers across nodes with at most one worker difference between any two nodes. A node failure therefore does not take down most workers.
Disable: worker.topologySpreadConstraints: []
Graceful shutdown
Before exiting, the worker stops receiving tasks and finishes those running.
This protection applies during HPA scale-down, rollouts and node drains.
This protection applies during KEDA scale-down, rollouts and node drains.
This protection applies during rollouts and node drains.
Disable: worker.gracefulShutdown.enabled: false
PodDisruptionBudget
The Kubernetes limit: one worker at a time during node drains and other evictions.
It does not act during HPA scale-down, which removes pods without an eviction.
It does not act during KEDA scale-down, which removes pods without an eviction.
Disable: workerPodDisruptionBudget.enabled: false
What to expect in practice (four notes to avoid surprises)
- Shutdown time. An idle worker takes about 2 ×
gracePeriodSecondsto exit. A busy worker takes up toterminationGracePeriodSeconds, when it is forcibly terminated. A node drain removes one worker at a time.terminationGracePeriodSecondsmust be at least twicegracePeriodSeconds, otherwise Helm refuses to render. Increase both together. FailedPreStopHookis normal. Every graceful shutdown records this warning at the end because the hook ends withtail --pid=1, which dies with the container. Shutdown worked. Exclude this reason from alerts.- First upgrade. When upgrading from a release without graceful shutdown, old pods still stop the old way, and running queries fail. Only this rollout needs a quiet maintenance window. Existing workers are redistributed across nodes as the rollout recreates them.
- Two combinations that silently disable protections.
tdp-trino.nameOverridemakes the distribution selector stop matching. A customtdp-trino.worker.lifecyclereplaces the graceful shutdown hook. With graceful shutdown enabled, the chart installs an access control rule on workers allowing theadminuser to change worker state, and workers do not authenticate requests: any pod reaching a worker's HTTP port can put it inSHUTTING_DOWN. Restrict this withtdp-trino.networkPolicy.enabledwhen relevant.
tdp-trino:
worker:
gracefulShutdown:
enabled: true
gracePeriodSeconds: 120
terminationGracePeriodSeconds: 300
workerPodDisruptionBudget:
enabled: true
maxUnavailable: 1
Replace port-forward with a fixed address through Ingress or Gateway API.
This tab publishes Trino at a fixed address, so the team and query tools can reach it from outside the cluster. By default, nothing is published: Trino is reachable only through port-forward, a tunnel each person opens from their own machine with kubectl.
The chart publishes Trino in two ways, and only one may be enabled. The first is Ingress, the classic Kubernetes mechanism. On OpenShift, the router publishes it as a Route. The second is Gateway API, the newer standard: a Gateway already in the cluster receives traffic, and an HTTPRoute forwards it to Trino.
None. Ingress and Gateway API disabled. The Service is internal (ClusterIP) on the port set in service.port.
None. Before publishing beyond a trusted team, see scenario 4.
With Ingress, the chart creates an Ingress with your hostname, which must resolve to the Ingress controller's external IP. With port-forward or Gateway API, the selection does not change what the chart creates.
With Ingress, the OpenShift router publishes the chart Ingress as a Route, shown as Route in the diagram. During verification, check the address with kubectl -n <NAMESPACE> get route. With Ingress or Gateway API, the hostname usually follows trino-<NAMESPACE>.apps.<CLUSTER_DOMAIN>. With port-forward, the selection changes nothing.
How the team reaches Trino
How Trino is reached
- Who queries. Analysts and query tools connect through a fixed hostname, published by Ingress. Chart default:
no external exposure (port-forward). - Service. The internal Trino address in the cluster. Its name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino. Chart default:
ClusterIP, on the port defined in service.port. (tdp-trino.service.type · tdp-trino.service.port) - Coordinator. Receives queries, plans execution and distributes work among workers. A single replica. No authentication: accepts any username, without a password. Memory: limit of 4Gi with heap of 3G. Chart default:
HTTP without authentication · requests and limits in coordinator.resources · heap in coordinator.jvm.maxHeapSize. (tdp-trino.coordinator.resources · tdp-trino.coordinator.jvm.maxHeapSize) - Workers. Execute query stages in parallel and read data sources. Start at 2 and HPA creates or removes workers based on CPU and memory. Memory: limit of 4Gi with heap of 3G. Chart default:
initial count in server.workers · HPA enabled · requests and limits in worker.resources · heap in worker.jvm.maxHeapSize. (tdp-trino.server.workers · tdp-trino.worker.resources · tdp-trino.worker.jvm.maxHeapSize) - HPA (Horizontal Pod Autoscaler). A native Kubernetes resource that creates and removes pods based on CPU and memory usage, read from the cluster resource metrics API (metrics.k8s.io): metrics-server on Kubernetes and Rancher. The monitoring stack on OpenShift. Requires requests configured for workers. Chart default:
enabled: maximum in server.autoscaling.maxReplicas, CPU and memory targets in targetCPUUtilizationPercentage and targetMemoryUtilizationPercentage. (tdp-trino.server.autoscaling) - Distribution across nodes. At most one worker difference between any two nodes, so a node failure does not take down most workers. Chart default:
enabled. (tdp-trino.worker.topologySpreadConstraints) - Graceful shutdown. A worker about to stop stops receiving tasks, finishes its running tasks and only then exits. It applies to every worker stop: in HPA scale-down, rollouts and node drains. Without it, a query that had a task on that worker fails. Chart default:
enabled: time limits in gracefulShutdown.gracePeriodSeconds and terminationGracePeriodSeconds. (tdp-trino.worker.gracefulShutdown) - PodDisruptionBudget. The Kubernetes limit on how many workers can be taken down at once during node drains and other evictions. Chart default:
enabled, with the limit in maxUnavailable. (workerPodDisruptionBudget) - Reference catalogs. Synthetic data from the TPC-H and TPC-DS benchmarks and in-memory tables: used to test Trino without any external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs)
How Trino is reached: port-forward (default)
- Who queries. Without external exposure, each person opens a tunnel from their machine to the Service with kubectl port-forward. Suitable for testing, not for a team. Chart default:
no external exposure (port-forward). - Service. The internal Trino address in the cluster. Its name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino. Chart default:
ClusterIP, on the port defined in service.port. (tdp-trino.service.type · tdp-trino.service.port) - Coordinator. Receives queries, plans execution and distributes work among workers. A single replica. No authentication: accepts any username, without a password. Memory: limit of 4Gi with heap of 3G. Chart default:
HTTP without authentication · requests and limits in coordinator.resources · heap in coordinator.jvm.maxHeapSize. (tdp-trino.coordinator.resources · tdp-trino.coordinator.jvm.maxHeapSize) - Workers. Execute query stages in parallel and read data sources. Start at 2 and HPA creates or removes workers based on CPU and memory. Memory: limit of 4Gi with heap of 3G. Chart default:
initial count in server.workers · HPA enabled · requests and limits in worker.resources · heap in worker.jvm.maxHeapSize. (tdp-trino.server.workers · tdp-trino.worker.resources · tdp-trino.worker.jvm.maxHeapSize) - HPA (Horizontal Pod Autoscaler). A native Kubernetes resource that creates and removes pods based on CPU and memory usage, read from the cluster resource metrics API (metrics.k8s.io): metrics-server on Kubernetes and Rancher. The monitoring stack on OpenShift. Requires requests configured for workers. Chart default:
enabled: maximum in server.autoscaling.maxReplicas, CPU and memory targets in targetCPUUtilizationPercentage and targetMemoryUtilizationPercentage. (tdp-trino.server.autoscaling) - Distribution across nodes. At most one worker difference between any two nodes, so a node failure does not take down most workers. Chart default:
enabled. (tdp-trino.worker.topologySpreadConstraints) - Graceful shutdown. A worker about to stop stops receiving tasks, finishes its running tasks and only then exits. It applies to every worker stop: in HPA scale-down, rollouts and node drains. Without it, a query that had a task on that worker fails. Chart default:
enabled: time limits in gracefulShutdown.gracePeriodSeconds and terminationGracePeriodSeconds. (tdp-trino.worker.gracefulShutdown) - PodDisruptionBudget. The Kubernetes limit on how many workers can be taken down at once during node drains and other evictions. Chart default:
enabled, with the limit in maxUnavailable. (workerPodDisruptionBudget) - Reference catalogs. Synthetic data from the TPC-H and TPC-DS benchmarks and in-memory tables: used to test Trino without any external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs)
How Trino is reached: Ingress
- Who queries. Analysts and query tools connect through a fixed hostname, published by Ingress. Chart default:
no external exposure (port-forward). - Service. The internal Trino address in the cluster. Its name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino. Chart default:
ClusterIP, on the port defined in service.port. (tdp-trino.service.type · tdp-trino.service.port) - Ingress. Ingress is the Kubernetes resource that publishes a Service at a hostname through the cluster's Ingress controller (nginx, for example). Chart default:
disabled. (TDP-Settings.gateway.ingress.enabled: true) - Coordinator. Receives queries, plans execution and distributes work among workers. A single replica. No authentication: accepts any username, without a password. Memory: limit of 4Gi with heap of 3G. Chart default:
HTTP without authentication · requests and limits in coordinator.resources · heap in coordinator.jvm.maxHeapSize. (tdp-trino.coordinator.resources · tdp-trino.coordinator.jvm.maxHeapSize) - Workers. Execute query stages in parallel and read data sources. Start at 2 and HPA creates or removes workers based on CPU and memory. Memory: limit of 4Gi with heap of 3G. Chart default:
initial count in server.workers · HPA enabled · requests and limits in worker.resources · heap in worker.jvm.maxHeapSize. (tdp-trino.server.workers · tdp-trino.worker.resources · tdp-trino.worker.jvm.maxHeapSize) - HPA (Horizontal Pod Autoscaler). A native Kubernetes resource that creates and removes pods based on CPU and memory usage, read from the cluster resource metrics API (metrics.k8s.io): metrics-server on Kubernetes and Rancher. The monitoring stack on OpenShift. Requires requests configured for workers. Chart default:
enabled: maximum in server.autoscaling.maxReplicas, CPU and memory targets in targetCPUUtilizationPercentage and targetMemoryUtilizationPercentage. (tdp-trino.server.autoscaling) - Distribution across nodes. At most one worker difference between any two nodes, so a node failure does not take down most workers. Chart default:
enabled. (tdp-trino.worker.topologySpreadConstraints) - Graceful shutdown. A worker about to stop stops receiving tasks, finishes its running tasks and only then exits. It applies to every worker stop: in HPA scale-down, rollouts and node drains. Without it, a query that had a task on that worker fails. Chart default:
enabled: time limits in gracefulShutdown.gracePeriodSeconds and terminationGracePeriodSeconds. (tdp-trino.worker.gracefulShutdown) - PodDisruptionBudget. The Kubernetes limit on how many workers can be taken down at once during node drains and other evictions. Chart default:
enabled, with the limit in maxUnavailable. (workerPodDisruptionBudget) - Reference catalogs. Synthetic data from the TPC-H and TPC-DS benchmarks and in-memory tables: used to test Trino without any external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs)
How Trino is reached: Gateway API
- Who queries. Analysts and query tools connect through a fixed hostname, published by HTTPRoute. Chart default:
no external exposure (port-forward). - Service. The internal Trino address in the cluster. Its name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino. Chart default:
ClusterIP, on the port defined in service.port. (tdp-trino.service.type · tdp-trino.service.port) - HTTPRoute (Gateway API). Gateway API is the newer Kubernetes standard for publishing services: a shared Gateway receives traffic and an HTTPRoute, created by the chart, routes the Trino hostname to the Service. Chart default:
disabled. (TDP-Settings.gateway.gatewayApi.enabled: true) - Coordinator. Receives queries, plans execution and distributes work among workers. A single replica. No authentication: accepts any username, without a password. Memory: limit of 4Gi with heap of 3G. Chart default:
HTTP without authentication · requests and limits in coordinator.resources · heap in coordinator.jvm.maxHeapSize. (tdp-trino.coordinator.resources · tdp-trino.coordinator.jvm.maxHeapSize) - Workers. Execute query stages in parallel and read data sources. Start at 2 and HPA creates or removes workers based on CPU and memory. Memory: limit of 4Gi with heap of 3G. Chart default:
initial count in server.workers · HPA enabled · requests and limits in worker.resources · heap in worker.jvm.maxHeapSize. (tdp-trino.server.workers · tdp-trino.worker.resources · tdp-trino.worker.jvm.maxHeapSize) - HPA (Horizontal Pod Autoscaler). A native Kubernetes resource that creates and removes pods based on CPU and memory usage, read from the cluster resource metrics API (metrics.k8s.io): metrics-server on Kubernetes and Rancher. The monitoring stack on OpenShift. Requires requests configured for workers. Chart default:
enabled: maximum in server.autoscaling.maxReplicas, CPU and memory targets in targetCPUUtilizationPercentage and targetMemoryUtilizationPercentage. (tdp-trino.server.autoscaling) - Distribution across nodes. At most one worker difference between any two nodes, so a node failure does not take down most workers. Chart default:
enabled. (tdp-trino.worker.topologySpreadConstraints) - Graceful shutdown. A worker about to stop stops receiving tasks, finishes its running tasks and only then exits. It applies to every worker stop: in HPA scale-down, rollouts and node drains. Without it, a query that had a task on that worker fails. Chart default:
enabled: time limits in gracefulShutdown.gracePeriodSeconds and terminationGracePeriodSeconds. (tdp-trino.worker.gracefulShutdown) - PodDisruptionBudget. The Kubernetes limit on how many workers can be taken down at once during node drains and other evictions. Chart default:
enabled, with the limit in maxUnavailable. (workerPodDisruptionBudget) - Reference catalogs. Synthetic data from the TPC-H and TPC-DS benchmarks and in-memory tables: used to test Trino without any external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs)
port-forward. Nothing is created in the cluster. kubectl connects a port on your machine to the Service port while the command is running. port-forward: Best suited when access is for testing and maintenance. For a team, choose Ingress or Gateway API above.
Ingress. The chart creates an Ingress resource with your hostname and cluster class (nginx, openshift-default or another). The Ingress controller responds to that hostname and forwards traffic to the Trino Service. On OpenShift, the router automatically publishes Ingress as a Route. Ingress: Best suited when the cluster already has an Ingress controller, or when it runs on OpenShift.
The block goes at the root of the values file, outside the chart prefix.
1ingress:2ingressClassName: <INGRESS_CLASS>3annotations: {}4path: /5pathType: Prefix6hosts:7 - <TRINO_HOSTNAME>8tls: []910TDP-Settings:11gateway:12 ingress:13 enabled: true14 gatewayApi:15 enabled: false
nginx, openshift-default or your cluster's class.
- Ingress class (linha 2). nginx, openshift-default or your cluster's class.
- Hostname (linha 7). On Kubernetes, something like trino.tdp.local. On OpenShift, trino-<NAMESPACE>.apps.<CLUSTER_DOMAIN>.
- TDP-Settings (linha 10). This is where the chart decides to render the Ingress. It belongs at the file root, not under tdp-trino.
- Mutually exclusive (linha 14). Ingress and Gateway API cannot be enabled at the same time.
Add the block to the values file
Replace the class and hostname placeholders with your cluster's values.
The exposure block goes at the file root, alongside the tdp-trino prefix, not inside it.
Apply to the release
The Ingress is created in the same namespace as Trino.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-trino \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
The Trino UI opens at http://<TRINO_HOSTNAME>.
The Route lists the published hostname and the Trino UI opens there:
kubectl -n <NAMESPACE> get route
Gateway API. The chart creates an HTTPRoute attached to a Gateway that already exists in the cluster (for example tdp-gateway in namespace tdp) and receives traffic for several services. The Trino hostname is forwarded to the Service on service.port. Gateway API: Best suited when the cluster already uses a Gateway shared among services.
For HTTPS, TLS goes on that Gateway's listener, with protocol: HTTPS and the certificate reference. The HTTPRoute has no TLS configuration. The block goes at the root of the values file.
1gatewayApi:2parentRefs:3 - name: <GATEWAY_NAME>4 namespace: <GATEWAY_NAMESPACE>5trino:6 enabled: true7 hostnames:8 - <TRINO_HOSTNAME>9 rules:10 - matches:11 - path:12 type: PathPrefix13 value: /14 backendRefs:15 - name: ""16 port: 80801718TDP-Settings:19gateway:20 ingress:21 enabled: false22 gatewayApi:23 enabled: true
The existing Gateway to which the route attaches: its name and namespace.
- parentRefs (linha 2). The existing Gateway to which the route attaches: its name and namespace.
- Hostname (linha 8). The same examples as Ingress: trino.tdp.local or trino-<NAMESPACE>.apps.<CLUSTER_DOMAIN>.
- backendRefs (linha 15). An empty name is filled in by the chart with the Trino Service.
- TDP-Settings (linha 22). Enables the HTTPRoute and disables Ingress.
Add the block to the values file
Replace the hostname and Gateway placeholders with your cluster's values.
The exposure block goes at the file root, alongside the tdp-trino prefix, not inside it.
Apply to the release
The HTTPRoute is created in the same namespace as Trino.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-trino \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
http://<TRINO_HOSTNAME>, the HTTPRoute hostname.Make Trino request a username and password and validate them against the company LDAP.
This tab makes Trino ask for a username and password and validate them against the company directory (LDAP or Active Directory). By default, Trino does not request a password: anyone who reaches the Service HTTP port (service.port) can enter any username and query.
When Trino leaves the lab, you want only people with directory accounts to log in. Trino validates passwords only over HTTPS. So requiring login means enabling three things that are currently disabled in the values file:
- HTTPS on the coordinator, with a keystore (the JKS file containing the certificate and key) supplied by a Secret;
- the
PASSWORDauthentication type; password-authenticator.properties, which tells Trino where the LDAP server is and how to construct each user's name.
None: authenticationType empty, HTTPS disabled, access through the HTTP port in service.port.
HTTPS on the port in server.config.https.port, with the keystore from the tdp-trino-certs-secret Secret, authenticationType: PASSWORD and the authenticator pointing to your LDAP server.
The login path, with and without LDAP
Who can query
- Who queries. Without external exposure, each person opens a tunnel from their machine to the Service with kubectl port-forward. Suitable for testing, not for a team. Chart default:
no external exposure (port-forward). - Service. The internal Trino address in the cluster. Its name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino. Chart default:
ClusterIP, on the port defined in service.port. (tdp-trino.service.type · tdp-trino.service.port) - Coordinator. Receives queries, plans execution and distributes work among workers. A single replica. No authentication: accepts any username, without a password. Memory: limit of 4Gi with heap of 3G. Chart default:
HTTP without authentication · requests and limits in coordinator.resources · heap in coordinator.jvm.maxHeapSize. (tdp-trino.coordinator.resources · tdp-trino.coordinator.jvm.maxHeapSize) - Workers. Execute query stages in parallel and read data sources. Start at 2 and HPA creates or removes workers based on CPU and memory. Memory: limit of 4Gi with heap of 3G. Chart default:
initial count in server.workers · HPA enabled · requests and limits in worker.resources · heap in worker.jvm.maxHeapSize. (tdp-trino.server.workers · tdp-trino.worker.resources · tdp-trino.worker.jvm.maxHeapSize) - HPA (Horizontal Pod Autoscaler). A native Kubernetes resource that creates and removes pods based on CPU and memory usage, read from the cluster resource metrics API (metrics.k8s.io): metrics-server on Kubernetes and Rancher. The monitoring stack on OpenShift. Requires requests configured for workers. Chart default:
enabled: maximum in server.autoscaling.maxReplicas, CPU and memory targets in targetCPUUtilizationPercentage and targetMemoryUtilizationPercentage. (tdp-trino.server.autoscaling) - Distribution across nodes. At most one worker difference between any two nodes, so a node failure does not take down most workers. Chart default:
enabled. (tdp-trino.worker.topologySpreadConstraints) - Graceful shutdown. A worker about to stop stops receiving tasks, finishes its running tasks and only then exits. It applies to every worker stop: in HPA scale-down, rollouts and node drains. Without it, a query that had a task on that worker fails. Chart default:
enabled: time limits in gracefulShutdown.gracePeriodSeconds and terminationGracePeriodSeconds. (tdp-trino.worker.gracefulShutdown) - PodDisruptionBudget. The Kubernetes limit on how many workers can be taken down at once during node drains and other evictions. Chart default:
enabled, with the limit in maxUnavailable. (workerPodDisruptionBudget) - Reference catalogs. Synthetic data from the TPC-H and TPC-DS benchmarks and in-memory tables: used to test Trino without any external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs)
Who can query: Anyone (default)
- Who queries. Without external exposure, each person opens a tunnel from their machine to the Service with kubectl port-forward. Suitable for testing, not for a team. Chart default:
no external exposure (port-forward). - Service. The internal Trino address in the cluster. Its name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino. Chart default:
ClusterIP, on the port defined in service.port. (tdp-trino.service.type · tdp-trino.service.port) - Coordinator. Receives queries, plans execution and distributes work among workers. A single replica. No authentication: accepts any username, without a password. Memory: limit of 4Gi with heap of 3G. Chart default:
HTTP without authentication · requests and limits in coordinator.resources · heap in coordinator.jvm.maxHeapSize. (tdp-trino.coordinator.resources · tdp-trino.coordinator.jvm.maxHeapSize) - Workers. Execute query stages in parallel and read data sources. Start at 2 and HPA creates or removes workers based on CPU and memory. Memory: limit of 4Gi with heap of 3G. Chart default:
initial count in server.workers · HPA enabled · requests and limits in worker.resources · heap in worker.jvm.maxHeapSize. (tdp-trino.server.workers · tdp-trino.worker.resources · tdp-trino.worker.jvm.maxHeapSize) - HPA (Horizontal Pod Autoscaler). A native Kubernetes resource that creates and removes pods based on CPU and memory usage, read from the cluster resource metrics API (metrics.k8s.io): metrics-server on Kubernetes and Rancher. The monitoring stack on OpenShift. Requires requests configured for workers. Chart default:
enabled: maximum in server.autoscaling.maxReplicas, CPU and memory targets in targetCPUUtilizationPercentage and targetMemoryUtilizationPercentage. (tdp-trino.server.autoscaling) - Distribution across nodes. At most one worker difference between any two nodes, so a node failure does not take down most workers. Chart default:
enabled. (tdp-trino.worker.topologySpreadConstraints) - Graceful shutdown. A worker about to stop stops receiving tasks, finishes its running tasks and only then exits. It applies to every worker stop: in HPA scale-down, rollouts and node drains. Without it, a query that had a task on that worker fails. Chart default:
enabled: time limits in gracefulShutdown.gracePeriodSeconds and terminationGracePeriodSeconds. (tdp-trino.worker.gracefulShutdown) - PodDisruptionBudget. The Kubernetes limit on how many workers can be taken down at once during node drains and other evictions. Chart default:
enabled, with the limit in maxUnavailable. (workerPodDisruptionBudget) - Reference catalogs. Synthetic data from the TPC-H and TPC-DS benchmarks and in-memory tables: used to test Trino without any external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs)
Who can query: LDAP users only
- Who queries. Without external exposure, each person opens a tunnel from their machine to the Service with kubectl port-forward. Suitable for testing, not for a team. Chart default:
no external exposure (port-forward). - Service. The internal Trino address in the cluster. Its name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino. Chart default:
ClusterIP, on the port defined in service.port. (tdp-trino.service.type · tdp-trino.service.port) - Coordinator. Receives queries, plans execution and validates usernames and passwords against the LDAP server. Trino accepts passwords only over HTTPS, so access uses the HTTPS port set in server.config.https.port. Memory: limit of 4Gi with heap of 3G. Chart default:
HTTP without authentication · requests and limits in coordinator.resources · heap in coordinator.jvm.maxHeapSize. (tdp-trino.server.config.authenticationType: PASSWORD) - Workers. Execute query stages in parallel and read data sources. Start at 2 and HPA creates or removes workers based on CPU and memory. Memory: limit of 4Gi with heap of 3G. Chart default:
initial count in server.workers · HPA enabled · requests and limits in worker.resources · heap in worker.jvm.maxHeapSize. (tdp-trino.server.workers · tdp-trino.worker.resources · tdp-trino.worker.jvm.maxHeapSize) - HPA (Horizontal Pod Autoscaler). A native Kubernetes resource that creates and removes pods based on CPU and memory usage, read from the cluster resource metrics API (metrics.k8s.io): metrics-server on Kubernetes and Rancher. The monitoring stack on OpenShift. Requires requests configured for workers. Chart default:
enabled: maximum in server.autoscaling.maxReplicas, CPU and memory targets in targetCPUUtilizationPercentage and targetMemoryUtilizationPercentage. (tdp-trino.server.autoscaling) - Keystore Secret. The keystore is the JKS file containing the HTTPS certificate and key. You create it as a Secret before deployment and the chart mounts it at /etc/trino/certs in the coordinator. Chart default:
does not exist. (tdp-trino.server.config.https.keystore.path) - LDAP server. The company's user directory (LDAP or Active Directory). The coordinator validates usernames and passwords with the bind pattern from password-authenticator.properties. Chart default:
none. (tdp-trino.coordinator.additionalConfigFiles) - Distribution across nodes. At most one worker difference between any two nodes, so a node failure does not take down most workers. Chart default:
enabled. (tdp-trino.worker.topologySpreadConstraints) - Graceful shutdown. A worker about to stop stops receiving tasks, finishes its running tasks and only then exits. It applies to every worker stop: in HPA scale-down, rollouts and node drains. Without it, a query that had a task on that worker fails. Chart default:
enabled: time limits in gracefulShutdown.gracePeriodSeconds and terminationGracePeriodSeconds. (tdp-trino.worker.gracefulShutdown) - PodDisruptionBudget. The Kubernetes limit on how many workers can be taken down at once during node drains and other evictions. Chart default:
enabled, with the limit in maxUnavailable. (workerPodDisruptionBudget) - Reference catalogs. Synthetic data from the TPC-H and TPC-DS benchmarks and in-memory tables: used to test Trino without any external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs)
No login. The coordinator responds over HTTP on service.port and accepts any username. No login: Best suited when Trino runs in the lab or in a closed cluster. Switch above to see what login changes.
With LDAP. At each login, the coordinator constructs the user's DN from the bind pattern and attempts authentication against the LDAP server with the supplied password. It then responds over HTTPS on server.config.https.port, using the keystore mounted from the Secret. Workers do not change. With LDAP: Best suited when Trino leaves the lab and only people with company directory accounts may query.
The values file for this action is in LDAP login. Build yours from it and apply it with the procedure below.
Create the Secret with the keystore
The keystore is mounted from the Secret on the coordinator, so the Secret exists before deployment.
kubectl create secret generic tdp-trino-certs-secret \
--from-file=keystore.jks=<LOCAL_PATH>/keystore.jks \
--namespace <NAMESPACE>
Add the LDAP block to the values file
Replace the secret, server and domain placeholders with your own.
<LDAP_HOST> is the LDAP address as seen from inside the cluster; <LDAP_DOMAIN>, the components of the directory DN; <SHARED_SECRET>, a strong value for Trino's internal communication; <KEYSTORE_PASSWORD>, the keystore password.
Apply to the release
The coordinator restarts over HTTPS.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-trino \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
The coordinator ConfigMap contains password-authenticator.properties and an LDAP user can log in through the HTTPS port (server.config.https.port). The Service name derives from the release: <RELEASE_NAME>-tdp-trino, or only <RELEASE_NAME> when the release name already contains tdp-trino.
kubectl -n <NAMESPACE> get configmap
kubectl -n <NAMESPACE> port-forward svc/<RELEASE_NAME>-tdp-trino 8443:8443 &
trino --server https://localhost:8443 \
--user <LDAP_USER> \
--password \
--insecure
To go back to HTTP
Remove the HTTPS, authenticationType and authenticator settings from the file and run helm upgrade -f again. Clients return to the HTTP port (service.port).
The other fronts, with the complete files explained line by line, are in Security - Trino: Active Directory, with bind by UPN and the PKCS12 keystore, in scenario 2, Ranger, which controls what each user can query after logging in, in scenario 3, and certificates by PVC in scenario 4.
Replace test catalogs with your data: PostgreSQL, ClickHouse, lakehouse, Kafka.
This tab connects Trino to your data. In Trino, each data source is a catalog: a block of properties specifying which connector to use (hive, iceberg, postgresql, clickhouse, kafka) and where the source is.
The chart includes three reference catalogs for testing Trino without external sources. None points to your data. Connecting sources means adding catalogs under tdp-trino.catalogs, one block per source, and applying the release. Workers then read each source where it is, and a query can join tables from different catalogs.
tpchSynthetic data from the TPC-H benchmark, for initial testing and validation.
tpcdsSynthetic data from the TPC-DS benchmark, for analytical scenarios.
memoryTemporary in-memory tables, for simple tests.
A catalog of your own next to the reference ones
- Who queries. Without external exposure, each person opens a tunnel from their machine to the Service with kubectl port-forward. Suitable for testing, not for a team. Chart default:
no external exposure (port-forward). - Service. The internal Trino address in the cluster. Its name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino. Chart default:
ClusterIP, on the port defined in service.port. (tdp-trino.service.type · tdp-trino.service.port) - Coordinator. Receives queries, plans execution and distributes work among workers. A single replica. No authentication: accepts any username, without a password. Memory: limit of 4Gi with heap of 3G. Chart default:
HTTP without authentication · requests and limits in coordinator.resources · heap in coordinator.jvm.maxHeapSize. (tdp-trino.coordinator.resources · tdp-trino.coordinator.jvm.maxHeapSize) - Workers. Execute query stages in parallel and read data sources. Start at 2 and HPA creates or removes workers based on CPU and memory. Memory: limit of 4Gi with heap of 3G. Chart default:
initial count in server.workers · HPA enabled · requests and limits in worker.resources · heap in worker.jvm.maxHeapSize. (tdp-trino.server.workers · tdp-trino.worker.resources · tdp-trino.worker.jvm.maxHeapSize) - HPA (Horizontal Pod Autoscaler). A native Kubernetes resource that creates and removes pods based on CPU and memory usage, read from the cluster resource metrics API (metrics.k8s.io): metrics-server on Kubernetes and Rancher. The monitoring stack on OpenShift. Requires requests configured for workers. Chart default:
enabled: maximum in server.autoscaling.maxReplicas, CPU and memory targets in targetCPUUtilizationPercentage and targetMemoryUtilizationPercentage. (tdp-trino.server.autoscaling) - Distribution across nodes. At most one worker difference between any two nodes, so a node failure does not take down most workers. Chart default:
enabled. (tdp-trino.worker.topologySpreadConstraints) - Graceful shutdown. A worker about to stop stops receiving tasks, finishes its running tasks and only then exits. It applies to every worker stop: in HPA scale-down, rollouts and node drains. Without it, a query that had a task on that worker fails. Chart default:
enabled: time limits in gracefulShutdown.gracePeriodSeconds and terminationGracePeriodSeconds. (tdp-trino.worker.gracefulShutdown) - PodDisruptionBudget. The Kubernetes limit on how many workers can be taken down at once during node drains and other evictions. Chart default:
enabled, with the limit in maxUnavailable. (workerPodDisruptionBudget) - Catalog hive. Your own data source, declared as a block of connector properties in tdp-trino.catalogs. Chart default:
no custom catalog. (tdp-trino.catalogs.hive) - Reference catalogs. Synthetic data from the TPC-H and TPC-DS benchmarks and in-memory tables: used to test Trino without any external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs)
A lakehouse catalog, with Hive Metastore and Ozone S3 Gateway from the TDP charts:
1tdp-trino:2catalogs:3 hive: |4 connector.name=hive5 hive.metastore.uri=thrift://tdp-hive-metastore-metastore.<NAMESPACE>.svc.cluster.local:90836 fs.native-s3.enabled=true7 s3.endpoint=http://tdp-ozone-s3g-rest.<NAMESPACE>.svc.cluster.local:98788 s3.region=us-east-19 s3.aws-access-key=<S3_ACCESS_KEY>10 s3.aws-secret-key=<S3_SECRET_KEY>11 s3.path-style-access=true
The key becomes the name used in queries: hive.schema.tabela.
- Catalog name (linha 3). The key becomes the name used in queries: hive.schema.tabela.
- Connector (linha 4). Which connector Trino loads: hive, iceberg, clickhouse, postgresql, kafka.
- Metastore (linha 5). With TDP charts in the same namespace and default release names, this is the Hive Metastore Service.
- S3 endpoint (linha 7). Ozone S3 Gateway. Any S3-compatible endpoint, such as MinIO, can be used instead.
- Credentials (linha 9). With Ozone security disabled, any nonempty pair. With security enabled, the keys from the ozone-s3-credentials Secret.
- Ozone with one datanode (linha 11). On an Ozone with a single datanode, add the line s3.storage-class=REDUCED_REDUNDANCY, also in the iceberg catalog. Without it, every write fails.
Other connectors, their prerequisites and validation are covered in Integrations - Trino, which builds the catalog block with your environment's addresses.
When something goes wrong
Troubleshooting
Paste the error message or choose a symptom. The answer includes the cause, what to do and the command.
- Pods in ImagePullBackOff or ErrImagePull. Cause: The tdp-registry pull Secret is missing from the release namespace, or its credentials are invalid: Tecnisys registry images require login. What to do: Create the tdp-registry Secret in the release namespace with your registry credentials (scenario 1, First contact), and repeat installation.
- Pod OOMKilled. Cause: The JVM heap exceeds the pod memory limit. What to do: When changing resources.limits.memory, change jvm.maxHeapSize with it (Sizing scenario).
- Trino does not start: Configuration is invalid. Cause: The heap fell below about 1.5G without reducing query memory. What to do: Reduce query.maxMemoryPerNode on the coordinator and workers and server.config.query.maxMemory.
- FailedPreStopHook event on workers. Cause: Every graceful shutdown records this warning: the hook ends with tail --pid=1, which is killed with the container. What to do: The shutdown worked. Exclude this reason from alerts for Trino workers.
- Helm refuses to render because of gracePeriodSeconds. Cause: terminationGracePeriodSeconds is less than twice gracefulShutdown.gracePeriodSeconds. What to do: Increase both together, keeping the twofold minimum.
- Workers concentrated on the same node. Cause: tdp-trino.nameOverride is set: the distribution selector is literal and no longer matches. What to do: Remove nameOverride or accept the concentration. PodDisruptionBudget is not affected.
- Nodes without x86-64-v3 support. Cause: The default image requires AVX2, BMI1, BMI2 and FMA. What to do: Use the alternative image (tag 476) in tdp-trino.image.tag.
- Queries fail when a worker stops. Cause: Without retry-policy, a worker stopping with running tasks causes those queries to fail. On the first upgrade from a release without graceful shutdown, the rollout is not graceful yet. What to do: Keep gracefulShutdown enabled and perform this first upgrade during a quiet maintenance window.
- HPA does not scale workers (FailedGetResourceMetric). Cause: The resource metrics API (metrics.k8s.io) is unavailable and workers stay at the server.workers count. Or worker requests are not configured. What to do: Install metrics-server (on OpenShift, the API comes from the monitoring stack) and set resources.requests for workers. To avoid using HPA, disable it with tdp-trino.server.autoscaling.enabled=false.
- Workers remain after helm uninstall. Cause: Workers drain for up to terminationGracePeriodSeconds after helm uninstall returns. What to do: Wait. Removing the namespace also waits for them.
- Other problem. Cause: Start with pod status and namespace events. What to do: Events in chronological order show what prevents the pod from starting.
To uninstall, helm uninstall <RELEASE_NAME> -n <NAMESPACE>. With graceful shutdown enabled, workers keep draining for up to terminationGracePeriodSeconds after the command returns. Removing the namespace waits for them.
Lists in the values file
Two coordinator parameters are volume lists: tdp-trino.coordinator.additionalVolumes and tdp-trino.coordinator.additionalVolumeMounts. The chart already fills both with one entry, the data-volume volume, which is the Trino data directory.
When your values file sets one of these lists, Helm does not append your entry to the chart list: it replaces the entire list with yours. Therefore, when adding a volume, such as the keystore volume, also include data-volume in your list. The LDAP login example shows how. Worker lists follow the same rule.
All parameters
Filter by name or group. The chart prefix is already filled in. Keys without a prefix belong at the root of the values file.
42 of 42 parameters
| Parameter | Description | Chart default |
|---|---|---|
tdp-trino.enabledGeneral | Enables Trino deployment | true |
tdp-trino.image.tagGeneral | Trino image tag | 478 |
tdp-trino.server.workersGeneral | Initial worker count | 2 |
tdp-trino.server.node.environmentGeneral | Trino cluster environment label | environment |
tdp-trino.service.typeGeneral | Kubernetes Service type | ClusterIP |
tdp-trino.service.portGeneral | HTTP Service port | 8080 |
tdp-trino.catalogsGeneral | Catalog/connector definitions | tpch, tpcds, memory |
tdp-trino.jmx.enabledGeneral | Enables JMX | true |
tdp-trino.serviceMonitor.enabledGeneral | Creates ServiceMonitor | false |
tdp-trino.server.autoscaling.enabledWorkers | HPA for workers | true |
tdp-trino.server.autoscaling.maxReplicasWorkers | HPA maximum worker count | 5 |
tdp-trino.server.autoscaling.targetCPUUtilizationPercentageWorkers | CPU usage that triggers scaling | 50 |
tdp-trino.server.autoscaling.targetMemoryUtilizationPercentageWorkers | Memory usage that triggers scaling | 80 |
tdp-trino.server.keda.enabledWorkers | KEDA for workers | false |
tdp-trino.worker.topologySpreadConstraintsWorkers | Distribution of workers across nodes ([] disables it) | hostname, maxSkew: 1, ScheduleAnyway |
tdp-trino.worker.gracefulShutdown.enabledWorkers | Drain running tasks before stopping a worker | true |
tdp-trino.worker.gracefulShutdown.gracePeriodSecondsWorkers | Trino shutdown.grace-period | 120 |
tdp-trino.worker.terminationGracePeriodSecondsWorkers | Pod termination grace period. Must be ≥ 2 × gracePeriodSeconds | 300 |
workerPodDisruptionBudget.enabledWorkers | Creates a PodDisruptionBudget for workers | true |
workerPodDisruptionBudget.maxUnavailableWorkers | Workers that voluntary disruptions (drains) can take down at once | 1 |
tdp-trino.coordinator.resources.requests.cpuResources | CPU requested for the coordinator | 1 |
tdp-trino.coordinator.resources.requests.memoryResources | Memory requested for the coordinator | 2Gi |
tdp-trino.coordinator.resources.limits.cpuResources | Coordinator CPU limit | 2 |
tdp-trino.coordinator.resources.limits.memoryResources | Coordinator memory limit | 4Gi |
tdp-trino.worker.resources.requests.cpuResources | CPU requested for each worker | 1 |
tdp-trino.worker.resources.requests.memoryResources | Memory requested for each worker | 2Gi |
tdp-trino.worker.resources.limits.cpuResources | CPU limit for each worker | 2 |
tdp-trino.worker.resources.limits.memoryResources | Memory limit for each worker | 4Gi |
tdp-trino.coordinator.jvm.maxHeapSizeResources | Coordinator JVM heap, about 75% of the memory limit | 3G |
tdp-trino.worker.jvm.maxHeapSizeResources | JVM heap of each worker, about 75% of the memory limit | 3G |
tdp-trino.coordinator.config.query.maxMemoryPerNodeResources | Per-node query memory on the coordinator, at most about 30% of the heap. Reduce it if the heap falls below about 1.5G | 1GB |
tdp-trino.worker.config.query.maxMemoryPerNodeResources | Per-node query memory on each worker, at most about 30% of the heap. Reduce it if the heap falls below about 1.5G | 1GB |
tdp-trino.server.config.query.maxMemoryResources | Cluster query memory. Reduce it if the heap falls below about 1.5G | 4GB |
tdp-trino.server.config.https.enabledSecurity | Enables HTTPS in Trino | false |
tdp-trino.server.config.authenticationTypeSecurity | Authentication type | "" |
tdp-trino.accessControlSecurity | Access control configuration | {} |
trinoCerts.pvc.enabledCertificates | PVC for certificates | false |
trinoCerts.secret.enabledCertificates | Secret with certificates | false |
trinoCerts.copyJob.enabledCertificates | Job to copy certificates to a PVC | false |
trinoCerts.copyJob.commandCertificates | Copy Job shell commands (Secret mounted at /tmp/certs, PVC at /etc/trino/ssl) | not set (copies nothing) |
TDP-Settings.gateway.ingress.enabledExposure | Renders TDP Ingress | false |
TDP-Settings.gateway.gatewayApi.enabledExposure | Renders Gateway API HTTPRoute | false |
For the complete parameter list, consult the chart's values.yaml or run helm show values for the installed version.