kividb-operator-chart

by KiviDB

Helm chartv0.7.1App 0.7.1Apache-2.0Verified publisher

Kubernetes operator for KiviDB, a Redis-RESP-compatible data store: manages single-master/N-replica and sharded KividbCluster StatefulSets, ACL/auth, automatic failover via a per-pod agent sidecar, scheduled S3-compatible backups, and (optionally) a management web GUI.

About this chart

kividb-operator

A Kubernetes operator for kividb, a Redis-RESP-compatible in-memory store. This chart installs the operator (the KividbCluster CRD, its controller, RBAC, and a management web console) — it does not install a database cluster by itself. Once installed, you create KividbCluster custom resources to describe the clusters you actually want; see the samples linked below.

What you get

  • The KividbCluster CRD (kividb.io/v1alpha1) and its controller, managing single-master/N-replica StatefulSets with automatic failover (a replica is promoted and pods relabeled — no Service changes needed), ACL/requirepass auth, separate master/replica Services (ClusterIP/NodePort/LoadBalancer), and scheduled S3-compatible backups via native CronJobs.
  • A per-pod agent sidecar that bridges HTTP (from the controller) to RESP (to kividb), since kividb has no HTTP API of its own.
  • An optional third redis-exporter sidecar (oliver006/redis_exporter) per KividbCluster pod, for Prometheus metrics in the standard Redis-ecosystem format, plus an optional cluster-wide ServiceMonitor.
  • A management web console (gui.enabled, on by default): every cluster's health, topology and metrics, logs and a command console, scaling, failover, snapshots, and creating clusters from a form. It runs under its own narrow, Secret-free RBAC, and is read-only until you give it credentials (gui.auth.existingSecret).

The management console

kubectl create secret generic kividb-gui-auth -n kividb-operator-system \
  --from-literal=username=admin --from-literal=password='change-me'
helm upgrade --install kividb-operator oci://ghcr.io/kividbio/kividb-operator-chart \
  -n kividb-operator-system --set gui.auth.existingSecret=kividb-gui-auth
kubectl port-forward -n kividb-operator-system svc/kividb-operator-gui 8090:8090
# open http://localhost:8090 and sign in

Full design writeup: docs/ARCHITECTURE.md.

Installing

helm install kividb-operator oci://registry-1.docker.io/kividb/kividb-operator-chart \
  --version 0.7.1 \
  -n kividb-operator-system --create-namespace

The same chart is at oci://ghcr.io/kividbio/kividb-operator-chart.

(Pass whichever version you're installing to --version; omit it to get the latest chart. This chart release is validated against kividb v1.2.1, which is also the operator default when a KividbCluster leaves spec.image unset. See docs/INSTALL.md for the full install/upgrade/uninstall walkthrough, including the kustomize-only alternative and why Helm never auto-upgrades the CRD.)

Then apply a KividbCluster:

kubectl apply -f https://raw.githubusercontent.com/kividbio/kividb-operator/main/config/samples/kividb.io_v1alpha1_kividbcluster_minimal.yaml
kubectl get kividbcluster -w

Key values

See values.yaml for the complete, commented list. The most commonly overridden:

KeyDefaultPurpose
manager.image.tagchart's appVersionOperator manager image tag
gui.enabledtrueInstall the read-only dashboard
gui.service.typeClusterIPHow to expose the GUI
crds.installtrueInstall the CRD on first install (Helm convention: never auto-upgraded afterward — see docs/INSTALL.md)
metrics.serviceMonitor.enabledfalseCluster-wide ServiceMonitor for every KividbCluster's agent + redis-exporter metrics
watchNamespace"" (all namespaces)Restrict the manager to one namespace

Per-KividbCluster settings (replicas, storage, ACL users, backup schedule, the redis-exporter sidecar, scheduling constraints, ...) are not chart values — they live on the KividbCluster custom resource itself. See docs/CONFIGURATION.md for the full field reference.

Documentation

README · Architecture · Install · Configuration · Backup & Restore · Troubleshooting

License

Apache License 2.0.

Deploy kividb-operator-chart with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kividb-operator-chart on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkividb-operator-chart is pinned at v0.7.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply