Platform and reliability
Running Kubernetes on OpenShift for CubeCraft
Running the multi-node OpenShift clusters CubeCraft and Rocket run on, from GitOps, storage and secrets to tested paging rules and operator forks in Go.
- 50K+players online at once at CubeCraft's peak
- Millionsof players a month
The problem
A game network has to be up whenever players are online, and with servers in multiple regions that’s nearly always. Rocket’s services, the data pipelines and a lot of the game run on Kubernetes, so the platform underneath just has to work.
What I do
- Run multi-node Kubernetes clusters on OpenShift (OKD), with everything deployed through GitOps on Argo CD, Helm and Kustomize
- Storage on Ceph, database and volume backups with CloudNativePG and Barman, and secrets on OpenBao and Sealed Secrets
- Terraform for Cloudflare and the hosting providers, applied from the cluster by an operator (newer for me, since October 2026)
- Monitoring on Prometheus, Thanos and Grafana, with paging rules that ship with their own unit tests
- Maintain our forks of the open-source Apache Doris and Spark Kubernetes operators in Go
- On call when something breaks
- Git commitHelm and Kustomize
- Argo CDdiff and sync
- OpenShiftworkloads roll out
- Prometheusscrape and evaluate
- Grafanapage on-call
A paging rule that needs two witnesses
External probes page us when a tenant’s endpoint is down from outside. But one cluster’s own network trouble shouldn’t wake anyone, so the rule needs two or more probing clusters to agree.
alert TenantEndpointDown
if count by (target) (probe_success{source_cluster=~".+"} == 0) >= 2
for 5m
# and it ships with a rule test
test "one cluster's bad network doesn't page":
given probe_success{target="a", source_cluster="c1"} = 0
probe_success{target="a", source_cluster="c2"} = 1
expect no alerts
A fix in the Spark operator fork
Scheduled Spark jobs were being validated by the wrong webhook handler: the kubebuilder marker for ScheduledSparkApplication pointed at the SparkApplication path. The controller’s RBAC marker was also missing update, patch, list and watch on Services. I pointed the marker at the right path, widened the RBAC, and regenerated the webhook and RBAC manifests from the markers.
Why it matters
Most of the job is making sure game developers can ship and data engineers can schedule jobs without thinking about the clusters at all.