Assuming you have an existing cert-manager and nginx in your Kubernetes cluster, the GitLab Helm Chart needs a few tweaks to make use of your existing infrastructure and the ingress.
If you start from scratch, check the following posts to learn how to setup a Kubernetes cluster and install cert-manager and nginx:
How to build a Kubernetes cluster on HETZNER with k3s
HETZNER is a german cloud provider having very competitive prices for linux-based VMs. It’s a great place to run Kubernetes, as HETZNER provides many integrations with their systems we can leverage when running Kubernetes: CSI Integration Terraform integration Loadbalancers At p3r we’re building many tools for Kubernetes – one of them is apollo, which we […]
How to use cert-manager to secure your applications in Kubernetes
If you’re running microservices in Kubernetes, chances are good you need to expose some of them for public access, secured with TLS. In Kubernetes, we have cert-manager to deal with certificate management for us – most prominently it acquires free SSL certificates from LetsEncrypt for our ingress resources if configured correctly. Install cert-manager to your […]
How to use nginx as ingress router to expose your microservices in Kubernetes
Many applications running Kubernetes are web applications that need to serve HTTP traffic. For scenarios like this, Kubernetes has so called ingress objects that can be used to direct traffic to microservices. Under the hood, the Ingress Controller is powered by tools like Traefik, Istio or nginx. To expose a service to the public with […]
The following steps are taken from the official documentation.
First, add the GitLab Helm repository to your local Helm installation and get the default values for GitLab’s configuration.
helm repo add gitlab https://charts.gitlab.io/
helm repo update
helm get values gitlab > gitlab.yaml
Then, adjust the default values to match your installation (and make use of the existing components).
Note: we disable the built-in nginx and cert-manager and provide the necessary annotations to the chart so all GitLab deployments can make use of our existing ingress and tls infrastructure.
Now just install the chart using Helm.
helm upgrade gitlab gitlab/gitlab -f gitlab.yaml