Skip to content

yandongxiao/starrocks-kubernetes-operator

This branch is 3 commits ahead of, 175 commits behind StarRocks/starrocks-kubernetes-operator:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cf8ab41 · Nov 21, 2023
Nov 8, 2023
Oct 16, 2023
Nov 21, 2023
Nov 21, 2023
Nov 20, 2023
Oct 13, 2023
Nov 20, 2023
Nov 21, 2023
Nov 9, 2023
Aug 4, 2023
Nov 20, 2023
Feb 3, 2023
Aug 16, 2023
Nov 20, 2023
Jan 9, 2023
Nov 8, 2023
Jul 21, 2023
Jun 27, 2022
Jul 13, 2023
Nov 20, 2023
Nov 14, 2023
Nov 14, 2023
Jul 14, 2023
Jun 29, 2023
Nov 20, 2023
Nov 20, 2023
Nov 8, 2023
Jul 14, 2023

Repository files navigation

StarRocks-Kubernetes-Operator

License

English | 中文

Overview

StarRocks Kubernetes Operator is a project that implements the deployment and operation of StarRocks, a next-generation sub-second MPP OLAP database, on Kubernetes. It facilitates the deployment of StarRocks' Frontend (FE), Backend (BE), and Compute Node (CN) components within your Kubernetes environment. It also includes Helm chart for easy installation and configuration. With StarRocks Kubernetes Operator, you can easily manage the lifecycle of StarRocks clusters, such as installing, scaling, upgrading etc.

Prerequisites

  1. Kubernetes version >= 1.18
  2. Helm version >= 3.0

Features

Operator Features

  • Support deploying StarRocks FE, BE and CN components separately FE component is a must-have component, BE and CN components can be optionally deployed
  • Support multiple StarRocks clusters in one Kubernetes cluster
  • Support external clients outside the network of kubernetes to load data into StarRocks using STREAM LOAD
  • Support automatic scaling for CN nodes based on CPU and memory usage
  • Support mounting persistent volumes for StarRocks containers

Helm Chart Features

  • Support Helm Chart for easy installation and configuration
    • using kube-starrocks Helm chart to install both operator and StarRocks cluster
    • using operator Helm Chart to install operator, and using starrocks Helm Chart to install starrocks cluster
  • Support initializing the password of root in your StarRocks cluster during installation.
  • Support integration with other components in the Kubernetes ecosystem, such as Prometheus, Datadog, etc.

Installation

In order to use StarRocks in Kubernetes, you need to install:

  1. StarRocksCluster CRD
  2. StarRocks Operator
  3. StarRocksCluster CR

There are two ways to install Operator and StarRocks Cluster.

  1. Install Operator and StarRocks Cluster by yaml Manifest.
  2. Install Operator and StarRocks Cluster by Helm Chart.

Note: In every release, we will provide the latest version of the yaml Manifest and Helm Chart. You can find them in https://github.com/StarRocks/starrocks-kubernetes-operator/releases

Installation by yaml Manifest

Please see Deploy StarRocks With Operator document for more details.

1. Apply the StarRocksCluster CRD

kubectl apply -f https://raw.githubusercontent.com/StarRocks/starrocks-kubernetes-operator/main/deploy/starrocks.com_starrocksclusters.yaml

2. Apply the Operator manifest

Apply the Operator manifest. By default, the Operator is configured to install in the starrocks namespace. To use the Operator in a custom namespace, download the Operator manifest and edit all instances of namespace: starrocks to specify your custom namespace. Then apply this version of the manifest to the cluster with kubectl apply -f {local-file-path} instead of using the command below.

kubectl apply -f https://raw.githubusercontent.com/StarRocks/starrocks-kubernetes-operator/main/deploy/operator.yaml

3. Deploy the StarRocks cluster

You need to prepare a separate yaml file to deploy the StarRocks. The starrocks cluster CRD fields explains in api.md. The examples directory contains some simple example for reference.

You can use any of the template yaml file as a starting point. You can further add more configurations into the template yaml file following this deployment documentation.

For demonstration purpose, we use the starrocks-fe-and-be.yaml example template to start a 3 FE and 3 BE StarRocks cluster.

kubectl apply -f starrocks-fe-and-be.yaml

Installation by Helm Chart

Please see kube-starrocks for how to install both operator and StarRocks cluster by Helm Chart.

If you want more flexibility in managing your StarRocks clusters, you can deploy Operator using operator Helm Chart and StarRocks using starrocks Helm Chart separately.

Other Documents

  • In doc directory, you can find more documents about how to use StarRocks Operator.
  • In examples directory, you can find more examples about how to write StarRocksCluster CR.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 85.8%
  • Shell 7.5%
  • Smarty 5.2%
  • Makefile 1.4%
  • Dockerfile 0.1%