warehouse

by StarRocks

Helm chartv1.11.8App 4.1-latestVerified publisher

Warehouse is currently a feature of the StarRocks Enterprise Edition.

About this chart

Deploy StarRocks Warehouse by starrocks Chart

Helm is a package manager for Kubernetes. A Helm Chart is a Helm package and contains all of the resource definitions necessary to run an application on a Kubernetes cluster. This topic describes how to use Helm to automatically deploy a StarRocks cluster on a Kubernetes cluster.

Before you begin

Note: Warehouse is an enterprise feature for StarRocks.

Install Warehouse Chart

  1. Add the StarRocks Helm repository.

    $ helm repo add starrocks https://starrocks.github.io/starrocks-kubernetes-operator
    $ helm repo update
    $ helm search repo starrocks
    NAME                                    CHART VERSION    APP VERSION  DESCRIPTION
    starrocks/kube-starrocks      1.9.0            3.1-latest   kube-starrocks includes two subcharts, starrock...
    starrocks/operator            1.9.0            1.9.0        A Helm chart for StarRocks operator
    starrocks/starrocks           1.9.0            3.1-latest   A Helm chart for StarRocks cluster
    starrocks/warehouse           1.9.0            3.1-latest   A Helm chart for StarRocks cluster
    
  2. Prepare the values.yaml file.

    # The name of warehouse in StarRocks. You can execute `show warehouses` command in SQL to see the created warehouse.
    nameOverride: "wh1"
    spec:
      # Make sure the StarRocks cluster exists in the same namespace.
      # You can check it by running `kubectl -n starrocks get starrocksclusters.starrocks.com`.
      starRocksClusterName: kube-starrocks
      replicas: 1
      image: your-enterprise-image-version-for-cn
      resources:
        limits:
          cpu: 8
          memory: 8Gi
        requests:
          cpu: 8
          memory: 8Gi
    
  3. Install the warehouse Chart.

    # Use the above values.yaml to deploy a warehouse in namespace starrocks
    helm -n starrocks install warehouse starrocks/warehouse -f values.yaml
    
    # Restart the StarRocks operator to make it aware of the new CRD
    kubectl -n starrocks rollout restart deployment kube-starrocks-operator
    

    Please see values.yaml for more details.

Uninstall Warehouse

helm uninstall warehouse

Deploy warehouse with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has warehouse on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartwarehouse is pinned at v1.11.8 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply