StarRocks Helm Chart 1.6.1 running on Red Hat OpenShift #22767
Closed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This tutorial describes how you can get StarRocks running on Red Hat OpenShift or OKD. Thanks for contributions from @dengliu from Celonis and @piggyvenus from Red Hat.
Prerequisites
For this tutorial you need to:
Login into Red Hat OpenShift or OKD
Logan into your OpenShift environment. For this tutorial, I'll be going through the UI to get access to "oc".
Once you access the "copy login command", you'll get the "oc login" command with token. An example is below.
Results will looks like
Deploy the StarRocks Helm Chart
We will be following the instructions listed at https://docs.starrocks.io/en-us/latest/deployment/helm#deploy-starrocks-with-helm
Note: StarRocks Operator does not currently work with OpenShift. See StarRocks/starrocks-kubernetes-operator#108
Results will look like
Next we'll create the starrocks-sa service account and also apply "super user" permissions to the starrocks-sa service account. Note: Normally, you would not apply "super user" permissions. That is against K8S SCC (security context constraints) polices and K8S security best practices. There is an outstanding RFE: #22768 to fix this.
Results will look like
Note: You'll see that you can interchange "oc" and "kubectl". "oc" is just an enhanced form of "kubectl" with additional commands/features. For basic "kubectl" commands, you can use either command to execute against OpenShift.
Deploy the StarRocks cluster
Next we need to modify the values.yaml to use the correct service account. Download the default values.yaml and rename it to my-values.yaml. You'll need to modify 2 values in 3 different sections (for FE, BE, CN)
Here's how my FE section looks:
Finally we deploy the Helm Chart
Here's more output
Connect to the StarRocks Cluster from your workstation
There are two different ways to connect to the StarRocks Cluster from your workstation
Method 1: Use k8s port-forward
Method 2: Launch the StarRocks Toolkit in the same k8s namespace as your cluster
Each method has pros/cons. Method 1 allows you to use your own tools and you just connect remotely. Method 2 works for disconnected networks or secure networks (doesn't allow you to port forward) and/or you just don't want to deal with network issues. Since the tool box is just another pod and on the same namespace network, tools "just works".
K8S Port Forward
Use the port-forward command to connect your workstation into the k8s namespace.
Output
Launch another terminal session and run the mysql client
Output
Using the StarRocks Tool Kit
Get the container at https://hub.docker.com/r/atwong/starrocks-tool-box and then execute a
docker run
.Start the container
Get the name of the tool-box pod and the IP of the FE.
Shell into the tool box pod
Execute the mysql client and connect to the FE.
Beta Was this translation helpful? Give feedback.
All reactions