Prerequisites
Before you begin, make sure you have Helm installed on your Kubernetes cluster. To deploy FalkorDB to Kubernetes we need to use: And follow these steps:Step 1: Create a values.yaml File
Create a values.yaml file with the following content:
Step 2: Install FalkorDB Helm Charts
You can deploy FalkorDB using one of two Redis deployment architectures:Option A: Sentinel-based Deployment (Recommended for High Availability)
This deployment uses Redis Sentinel for automatic failover and high availability. Install the helm charts using the following command:Option B: Redis Cluster Deployment
This deployment uses Redis Cluster for horizontal scalability and sharding. Create a cluster-specificvalues.yaml file:
my-falkordb-redis-cluster instead of my-falkordb-redis-master).
Step 3: Retrieve the FalkorDB Password
To connect to FalkorDB, you need the Redis password. Retrieve it using the following command:Step 4: Enable External Connections
In a new terminal, run the following command to port-forward to the FalkorDB server, allowing external connections:Step 5: Connect to FalkorDB Using redis-cli
You can now connect to FalkorDB using redis-cli with the following command:
Step 6: Run a Simple Cypher Query
To test your FalkorDB installation, run a simple Cypher query:Frequently Asked Questions
Which Helm chart should I use for FalkorDB on Kubernetes?
Which Helm chart should I use for FalkorDB on Kubernetes?
Use the Bitnami Redis Helm chart (
oci://registry-1.docker.io/bitnamicharts/redis) for Sentinel-based HA deployments, or the Redis Cluster chart (bitnamicharts/redis-cluster) for sharded deployments.Why is allowInsecureImages required in the values.yaml?
Why is allowInsecureImages required in the values.yaml?
The FalkorDB Docker image may use non-standard base configurations. Setting
global.security.allowInsecureImages: true allows the Bitnami Helm chart to accept the FalkorDB image without strict security validation.How do I scale replicas in Kubernetes?
How do I scale replicas in Kubernetes?
Modify the
replica.replicaCount value in your values.yaml and run helm upgrade. For cluster deployments, adjust the node count in the Redis Cluster chart values.Can I use persistent volumes with FalkorDB on Kubernetes?
Can I use persistent volumes with FalkorDB on Kubernetes?
Yes. The Bitnami Helm charts enable persistent volume claims by default. Configure
master.persistence.size and replica.persistence.size in your values.yaml to set storage sizes.How do I expose FalkorDB outside the Kubernetes cluster?
How do I expose FalkorDB outside the Kubernetes cluster?
Use
kubectl port-forward for development, or configure a LoadBalancer or NodePort service type in your Helm values for production external access.