How to Disable TLS Verification for GitLab Runner Deployed with Helm

Issue Description Problem Statement I am experiencing an issue with my GitLab Runner deployed on a cluster using Helm. I am unable to disable TLS verification for my GitLab instance, which uses a self-signed certificate. I am looking for guidance on what settings to include in my values.yaml file to trust the HTTPS connection.

The commande:

helm install gitlab-runner -f values.yaml gitlab/gitlab-runner --set runnerRegistrationToken=$gitlabrunnertoken --namespace gitlab-runner

Error Message


│ ERROR: Registering runner... failed                 runner=Ucz-6Xdm status=couldn't execute POST against https://gitlab.labo.bi/api/v4/runners: Post "https://gitlab.labo.bi/api/v4/runners": tls: failed to verify certificate: x509: cer │
│ PANIC: Failed to register the runner.                                                                                                                                                                                                      │
│ Registration attempt 30 of 30                                                                                                                                                                                                              │
│ Runtime platform                                    arch=amd64 os=linux pid=854 revision=8ec04662 version=16.3.0                                                                                                                           │
│ WARNING: Running in user-mode.                                                                                                                                                                                                             │
│ WARNING: The user-mode requires you to manually start builds processing:                                                                                                                                                                   │
│ WARNING: $ gitlab-runner run                                                                                                                                                                                                               │
│ WARNING: Use sudo for system-mode:                                                                                                                                                                                                         │
│ WARNING: $ sudo gitlab-runner...                                                                                                                                                                                                           │
│                                                                                                                                                                                                                                            │
│ Created missing unique system ID                    system_id=r_lAV5esZXYyzs                                                                                                                                                               │
│ WARNING: Couldn't save new system ID on state file. In order to reliably identify this runner in jobs with a known identifier,                                                                                                             │
│ please ensure there is a text file at the location specified in `state_file` with the contents of `system_id`. Example: echo "r_lAV5esZXYyzs" > "/nonexistent/.gitlab-runner/.runner_system_id"                                            │
│   state_file=/nonexistent/.gitlab-runner/.runner_system_id system_id=r_lAV5esZXYyzs                                                                                                                                                        │
│ Merging configuration from template file "/configmaps/config.template.toml"                                                                                                                                                                │
│ WARNING: Support for registration tokens and runner parameters in the 'register' command has been deprecated in GitLab Runner 15.6 and will be replaced with support for authentication tokens. For more information, see https://gitlab.c │
│ ERROR: Registering runner... failed                 runner=Ucz-6Xdm status=couldn't execute POST against https://gitlab.labo.bi/api/v4/runners: Post "https://gitlab.labo.bi/api/v4/runners": tls: failed to verify certificate: x509: cer │
│ PANIC: Failed to register the runner.