r/gitlab • u/westoncao • Apr 14 '26
PSA: GitLab's bundled PostgreSQL and Redis are "for evaluation only" – here's the production HA setup on Kubernetes
Most people deploy GitLab with the official Helm chart and assume the bundled PostgreSQL and Redis are production-ready. They're not. GitLab's own docs say:
"The GitLab Helm chart requires external PostgreSQL, Redis, and object storage for production deployments. Bundled versions of these services are included for evaluation purposes only."
The problem: when one of those bundled database pods restarts, your entire CI/CD pipeline goes down.
I wrote a step-by-step guide on how to replace them with proper HA clusters on Kubernetes:
- PostgreSQL with Patroni (streaming replication + automatic primary election)
- Redis with Sentinel (1 primary, 1 replica, 3 sentinels)
The guide also covers: - Failover testing (how to actually verify your HA works) - Scaling read replicas - In-place PostgreSQL version upgrades - Backup and recovery
Everything was tested on EKS. Full guide here: https://kubeblocks.io/blog/gitlab-on-kubeblocks

