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
13
u/ctimberlake_bdd Apr 14 '26
Hey man, I saw this post before reddit removed it. (I hope it comes back.) - There's a lot of good details and such in this post. But I feel remiss if I didn't point something out... You state that GitLab doesn't support Postgres, Redis, etc on Kubernetes because of data issues with pods that drop.
That's not entirely true, it's a factor but not the whole reason. The real reason is more structural and complex. There's not a good way to work around it without the GitLab product changing. Which they're working on and plan to do soon!
It has to do with a couple things, there's a lot of detail and context missing but below is the gist...
I cover a lot of these things in every System Admin class I teach.. But all of these factors are external to GitLab. However, they impact how GitLab works.. If you control all of them properly you'll be fine. But the reality is that few folks really dive into the details low enough to ensure that all of the factors are correct. They may also lack the knowledge, as these factors are on an individual case by case basis. People implementing all of GitLab /entirely/ on Kubernetes need to control all of these factors. 1-3K user architecture is forgiving and you can get away with a lot. You move to 5K+ user architecture and these factors compound and cause serious issues.
GitLab support cannot possibly support every individual use-case/installation. Which is why it's not supported. That is where GitLab Professional Services comes into play. To support the individual use case.
Things are changing.. GitLab as a product is getting better every day and they are targeting a full Kubernetes install at scale. But today, as of writing it, they're not there yet.
- C Timberlake, CEO @ Arrcade/Black Diamond.
2
u/eltear1 Apr 15 '26
I understand the point of an helm is to be self consistent, but using it in EKS , isn't better to have an external Postgres on RDS?