Using a Kubernetes cluster to spawn GitLab Runners

The best method of deploying a GitLab Runner container into a Kubernetes cluster is by using the GitLab Runner Helm chart.

It contains all of the configuration information that's run using the GitLab Runner Kubernetes executor. For each new job it receives from GitLab CI/CD, it will provision a new pod within the specified namespace to run it.

You can run the install using the following command:

$ helm install --namespace gitlab --name gitlabrunner -f values.yaml  gitlab/gitlab-runner

This command can take some time to complete. After some time, you will receive the following output:

NAME: gitlabrunner LAST DEPLOYED: Tue May 21 21:11:15 2019 NAMESPACE: gitlab STATUS: DEPLOYED  RESOURCES:

Get Mastering GitLab 12 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.