For this recipe, we will use the Kubernetes cluster on Amazon EC2, which we deployed in Chapter 1, Building Production-Ready Kubernetes Clusters under the Configuring a Kubernetes cluster on Amazon Web Services section:
- Add GitLab Helm chart repos to your local repository:
$ helm repo add gitlab https://charts.gitlab.io/
$ helm repo update
- Replace the following externalUrl with your domain name and deploy GitLab using Helm in the gitlab namespace:
$ helm upgrade --install gitlab gitlab/gitlab --namespace gitlab \
--timeout 600 \
--set global.edition=ce \
--set certmanager-issuer.email=youremail@domain.com \
--set global.hosts.domain=yourdomain.com
For simplicity, I would recommend using your own certificates following the Using auto-generated self-signed certificates sections. Then you can map your DNS name to the created ELB using a CNAME record.
- The deployment may take around 10-15 minutes. Confirm the service status and note the external IP of the gitlab-gitlab-ce service:
$ kubectl get svc -n gitlab