Skip to main content

Deploy RisingWave on Kubernetes with Helm

This guide walks you through the process of deploying RisingWave in a single Kubernetes cluster with Helm.


  • Ensure you have Helm 3.7 + installed in your environment. For details about how to install Helm, see the Helm documentation.
  • Ensure you have Kubernetes 1.24 or higher installed in your environment.
  • Ensure you allocate enough resources for the deployment, and use the recommended disks for etcd. For details, see Hardware requirements.

Step 1: Start Kubernetes

Start a Kubernetes cluster. For details about starting a Kubernetes cluster, see Kubernetes' Getting started guide.

Step 2: Start RisingWave

Now start a RisingWave cluster with Helm.

  1. Add the risingwave chart repository:
helm repo add risingwavelabs
  1. Update your Helm chart repositories to ensure that you are using the RisingWave Helm chart:
helm repo update

If you are using AWS EKS, you also need to set it as the default cluster for Helm:

aws eks update-kubeconfig --name <your_eks_cluster_name>
  1. Optional: You can customize your configuration for the RisingWave deployment by editing the values.yml file.

  2. Install the latest RisingWave Helm chart:

helm install --set wait=true <my-risingwave> risingwavelabs/risingwave

Where <my-risingwave> is the release name you choose to use for your RisingWave deployment. This command will install the latest stable version of RisingWave.

If you want to install a particular version, you can specify the version via the image-tag attribute. For example:

helm install --set wait=true --set image.tag=v1.2.0 <my-risingwave> risingwavelabs/risingwave

You may get an output message like this:

NAME: my-risingwave
LAST DEPLOYED: Wed Aug 16 15:35:19 2023
NAMESPACE: default
STATUS: deployed

Use the following command to check the deployment status:

kubectl get pods -l<my-risingwave>

When your status looks like below, it means the RisingWave cluster starts successfully:

NAME                                   READY   STATUS    RESTARTS        AGE
risingwave-compactor-8dd799db6-hdjjz 1/1 Running 1 (8m33s ago) 11m
risingwave-compute-0 2/2 Running 0 11m
risingwave-etcd-0 1/1 Running 0 11m
risingwave-frontend-7bd7b8c856-czdgd 1/1 Running 1 (8m33s ago) 11m
risingwave-meta-0 1/1 Running 0 11m
risingwave-minio-5cfd8f5f64-6msqm 1/1 Running 0 11m

Step 3: Access RisingWave

By default, the RisingWave Helm Chart will deploy a ClusterIP service that enables the cluster-local communication.

Once deployed, you can forward your local machine's port 4567 to the service's port via:

kubectl port-forward svc/my-risingwave 4567:svc

You can then connect to RisingWave using a PostgreSQL client on port 4567. For example:

psql -h localhost -p 4567 -d dev -U root

You can monitor the RisingWave cluster using the monitoring stack. For details, see Monitoring a RisingWave cluster.

Optional: Customize your RisingWave deployment

During installation or upgrade, you can customze your RisingWave deployment by providing the configuration file values.yml. You should edit the file before specifying it during installation or upgrade.

To customize your deployment during installation, run this command instead:

helm install --set wait=true -f values.yml <my-risingwave> risingwavelabs/risingwave

To customize your deployment during upgrade, run this command instead:

helm upgrade -f values.yml --reuse-values <my-risingwave> risingwavelabs/risingwave

The --reuse-values option ensures that the previous configuration will be kept and only the provided configuration will be applied.

A typical values.yml looks like this:

cpu: 1
memory: 2Gi
cpu: 100m
memory: 64Mi

To view the user-specified configurations of your RisingWave cluster:

helm get values my-risingwave

The output will look like this:

cpu: 1
memory: 2Gi
cpu: 100m
memory: 64Mi

Resize a node

By editing the configurations in values.yml, you can resize a worker node. The compactor node configurations are in the compactorComponent section. Configurations for the meta node and compute node are in metaComponent and computeComponent sections respectively.

# To resize other types of node, please replace the name with 
# computeComponent, or metaComponent.
# The maximum amount of CPU and memory the Pod can use.
cpu: 1
memory: 2Gi
# The minimum amount of CPU and memory that the Pod is guaranteed to have.
# 0.1 cores
cpu: 100m
memory: 64Mi

Please note that increasing the CPU resource will not automatically increase the parallelism of existing materialized views. When scaling up (adding more CPU cores) a compute node, you should perform the scaling by following the instructions in Cluster scaling.

Customize state backends

By default, the RisingWave Helm chart uses MinIO as the default state backend. You can edit the values.yml file to use other options as the state backend.

For example, if you intend to use AWS S3 as the state backend, you can revise the configuration as follows:

minio: false

enabled: false

enabled: true
region: <your aws region, e.g, “ap-southeast-1”>
bucket: <your bucket name>
useServiceAccount: false
accessKey: <your access key>
secretAccessKey: <your secret access key>

Help us make this doc better!

Was this page helpful?

Happy React is loading...