doc/user/infrastructure/clusters/manage/management_project_applications/runner.md
{{< details >}}
{{< /details >}}
Assuming you already have a project created from a
management project template, to install GitLab Runner you should
uncomment this line from your helmfile.yaml:
- 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
applications/gitlab-runner/values.yaml.gotmpl file:
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:
runnerToken: The runner authentication token for the runner configuration created in the GitLab UI.runnerRegistrationToken (deprecated in GitLab 15.6 and is planned for removal in GitLab 20.0.): The registration token for used to add new runners to GitLab.These values can be specified using CI/CD variables:
CI_SERVER_URL is used for gitlabUrl. If you are using GitLab.com, you don't need to set this variable.GITLAB_RUNNER_TOKEN is used for runnerToken.GITLAB_RUNNER_REGISTRATION_TOKEN is used for runnerRegistrationToken (deprecated).The methods of specifying these values are mutually exclusive. You can either:
GITLAB_RUNNER_TOKEN and CI_SERVER_URL as CI variables (recommended).runnerToken: and gitlabUrl: in applications/gitlab-runner/values.yaml.gotmpl.The runner registration token allows connection to a project by a runner. Treat it as a
secret to prevent malicious use and code exfiltration through a runner. Specify the
runner registration token as a
protected variable and
masked variable. Do not
commit tokens to the Git repository in the values.yaml.gotmpl file.
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.