Skip to content

zncdata-labs/trino-operator

Repository files navigation

Zncdata Stack Operator for Trino

Build Status License

This is a Kubernetes operator to manage Trino ensembles.

It is part of the Stack ZncData Platform, a curated selection of the best open source data apps like Apache Hive, Apache Druid, Trino or Apache Spark, working together seamlessly. Based on Kubernetes, it runs everywhere.

Quick Start

  1. Install Operator Lifecycle Manager (OLM), a tool to help manage the Operators running on your cluster.

    curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.26.0/install.sh | bash -s v0.26.0
  2. First we need to prepare an OperatorGroup

    apiVersion: operators.coreos.com/v1
    kind: OperatorGroup
    metadata:
      name: operatorgroup
    spec:
      targetNamespaces:
      - tmp
      upgradeStrategy: Default
  3. Start deploying our catalog

    apiVersion: operators.coreos.com/v1alpha1
    kind: CatalogSource
    metadata:
      name: catalog-v0-0-1-alpha
      namespace: tmp
    spec:
      displayName: zncdata operators
      grpcPodConfig:
        securityContextConfig: restricted
      image: quay.io/zncdata/catalog:v0.0.1-alpha
      publisher: zncdata.dev
      sourceType: grpc
      updateStrategy:
        registryPoll:
          interval: 60m
  4. After completing the OperatorGroup and Catalog, you can start installing the service Subscription

    apiVersion: operators.coreos.com/v1alpha1
    kind: Subscription
    metadata:
      name: trino-operator-v0-0-1-alpha-sub
      namespace: tmp
    spec:
      channel: fast-v0.0
      name: trino-operator
      source: catalog
      sourceNamespace: tmp
      installPlanApproval: Automatic
      startingCSV: trino-operator.v0.0.1-alpha
  5. After install, watch your operator come up using next command.

    kubectl get csv -n tmp
  6. Install Instances of Custom Resources:

    kubectl apply -f config/samples/