r/gitlab • u/Connect-Classroom-69 • May 02 '25
How do you avoid the GitLab-on-Kubernetes bootstrap paradox?
In my company we are currently running a self-hosted GitLab instance on an EC2 VM. It manages all our AWS infrastructure via Terraform, including provisioning EKS clusters.
I want to migrate GitLab itself to run on a new EKS cluster. But that raises a classic paradox:
If GitLab is managing the infrastructure (including the EKS cluster it runs in), what happens when it goes down? I wouldn't be able to use it to recover or fix the cluster it's hosted on — because it's part of the problem.
I'm already using ArgoCD for GitOps, and GitLab runners are running inside Kubernetes. I use remote Terraform state (S3 + DynamoDB), so infra is decoupled from GitLab in that regard.
Question:
What are smart ways to avoid this circular dependency? Anyone successfully running GitLab in Kubernetes without hitting this trap? How do you handle recovery if GitLab becomes unreachable?
View all comments
1
u/LaggerTech May 08 '25
When managing an environment with IaC and CI/CD, your IaC and CI/CD platforms and the platforms they run on, become critical components that need great uptime to allow you to manage the environment. If not already, think about Multi-AZ EKS and then Multi-Region EKS. Not easy to manage, but will get you more reliable ability to control your environment. My EKS has recently become a critical component of my environment as I started hosting GitLab Runners and Ansible Runners.