Deep.BI/StarRocks/Kubernetes operator

StarRocks Kubernetes operator, built for safe upgrades

Our build of the StarRocks Kubernetes operator replaces the FE leader last, holds backend restarts until tablets are balanced and grows volumes without stopping reconciliation. It keeps the upstream CRDs and Helm chart names, and it's free under Apache 2.0.

What it fixes

Three problems that show up during upgrades and resizes

The upstream operator replaces frontends from the highest pod number down and doesn't know which one is the leader, so one upgrade can move leadership twice. A backend can pass its readiness check while its tablets are still being repaired. And raising storageSize makes the API server refuse the StatefulSet patch, which stops reconciliation for that component.

Our build fixes all three. A Fortune 500 payments company runs its StarRocks platform on it.

Free under Apache 2.0. Support from our engineers is optional.

Features
  • The FE leader goes last. Followers are replaced first, so leadership moves once, to a follower already on the new version. Off by default: set enableFeLeaderAwareUpgrade in the Helm values.
  • Backends wait for tablet balance. With waitForTabletBalance set, the operator waits past Ready and holds the next BE restart until tablets are balanced again.
  • Volumes grow without stopping reconciliation. With enableVolumeExpansion on, raising storageSize resizes each PVC in place and recreates the StatefulSet without restarting its pods.
  • Compute nodes leave cleanly. In shared-nothing clusters, a CN removed by a scale-in is dropped from the FE. This one has no switch.

What we wrote and what we carry from the community

When a fix is ready and a production cluster needs it, we ship it in our release instead of waiting for the next upstream one. Our own changes go upstream as pull requests.

Some fixes we ship were written by others in the community and are still waiting for an upstream merge, so we test them before release and link each original pull request in the README.

Our pull requests to upstream

Leader-aware upgrades have no upstream pull request yet.

Community pull requests we carry

Where it doesn't help

Check these before you turn the settings on.

  • Leader-aware upgrades change nothing on a cluster with a single FE.
  • Volume expansion needs a StorageClass with allowVolumeExpansion: true, and it only grows a volume online if your CSI driver supports that. Without it, the resize is refused and the StatefulSet is left alone.
  • Volumes can't shrink, so a smaller storageSize is rejected.
  • Clusters first created by operator v1.5 or earlier can't take the recreate path, so the operator refuses the resize rather than guess.
  • The operator needs get, list and patch on PersistentVolumeClaims. The bundled Helm roles include that, but a hand-written Role may not.
Install

Install, upgrade and switch back

Keep --version on every command, because our versions end in -deepbi.N and Helm treats that suffix as a pre-release it would otherwise skip. Helm never upgrades CRDs, so apply the CRDs from the release you're moving to before you upgrade the chart.

To go back to upstream, install the upstream chart and CRDs. Fields that only our CRDs define, such as waitForTabletBalance, are dropped and the behaviour above stops.

Helm
helm repo add deep-bi https://charts.deep.bi
helm repo update
helm install starrocks-operator deep-bi/operator \
  --version 1.11.8-deepbi.4 \
  -n starrocks --create-namespace
Helm values
starrocksOperator:
  enableFeLeaderAwareUpgrade: true
  enableVolumeExpansion: true

Questions teams ask first

Is this the same as the upstream StarRocks operator?

It's built on upstream v1.11.8 with the same CRDs and Helm chart names, plus fixes that aren't in an upstream release yet. It's open source under Apache 2.0, like upstream.

Do I need a Deep.BI support contract to use it?

No. The operator is free and runs without a contract. Support from our StarRocks engineers is optional and priced separately.

Why doesn't Helm pick up your versions?

Our versions end in -deepbi.N, which Helm reads as a pre-release, so it skips them unless you pass --version. The same rule ranks 1.11.8-deepbi.4 below 1.11.8, so check any version range you give Renovate, Argo CD or Flux.

How do I switch back to the upstream operator?

Install the upstream chart and apply the upstream CRDs. Fields that only our CRDs define are dropped by the API server, and our extra behaviour stops.

Talk to a StarRocks engineer

Tell us your StarRocks version, how you deploy it and what you're trying to fix. A StarRocks engineer reads it and replies.

Let's help you

run StarRocks with confidence

Contact us:

Get in touch and we'll reach back out to you soon!

Deep.BI needs the contact information you provide to us to contact you about our products and services. You may unsubscribe from these communications at any time. For information on how to unsubscribe, as well as our privacy practices and commitment to protecting your privacy, please review our Privacy Policy.
Thank you! Your submission has been received!
We’ll get back to you shortly!
Oops! Something went wrong while submitting the form.
Please try again.
Contact information: