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
  1. Step-by-step guides
  2. Databases
  3. Managed Service for Trino
  4. Creating a catalog

Creating a Managed Service for Trino catalog

Written by
Yandex Cloud
Updated at July 24, 2026
View in Markdown
  • Using the CLI
  • Using the management console

A Trino catalog defines a connection to an external data source. Each catalog is described using a TrinoCatalog resource and associated with a specific cluster via the spec.cluster field.

Supported catalog types:

  • postgresql: PostgreSQL connection.
  • clickhouse: ClickHouse® connection.
  • iceberg: Apache Iceberg™ connection via the REST catalog.

Note

When you create a catalog, Managed Service for Trino recreates the cluster. While the new configuration is being applied, the cluster switches to Updating, and active queries get interrupted. For more information, see Updating a cluster.

Using the CLIUsing the CLI

  1. Prepare a Secret containing credentials for connecting to the data source.

  2. Create the TrinoCatalog resource file, e.g., using the touch trinocatalog.yaml command.

  3. Open the file and paste the configuration for the appropriate catalog type:

    PostgreSQL
    ---
    apiVersion: v1
    kind: Secret
    metadata:
      name: postgres-secret
    stringData:
      username: <username>
      password: <user_password>
    ---
    apiVersion: trino.stackland.yandex.cloud/v1alpha1
    kind: TrinoCatalog
    metadata:
      name: postgresql-test-trino-full
    spec:
      cluster: trino-full
      type: postgresql
      name: postgresql-test
      postgres:
        url: postgres.example.svc.cluster.local:5432/database
        credentialsSecretRef:
          name: postgres-secret
          usernameKey: username
          passwordKey: password
    

    Settings:

    • spec.cluster: Name of the Trino cluster you want to associate the catalog with.
    • spec.name: Catalog name in Trino (used in SQL queries, such as SELECT * FROM <catalog_name>.schema.table).
    • spec.postgres.url: PostgreSQL server address in host:port/database format.
    • spec.postgres.credentialsSecretRef: Reference to the Secret with credentials, and the names of usernameKey and passwordKey.

    Tip

    Make sure the resource name (metadata.name) follows the <spec.name>-<spec.cluster> format as shown above. Otherwise, the operator will reject catalog creation.

  4. Apply the manifest: kubectl apply -f trinocatalog.yaml -n <namespace>.

Using the management consoleUsing the management console

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

  2. Select the namespace the cluster was created in.

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

  4. Select the cluster.

  5. Open the Catalogs tab and click Create catalog.

  6. Fill out the fields as follows:

    Basic settings

    • Name: Catalog name in Trino. It is defined in spec.name. The management console automatically uses the <catalog_name>-<cluster_name> format for the Kubernetes resource name (metadata.name).
    • Type: Connector type. Valid values: postgresql, clickhouse, iceberg.

    After selecting the type, the Catalog settings section appears.

    Catalog settings: PostgreSQL

    • URL: Server address in host:port/database format.
    • Username: PostgreSQL user.
    • Password: User password.

    Catalog settings: ClickHouse

    • URL: Server address in host:port/database format.
    • Username: ClickHouse® user.
    • Password: User password.

    Catalog settings: Iceberg (REST catalog)

    Connection:

    • URL: REST catalog URL.
    • Warehouse: REST catalog name. This is an optional setting.

    Authentication (optional subsection):

    • Authentication method: No authentication, Static token, or Client credentials.
    • For a static token: Access token.
    • For client credentials: Authorization server URL, Client ID, and Client secret. For a platform Iceberg REST Catalog, set Client ID and Client secret to clientId and clientSecret of the RestCatalogPrincipal user, respectively. In the Additional submenu, you can specify Scope, Token update, and Token exchange.

    Data storage:

    • Storage type: s3 or stackland-storage. stackland-storage is only available for clusters with enabled Object Storage.
    • For s3: Endpoint, Region, Access key ID, Secret access key, and Path-style access.
    • For stackland-storage: Bucket: Selecting a bucket from the list of Bucket resources in the current namespace.

    Additional settings (optional)

    This section contains custom connector settings in key-value format. You can add each key only once.

  7. Click Create.

The new catalog is ready and shown in the Catalogs list. After the operator applies the new configuration and the cluster switches to Running, the catalog will be available in SQL queries.

Was the article helpful?

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