Upgrading StarRocks on Kubernetes shouldn't mean watching the FE leader change hands several times, or rolling back a disk resize because the operator refused it. Our StarRocks Kubernetes operator fixes both, and today we're introducing it.
It's a drop-in replacement for the upstream operator. The CRDs and Helm chart names are the same, so your manifests don't change, and it's free under Apache 2.0. A Fortune 500 payments company already runs its StarRocks platform on it.
With the upstream operator, a StatefulSet rolls the frontends in pod order. It doesn't know which one is the leader, so the leader can restart early and leadership can move more than once in a single upgrade. Our operator upgrades the followers first and the leader last. You get one leader election per upgrade.
Backends have a similar issue. The next BE can restart before the tablets from the previous one have recovered. Ours replaces one backend at a time and waits for tablets to balance before it moves on.
Then there's disk. On upstream, raising storageSize makes the API server reject the change to the StatefulSet, and the operator stops reconciling that component until you undo it. Ours expands the volumes in place, and the pods keep running.
There's more in the README, including CN deregistration for shared-nothing clusters and priority classes on every component.
When a cluster we support needs a fix, it can't wait for the next upstream release. So we ship fixes as soon as they're ready and send our own changes upstream as pull requests, like #762, #763 and #764. Some fixes come from the community, and we ship those too once we've tested them, with a link to the original pull request. We'll keep releasing this way.
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
Keep the --version flag. Helm skips our versions otherwise, because the -deepbi suffix looks like a pre-release to it. Helm also doesn't upgrade CRDs, so apply them from the release you're moving to. The installation guide has the steps.
If you'd rather have us handle the upgrade, or be the ones who get paged, that's what our StarRocks support is for.