Skip to main content

Kubernetes Deployment with Helm

Deploy Cognee on Kubernetes using Helm charts for enterprise-grade, production-ready deployments with full control over configuration and resources. Kubernetes deployment provides container orchestration, auto-healing, and declarative configuration for production workloads.
Cognee runs as a single-replica deployment. The API pod is a single process, and running multiple replicas against the same stores is not supported — do not enable horizontal autoscaling or set replicas above 1. Scale vertically (more CPU/memory per pod) instead, and use external databases (Postgres, Neo4j, Qdrant) so the pod itself stays stateless.

Why Kubernetes + Helm?

Enterprise Ready

Production-grade deployment with security, monitoring, and compliance

Auto-Healing

Failed pods are restarted automatically and health-checked continuously

Resource Management

Fine-grained control over CPU, memory, and storage allocation

GitOps Integration

Version-controlled infrastructure with automated deployment pipelines

Prerequisites

1

Kubernetes Cluster

You need a running Kubernetes cluster:
  • Local: Minikube, Kind, or Docker Desktop
  • Cloud: GKE, EKS, AKS, or DigitalOcean Kubernetes
  • On-premise: Self-managed Kubernetes cluster
Minimum requirements: 3 nodes, 4 CPU cores, 8GB RAM per node
2

Install Tools

3

Configure Access

Quick Deployment

1

Clone Repository

2

Configure Values

Create a values.yaml file to customize your deployment:
3

Deploy with Helm

4

Verify Deployment

Architecture Components

Cognee Services
  • Cognee API: Main application pod (single replica)
  • Service: Stable endpoint and health checks for the API pod
  • Ingress: External traffic routing with SSL termination

Production Configuration

Production Resources

Database Management

PostgreSQL

Relational Data
  • Persistent metadata storage
  • User management and permissions
  • Pipeline state and configuration

Neo4j

Graph Database
  • Knowledge graph relationships
  • Entity connections
  • Semantic network storage

Qdrant

Vector Database
  • Embeddings storage
  • Similarity search
  • Semantic retrieval

Scaling & Performance

Cognee scales vertically: give the single API pod more CPU and memory rather than adding replicas. Horizontal Pod Autoscaling is not supported — multiple Cognee pods writing to the same stores is not a supported configuration.
1

Vertical Pod Autoscaler

2

Scale the databases, not the app

Postgres read replicas, Neo4j clustering, and Qdrant replication are managed by their own charts and can scale independently of the single Cognee pod.

Maintenance Operations

Troubleshooting

Pod Failures

Uninstalling

1

Remove Helm Release

2

Clean Up Resources

Uninstalling will permanently delete all data unless you have backups. Ensure you have proper backup procedures in place.

Next Steps

Monitoring Setup

Observability StackConfigure Prometheus, Grafana, and alerting for production monitoring.

CI/CD Integration

GitOps DeploymentSet up automated deployments with ArgoCD or Flux.

Need Help?

Join our community for Kubernetes deployment support and production best practices.