Valkey Operator¶
Valkey Operator is a Kubernetes operator for Valkey. It deploys and manages Valkey Cluster, Valkey Sentinel (failover) and replica instances from a single Valkey custom resource, and keeps them running: ACL users, TLS, online scaling and graceful version upgrades.
It is an independent open source project under the Apache 2.0 license, separate from the Valkey project's own operator, valkey-io/valkey-operator.
Quick Start¶
- Operator Overview - Understanding Valkey Operator architecture and capabilities
- User Guide - Complete installation and usage guide
- Examples - Ready-to-use configuration examples
- FAQ - Short answers to common questions
How-to Guides¶
- Valkey Sentinel on Kubernetes - A primary with replicas, kept available by Valkey Sentinel
- Valkey Cluster on Kubernetes - A sharded Valkey Cluster, scaled online
API Reference¶
- API Overview - Complete API reference overview
- Sentinel API - Standalone sentinel configuration
- User API - User and ACL management
- Core Types - Shared types and structures
Unified Valkey Resource¶
Valkey Operator uses a unified Valkey resource to manage all deployment architectures. You can specify the desired architecture using the arch field.
arch: replica- Standalone Valkey instance.arch: cluster- Valkey cluster with automatic sharding.arch: failover- High-availability setup with Sentinel.
Here is an example of a Valkey cluster:
apiVersion: rds.valkey.buf.red/v1alpha1
kind: Valkey
metadata:
name: my-valkey-cluster
spec:
arch: cluster
version: "8.0"
replicas:
shards: 3
replicasOfShard: 1
Features¶
- ✅ Unified API - Manage all Valkey architectures with a single CRD.
- ✅ Multi-Architecture Support -
replica,cluster, andfailovermodes. - ✅ High Availability - Automatic failover and recovery.
- ✅ Horizontal Scaling - Online scale up/down operations.
- ✅ Version Upgrades - Graceful rolling updates.
- ✅ Persistent Storage - Configurable storage with retention.
- ✅ Security - TLS encryption and ACL support.
- ✅ Monitoring - Built-in Prometheus exporter.
- ✅ IPv4/IPv6 - Dual-stack networking support.
- ✅ Node Scheduling - Affinity, tolerations, node selectors.
Supported Versions¶
| Valkey Version | Kubernetes | Status |
|---|---|---|
| 7.2.x | 1.33, 1.34, 1.35 | ✅ Supported |
| 8.0.x | 1.33, 1.34, 1.35 | ✅ Supported |
| 8.1.x | 1.33, 1.34, 1.35 | ✅ Supported |
| 9.0.x | 1.33, 1.34, 1.35 | ✅ Supported |
| 9.1.x | 1.33, 1.34, 1.35 | ✅ Supported |
The v2.1.0 release candidate passed the end-to-end suite on Kubernetes v1.33.12 and v1.34.11 (kind) for every Valkey version above, and on Kubernetes v1.35.6 for Valkey 7.2, 8.1 and 9.1.
Examples by Use Case¶
| Use Case | Example | Description |
|---|---|---|
| Standalone | Valkey Standalone | Basic standalone Valkey instance |
| Cluster | Valkey Cluster | Valkey cluster with sharding |
| High Availability | Valkey Failover | Sentinel-based failover |
| User Management | ACL Users | User and ACL configuration |
| Monitoring | Production Cluster | Prometheus exporter, storage and anti-affinity |
Quick Installation¶
Using Helm (Recommended)¶
# Install the operator (cert-manager integration is enabled by default)
# Requires cert-manager: https://cert-manager.io/docs/installation/
helm install valkey-operator oci://ghcr.io/chideat/charts/valkey-operator \
--namespace valkey-system --create-namespace
# Deploy a standalone Valkey instance
kubectl apply -f docs/examples/basic/standalone.yaml
# Check status
kubectl get valkey valkey-standalone -w
Requires cert-manager (enabled by default). Alternatively, disable webhooks:
--set webhook.enabled=false
Using Kustomize¶
# Install the operator
kubectl apply -k https://github.com/chideat/valkey-operator/config/default
# Deploy a standalone Valkey instance
kubectl apply -f docs/examples/basic/standalone.yaml
# Check status
kubectl get valkey valkey-standalone -w
Getting Help¶
- 📖 Documentation: You're reading it!
- 🐛 Bug Reports: GitHub Issues
- 💡 Feature Requests: GitHub Issues
- 🤝 Contributing: CONTRIBUTING.md
License¶
Valkey Operator is licensed under the Apache 2.0 License.