Install GitLab Runner with a cluster management project (FREE ALL)
Introduced in GitLab 14.0.
Assuming you already have a project created from a
management project template, to install GitLab Runner you should
uncomment this line from your
- path: applications/gitlab-runner/helmfile.yaml
GitLab Runner is installed by default into the
gitlab-managed-apps namespace of your cluster.
For GitLab Runner to function, you must specify the following in your
gitlabUrl: The GitLab server full URL (for example,
https://gitlab.example.com) to register the Runner against.
Runner token: This must be retrieved from your GitLab instance. You can use either of the following tokens:
These values can be specified using CI/CD variables:
CI_SERVER_URLis used for
gitlabUrl. If you are using GitLab.com, you don't need to set this variable.
GITLAB_RUNNER_TOKENis used for
GITLAB_RUNNER_REGISTRATION_TOKENis used for
The methods of specifying these values are mutually exclusive. You can either:
- Specify the variables
CI_SERVER_URLas CI variables (recommended).
- Provide values for
The runner registration token allows connection to a project by a runner and therefore should be treated as a secret to prevent malicious use and code exfiltration through a runner. For this reason, we recommend that you specify the runner registration token as a protected variable and masked variable and do not commit them to the Git repository in the
You can customize the installation of GitLab Runner by defining
applications/gitlab-runner/values.yaml.gotmpl file in your cluster
management project. Refer to the
chart for the
available configuration options.