KiviDB on your own cluster

Run KiviDB on your own Kubernetes cluster with the open-source kividb-operator: a KividbCluster resource, replicas with automatic failover, snapshot backups, Prometheus metrics and a management...

The open-source kividb-operator runs KiviDB as a KividbCluster resource: a primary and its replicas, automatic failover, backups and metrics, declared in YAML, with a console to watch and run them.

Two commands to a running cluster

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

kubectl apply -f - <<EOF
apiVersion: kividb.io/v1alpha1
kind: KividbCluster
metadata:
  name: cache
spec:
  version: "1.2.2"
  storage:
    size: 5Gi
EOF

A cluster you declare, not script

  • Primary and replicas StatefulSet pods with a separate Service for the primary and for the replicas, so applications can send reads and writes to the right place.
  • Automatic failover When the primary is lost, the operator promotes a replica and repoints the primary Service.
  • Backups and metrics Snapshot backups to any S3-compatible bucket, optional access-control users, and Prometheus ServiceMonitors.

Every cluster, at a glance

The operator ships a management console, on by default in the Helm chart. It shows every cluster's health, topology and metrics, its pod logs and a RESP console, and creates clusters from a form whose manifest the API server checks as you type. It is read-only until you give it a login, and Secrets never reach the browser.

  • The operator console's dashboard: totals for clusters, health, memory and commands per second, then a card per cluster with its engine version, pods and the last hour's commands and memory
  • A cluster's page: the master and its replicas with readiness, memory, keys and replication lag, the pods, the spec, services and conditions, and actions to scale, promote, snapshot and restart

Watch it, and run it

  • Health and topology Clusters healthy, needing attention or in error, and for each one its master and replicas, how far each replica is behind, and its pods, services and conditions.
  • Metrics without Prometheus Commands per second, memory, clients and replication lag per pod, over one, six or 24 hours, scraped by the console itself.
  • Actions, with a login Scale replicas, promote one, take a snapshot, restart, create and delete clusters, from in-page confirmations. Without a login the console only reads.

What you need

Requirement
Kubernetes1.27 or later recommended
Helm3.9 or later, for the OCI chart
StorageA default StorageClass; the sample requests 5 Gi per pod
OptionalAn S3-compatible bucket for backups; Prometheus Operator for ServiceMonitors

Go further

Run it on your cluster

Install the operator with Helm and apply a KividbCluster. The engine is the same one KiviDB Cloud runs.