Preparing GKE resources for the GitLab chart

  • Tier: Free, Premium, Ultimate
  • Offering: GitLab Self-Managed

For a fully functional GitLab instance, you will need a few resources before deploying the GitLab chart.

Creating the GKE cluster

Prerequisites:

Two resources need to be created in GCP, a Kubernetes cluster and an external IP.

Creating the Kubernetes cluster

To provision the Kubernetes cluster, follow the GKE instructions.

  • Size the cluster to meet the cluster requirements, for example with two n2d-standard-4 nodes.
  • Make a note of the cluster’s region, it will be needed in the following step.

Creating the external IP

An external IP is required so that your cluster can be reachable. The external IP needs to be regional and in the same region as the cluster itself. A global IP or an IP outside the cluster’s region will not work.

To create a static IP run:

gcloud compute addresses create ${CLUSTER_NAME}-external-ip --region $REGION --project $PROJECT

To get the address of the newly created IP:

gcloud compute addresses describe ${CLUSTER_NAME}-external-ip --region $REGION --project $PROJECT --format='value(address)'

We will use this IP to bind with a DNS name in the next section.

DNS Entry

You need a public domain with an A record wild card DNS entry pointing to the IP we just created.

Follow the Google DNS quickstart guide to create the DNS entry.

Next Steps

Continue with the installation of the chart after you have the cluster up and running, and the static IP and DNS entry ready.