DEV Community

Job Céspedes Ortiz
Job Céspedes Ortiz

Posted on • Edited on • Originally published at jobcespedes.dev

1 1

A KeyDB Operator for Kubernetes

KeyDB is a multithreading, drop-in alternative to Redis. The Keydb-operator can easily create either a standalone instance (1 replica) or a multimaster setup (3 replicas) of the KeyDB in-memory database. When KeyDB is in multimaster mode, it is possible to have more than one master, allowing for read/write operations across all of them. This capability enhances high availability and fault tolerance.

This operator is part of the Kubernetes operators and tools developed by Krestomatio, a managed service for Moodle™ instances

Install

The Kubernetes Operator in this project is in Alpha version. Use at your own risk

Check out the sample CR. Follow the next steps to first install the KeyDB Operatorn and then a KeyDB instance:

# install the operator
make deploy

# create KeyDB instance from sample
kubectl apply -f config/samples/keydb_v1alpha1_keydb.yaml

# follow/check KeyDB operator logs
kubectl -n keydb-operator-system logs -l control-plane=controller-manager -c manager  -f

# follow sample CR status
kubectl get keydb keydb-sample -o yaml -w
Enter fullscreen mode Exit fullscreen mode

Uninstall

Follow the next steps to uninstall it.

# delete the KeyDB object
# CAUTION with data loss
kubectl delete -f config/samples/keydb_v1alpha1_keydb.yaml

# uninstall the operator
make undeploy
Enter fullscreen mode Exit fullscreen mode

Advanced Options

For different or advanced configuration via the CR spec, take a look at the variables available

Want to contribute?

  • Use github issues to report bugs, send enhancement, new feature requests and questions

About Krestomatio

Krestomatio is a managed service for Moodle™ e-learning platforms. It allows you to have open-source instances managed by a service optimized for Moodle™, complete with an additional plugin pack and customization options.

Top comments (0)

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay