Skip to main content
Version 3.0

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.

ChartVersion3.0.3TypeapplicationAppVersion478
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+
Feature SupportLDAPsupportedS3supportedIngresssupportedGateway APIsupported

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​

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.

Topology

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.

Memory per pod

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).

Access

Internal Service (ClusterIP) on the port set in service.port, without Ingress or authentication: any username can log in, without a password.

Catalogs

tpch, tpcds and memory, the reference catalogs, with synthetic data and in-memory tables.

Worker protections

Distribution across nodes, graceful shutdown and PodDisruptionBudget, all three enabled. Scenario 2 explains each.

What starts in the namespace with chart defaults

namespace <NAMESPACE>port-forwardWho queriesport-forwardServiceClusterIP · service.portCoordinatorHTTP · 4Gi, heap 3GWorker ×22 initial, HPA · 4Gi, heap 3GHPAResource metrics APISpread across nodesGraceful shutdownPodDisruptionBudgettpch · tpcds · memoryreference catalogs
  1. 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).
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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 starts in the namespace with chart defaults. Click an element to see what it is and its corresponding default.

Check the TDP license

The chart requires a valid TDP license installed in the cluster.

Terminal input
kubectl get platformlicenses -A

Success criteria

The license appears in the list. If it does not, install it before continuing (Licensing Configuration).

Create the registry pull Secret

The chart uses the tdp-registry Secret with your TDP registry credentials in the release namespace.

Terminal input
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

The Secret appears with 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:

Terminal input
kubectl create namespace <NAMESPACE>

Check the metrics API

The worker HPA, enabled by default, reads CPU and memory from this API.

Terminal input
kubectl get apiservices v1beta1.metrics.k8s.io

Success criteria

The APIService appears as available (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.

Terminal input
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

Terminal input
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:

Terminal input
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.

Terminal input
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

The web UI opens on localhost, on the local port from the port-forward above, and the trino client accepts queries against reference catalogs:
CatalogWhat it provides
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.

When something goes wrong​

Troubleshooting

Paste the error message or choose a symptom. The answer includes the cause, what to do and the command.

  1. 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.
  2. 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).
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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.
  9. 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.
  10. 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.
  11. 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

ParameterDescriptionChart default
tdp-trino.enabledGeneralEnables Trino deploymenttrue
tdp-trino.image.tagGeneralTrino image tag478
tdp-trino.server.workersGeneralInitial worker count2
tdp-trino.server.node.environmentGeneralTrino cluster environment labelenvironment
tdp-trino.service.typeGeneralKubernetes Service typeClusterIP
tdp-trino.service.portGeneralHTTP Service port8080
tdp-trino.catalogsGeneralCatalog/connector definitionstpch, tpcds, memory
tdp-trino.jmx.enabledGeneralEnables JMXtrue
tdp-trino.serviceMonitor.enabledGeneralCreates ServiceMonitorfalse
tdp-trino.server.autoscaling.enabledWorkersHPA for workerstrue
tdp-trino.server.autoscaling.maxReplicasWorkersHPA maximum worker count5
tdp-trino.server.autoscaling.targetCPUUtilizationPercentageWorkersCPU usage that triggers scaling50
tdp-trino.server.autoscaling.targetMemoryUtilizationPercentageWorkersMemory usage that triggers scaling80
tdp-trino.server.keda.enabledWorkersKEDA for workersfalse
tdp-trino.worker.topologySpreadConstraintsWorkersDistribution of workers across nodes ([] disables it)hostname, maxSkew: 1, ScheduleAnyway
tdp-trino.worker.gracefulShutdown.enabledWorkersDrain running tasks before stopping a workertrue
tdp-trino.worker.gracefulShutdown.gracePeriodSecondsWorkersTrino shutdown.grace-period120
tdp-trino.worker.terminationGracePeriodSecondsWorkersPod termination grace period. Must be ≥ 2 × gracePeriodSeconds300
workerPodDisruptionBudget.enabledWorkersCreates a PodDisruptionBudget for workerstrue
workerPodDisruptionBudget.maxUnavailableWorkersWorkers that voluntary disruptions (drains) can take down at once1
tdp-trino.coordinator.resources.requests.cpuResourcesCPU requested for the coordinator1
tdp-trino.coordinator.resources.requests.memoryResourcesMemory requested for the coordinator2Gi
tdp-trino.coordinator.resources.limits.cpuResourcesCoordinator CPU limit2
tdp-trino.coordinator.resources.limits.memoryResourcesCoordinator memory limit4Gi
tdp-trino.worker.resources.requests.cpuResourcesCPU requested for each worker1
tdp-trino.worker.resources.requests.memoryResourcesMemory requested for each worker2Gi
tdp-trino.worker.resources.limits.cpuResourcesCPU limit for each worker2
tdp-trino.worker.resources.limits.memoryResourcesMemory limit for each worker4Gi
tdp-trino.coordinator.jvm.maxHeapSizeResourcesCoordinator JVM heap, about 75% of the memory limit3G
tdp-trino.worker.jvm.maxHeapSizeResourcesJVM heap of each worker, about 75% of the memory limit3G
tdp-trino.coordinator.config.query.maxMemoryPerNodeResourcesPer-node query memory on the coordinator, at most about 30% of the heap. Reduce it if the heap falls below about 1.5G1GB
tdp-trino.worker.config.query.maxMemoryPerNodeResourcesPer-node query memory on each worker, at most about 30% of the heap. Reduce it if the heap falls below about 1.5G1GB
tdp-trino.server.config.query.maxMemoryResourcesCluster query memory. Reduce it if the heap falls below about 1.5G4GB
tdp-trino.server.config.https.enabledSecurityEnables HTTPS in Trinofalse
tdp-trino.server.config.authenticationTypeSecurityAuthentication type""
tdp-trino.accessControlSecurityAccess control configuration{}
trinoCerts.pvc.enabledCertificatesPVC for certificatesfalse
trinoCerts.secret.enabledCertificatesSecret with certificatesfalse
trinoCerts.copyJob.enabledCertificatesJob to copy certificates to a PVCfalse
trinoCerts.copyJob.commandCertificatesCopy Job shell commands (Secret mounted at /tmp/certs, PVC at /etc/trino/ssl)not set (copies nothing)
TDP-Settings.gateway.ingress.enabledExposureRenders TDP Ingressfalse
TDP-Settings.gateway.gatewayApi.enabledExposureRenders Gateway API HTTPRoutefalse

For the complete parameter list, consult the chart's values.yaml or run helm show values for the installed version.

Next steps​