Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Stackland
  • What's new
  • Installation
    • All tutorials
    • Installing Stackland on Yandex BareMetal
    • Installing Stackland on Yandex BareMetal via PXE
    • Installing Stackland on Yandex Cloud VMs
    • Setting up external access to a pod in a cluster
    • All guides
        • Creating a Trino cluster
        • Updating cluster settings
        • Deleting a cluster
        • Creating a catalog
        • Updating catalog settings
        • Deleting a folder.
    • Projects
    • Resource model
    • Scaling a cluster
  • Access management
  • Pricing policy
  • Diagnostics and troubleshooting

In this article:

  • Using the CLI
  • Using the management console
  • Connecting to a cluster
  • Getting connection addresses
  • Trino CLI
  • JDBC
  1. Step-by-step guides
  2. Databases
  3. Managed Service for Trino
  4. Creating a Trino cluster

Creating a Managed Service for Trino cluster

Written by
Yandex Cloud
Updated at July 24, 2026
View in Markdown
  • Using the CLI
  • Using the management console
  • Connecting to a cluster
    • Getting connection addresses
    • Trino CLI
    • JDBC

The Trino cluster is created in a namespace within the project. If you already have a project and a namespace within it, you can create a cluster in that namespace.

Using the CLIUsing the CLI

  1. Make sure there is a namespace in the project. If not, create one.

  2. Create the TrinoCluster resource file, e.g., using the touch trinocluster.yaml command.

  3. Open the file and paste the configuration below into it:

    Minimum configuration
    Configuration with settings and access rules
    apiVersion: trino.stackland.yandex.cloud/v1alpha1
    kind: TrinoCluster
    metadata:
      name: trino-min
    spec:
      version: "480"
      coordinator:
        resources:
          requests:
            cpu: 500m
            memory: 1Gi
          limits:
            cpu: "1"
            memory: 2Gi
      worker:
        replicas: 1
        resources:
          requests:
            cpu: 500m
            memory: 1Gi
          limits:
            cpu: "1"
            memory: 2Gi
    

    An example with logging settings (spec.config) and access rules for catalogs, schemas, and tables (spec.accessControl). To learn more about access rules, see Access management.

    apiVersion: trino.stackland.yandex.cloud/v1alpha1
    kind: TrinoCluster
    metadata:
      name: trino-full
    spec:
      version: "480"
      deletionProtection: false
      coordinator:
        resources:
          requests:
            cpu: 500m
            memory: 1Gi
          limits:
            cpu: "1"
            memory: 2Gi
      worker:
        replicas: 3
        resources:
          requests:
            cpu: 500m
            memory: 1Gi
          limits:
            cpu: "1"
            memory: 2Gi
      config:
        io.trino: INFO
        io.trino.plugin.iceberg: DEBUG
      accessControl:
        catalogs:
          - user: admin@stackland
            catalog: ".*"
            privileges: all
        schemas:
          - user: analyst@stackland
            catalog: ".*"
            schema: ".*"
            owner: false
        tables:
          - user: analyst@stackland
            catalog: ".*"
            schema: public
            table: ".*"
            privileges:
              - SELECT
    
  4. Apply the manifest: kubectl apply -f trinocluster.yaml -n <namespace>. Optionally, you can specify the namespace in the metadata.namespace resource property and skip it in the command.

Using the management consoleUsing the management console

  1. If you have not opened a project yet, select one.

  2. Select the namespace you want to create the cluster in.

  3. In the left-hand menu, select Trino → Clusters.

  4. Click Create cluster.

  5. Fill out the fields as follows:

    Basic parameters

    • Name: Cluster name. Written in metadata.name.
    • Trino version: Trino version. The list of values ​​is formed from the TrinoImageCatalog operator.
    • Deletion protection: Toggle for protection against accidental cluster deletion. Disabled by default.

    Coordinator configuration

    • Requested CPUs: Guaranteed number of CPUs for the coordinator pod.
    • Requested RAM: Guaranteed RAM for the coordinator pod.
    • CPU limit: Maximum number of CPUs for the coordinator pod.
    • RAM limit: Maximum RAM for the coordinator pod.

    Worker configuration

    • Number of workers: Number of worker pods. Minimum 1.
    • Requested CPUs: Guaranteed number of CPUs for the worker pod.
    • Requested RAM: Guaranteed RAM for the worker pod.
    • CPU limit: Maximum number of CPUs for the worker pod.
    • RAM limit: Maximum RAM for the worker pod.

    Additional settings (optional)

    Section for adding Trino settings in the key-value format. You can add each key only once.

    Access settings (optional)

    Section for access rules pertaining to Trino resources. Subsections:

    • Catalog rules: user, catalog, privileges (all, read-only, none).
    • Schema rules: user, catalog, schema, owner.
    • Table rules: user, catalog, schema, table, privileges (SELECT, INSERT, DELETE, UPDATE, OWNERSHIP, GRANT_SELECT), plus row filter and column restrictions.
    • Function rules: user, catalog, schema, function, privileges (EXECUTE, GRANT_EXECUTE, OWNERSHIP).
    • Procedure rules: user, catalog, schema, procedure, privileges (EXECUTE, GRANT_EXECUTE).
    • Query rules: user, queryOwner, privileges (execute, view, kill). If queryOwner is specified, the execute privilege is not available.

    In the User field, you can enter the value as a regular expression or select from Identity and Access Management. If the mapping field (e.g., Catalog, Schema, or Table) is left blank, Trino substitutes .*.

  6. Click Create.

Done. The cluster has now appeared in the Clusters list. Once created, the cluster status is displayed in the Status column. Go to the cluster card for detailed info.

Connecting to a clusterConnecting to a cluster

Once the cluster enters the Running state, you can connect to it using the coordinator's address.

Getting connection addressesGetting connection addresses

CLI
Management console

Run this command:

kubectl get trinocluster <cluster_name> -n <namespace> -o jsonpath='{.status.fqdn}'

Response structure:

  • external: FQDN of the coordinator for connection via Trino clients (CLI, JDBC).
  • webUI: Trino UI FQDN.
  1. Open your project.
  2. In the left-hand menu, select Trino → Clusters.
  3. Select a cluster.
  4. On the Overview tab, find the addresses for connection. For detailed connection info, click Connect.

Trino CLITrino CLI

  1. Install the Trino CLI as per the official guide.

  2. Connect to the cluster using the coordinator address from status.fqdn.external:

    trino --server https://<coordinator_FQDN> --user <username>
    

JDBCJDBC

Use the Trino JDBC driver with a URL in this format:

jdbc:trino://<coordinator_FQDN>:443

Get the<coordinator_FQDN> value from status.fqdn.external.

Was the article helpful?

Previous
Deleting a folder.
Next
Updating cluster settings
© 2026 Direct Cursus Technology L.L.C.