DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
gitlab-runner logoHELM

gitlab-runner

Helm chart
Last changed
Request a free trial

Contact our team to test out this Helm chart and related images for free. Please also indicate any other images you would like to evaluate.

Overview
Chart tags
Default values
Chart metadata
Images

Tag:
Compare:

1
## Configure namespace where the GitLab Runner deployment will be created
2
## By default, the runner deployment uses the Release namespace (.Release.Namespace)
3
## Set this value to override and deploy the runner in a different namespace
4
## This allows separation between runner management (this namespace) and job execution (runners.jobNamespace)
5
##
6
## Example: Deploy runner in "ops" namespace while jobs run in "gitlab" namespace
7
# namespace: ""
8
9
## GitLab Runner Image
10
##
11
## By default it's using registry.gitlab.com/gitlab-org/gitlab-runner:alpine-v{VERSION}
12
## where {VERSION} is taken from Chart.yaml from appVersion field
13
##
14
## ref: https://gitlab.com/gitlab-org/gitlab-runner/container_registry/29383?orderBy=NAME&sort=asc&search[]=alpine-v&search[]=
15
##
16
## Note: If you change the image to the ubuntu release
17
## don't forget to change the securityContext;
18
## these images run on different user IDs.
19
##
20
image:
21
registry: cgr.dev
22
repository: chainguard-private/gitlab-runner
23
# tag: alpine-v{{.Chart.AppVersion}}
24
25
tag: 19.6.1-r1@sha256:a44d2de4f64d83787668a831bd42c31371b973e822276451268dc484e48a8c27
26
## DEPRECATED: use `image.repository` instead.
27
## Kept for backward compatibility: when `image.image` is set it overrides
28
## `image.repository`, so existing overrides keep working across upgrades.
29
## Remove it from your values once you have switched to `image.repository`.
30
# image: gitlab-org/gitlab-runner
31
32
## When using GitLab Runner Helm Chart with gitlab-runner-ubi-images (https://gitlab.com/gitlab-org/ci-cd/gitlab-runner-ubi-images/container_registry)
33
## the installation fails because `dumb-init` is not packaged in the image. However, `tini` is present.
34
## This configuration will allow gitlab-runner-ubi-images users to explicitly enable the use of `tini` instead of `dumb-init`
35
useTini: false
36
## Specify a imagePullPolicy for the main runner deployment
37
## 'Always' if image.tag is 'latest', else set to 'IfNotPresent'
38
##
39
## Note: it does not apply to job containers launched by this executor.
40
## Use `pull_policy` in [runners.kubernetes] to change it.
41
##
42
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
43
##
44
imagePullPolicy: IfNotPresent
45
## Specifying ImagePullSecrets on a Pod
46
## Kubernetes supports specifying container image registry keys on a Pod.
47
## ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
48
##
49
# imagePullSecrets:
50
# - name: "image-pull-secret"
51
52
## Timeout, in seconds, for liveness and readiness probes of a runner pod.
53
# probeTimeoutSeconds: 4
54
55
## Configure the livenessProbe. The probe runs `gitlab-runner verify` and
56
## fails when GitLab is unreachable; set enabled to false to keep an
57
## unreachable GitLab from restarting the runner pod.
58
livenessProbe: {}
59
# enabled: true
60
# initialDelaySeconds: 60
61
# periodSeconds: 60
62
# successThreshold: 1
63
# failureThreshold: 3
64
# terminationGracePeriodSeconds: 30
65
66
## Configure the readinessProbe
67
readinessProbe: {}
68
# initialDelaySeconds: 60
69
# periodSeconds: 60
70
# successThreshold: 1
71
# failureThreshold: 3
72
73
## Configure an optional startupProbe.
74
##
75
## Useful when the runner does work at boot (e.g. a deeper health check that
76
## dispatches a synthetic job) that should complete before the pod accepts
77
## traffic. While the startupProbe is running, kubelet does not run the
78
## liveness or readiness probes, so during a rolling update the new pod
79
## stays NotReady — and the old pod isn't terminated — until startupProbe
80
## passes. Specify the full Kubernetes probe spec.
81
##
82
## The example below uses the built-in `/health/ready` endpoint available
83
## since GitLab Runner 19.2, which gates readiness on the boot-time canary
84
## (opt in per runner via `[runners.experimental.boot_verify]` in the runner
85
## configuration; experimental). It is served by the
86
## metrics/debug server, so `metrics.enabled` must be set to `true` and the
87
## probe port must match `metrics.port`. You can also point the probe at any
88
## endpoint you provide yourself.
89
##
90
# startupProbe:
91
# httpGet:
92
# path: /health/ready
93
# port: 9252
94
# periodSeconds: 10
95
# failureThreshold: 30
96
startupProbe: {}
97
## How many runner pods to launch.
98
##
99
# replicas: 1
100
101
## How many old ReplicaSets for this Deployment you want to retain
102
# revisionHistoryLimit: 10
103
104
## The GitLab Server URL (with protocol) that want to register the runner against
105
## ref: https://docs.gitlab.com/runner/commands/index.html#gitlab-runner-register
106
##
107
# gitlabUrl: https://gitlab.your-domain.com/
108
109
## The Runner Token for adding new Runners to the GitLab Server. This must
110
## be retrieved from your GitLab instance. It is the token of an already registered runner.
111
## ref: (we don't have docs for that yet, but we want to use an existing token)
112
##
113
# runnerToken: ""
114
#
115
116
## Unregister all runners before termination
117
##
118
## Updating the runner's chart version or configuration will cause the runner container
119
## to be terminated and created again. This may cause your Gitlab instance to reference
120
## non-existant runners. Un-registering the runner before termination mitigates this issue.
121
## ref: https://docs.gitlab.com/runner/commands/index.html#gitlab-runner-unregister
122
##
123
## This property ensures that all the Runners present in the local config.toml are unregistered when the chart is uninstalled
124
## - If the token is prefixed with `glrt-` (meaning the runner was created in the UI or API),
125
## the unregisterRunners property deletes the runner manager, not the runner.
126
## The runner manager is identified by the runner and the machine that contains the config.toml.
127
unregisterRunners: true
128
## When stopping the runner, give it time to wait for its jobs to terminate.
129
##
130
## Updating the runner's chart version or configuration will cause the runner container
131
## to be terminated with a graceful stop request. terminationGracePeriodSeconds
132
## instructs Kubernetes to wait long enough for the runner pod to terminate gracefully.
133
## ref: https://docs.gitlab.com/runner/commands/#signals
134
terminationGracePeriodSeconds: 3600
135
## Set the certsSecretName in order to pass custom certficates for GitLab Runner to use.
136
## Provide resource name for a Kubernetes Secret Object in the same namespace,
137
## this is used to populate the /home/gitlab-runner/.gitlab-runner/certs/ directory
138
## ref: https://docs.gitlab.com/runner/configuration/tls-self-signed.html#supported-options-for-self-signed-certificates-targeting-the-gitlab-server
139
##
140
# certsSecretName:
141
142
## Configure the maximum number of concurrent jobs
143
## ref: https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-global-section
144
##
145
concurrent: 10
146
## Number of seconds until the forceful shutdown operation times out and exits the process.
147
## ref: https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-global-section
148
##
149
shutdown_timeout: 0
150
## Defines in seconds how often to check GitLab for new builds
151
## ref: https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-global-section
152
##
153
checkInterval: 3
154
## Configure GitLab Runner's logging level. Available values are: debug, info, warn, error, fatal, panic
155
## ref: https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-global-section
156
##
157
# logLevel:
158
159
## Configure GitLab Runner's logging format. Available values are: runner, text, json
160
## ref: https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-global-section
161
##
162
# logFormat:
163
164
## Configure GitLab Runner's Sentry DSN.
165
## ref https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-global-section
166
##
167
# sentryDsn:
168
169
## Configure GitLab Runner's maximum connection age for TLS keepalive connections.
170
## ref https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-global-section
171
##
172
# connectionMaxAge: "15m"
173
174
## A custom bash script that will be executed prior to the invocation of the
175
## gitlab-runner process
176
#
177
#preEntrypointScript: |
178
# echo "hello"
179
180
## Specify whether the runner should start the session server.
181
## Defaults to false
182
## ref:
183
##
184
## When sessionServer is enabled, the user can either provide a public publicIP
185
## or rely on the external IP auto discovery.
186
## When a serviceAccountName is used with the automounting to the pod disabled,
187
## we recommend the usage of the publicIP
188
sessionServer:
189
enabled: false
190
# annotations: {}
191
# labels: {}
192
# timeout: 1800
193
# internalPort: 8093
194
# externalPort: 9000
195
196
#In case sessionServer.serviceType is NodePort. If not defined, auto NodePort will be assigned.
197
# nodePort: 30093
198
199
# publicIP: ""
200
# loadBalancerSourceRanges:
201
# - 1.2.3.4/32
202
203
#Valid values: ClusterIP, Headless, NodePort, LoadBalancer
204
serviceType: LoadBalancer
205
## Specify the services external traffic policy
206
##
207
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-policies
208
##
209
# externalTrafficPolicy:
210
211
## Specify the services internal traffic policy
212
##
213
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-policies
214
##
215
# internalTrafficPolicy:
216
217
# if enabled, sessionServer.publicIP variable should be set to the host e.g. runner1.example.com
218
ingress:
219
enabled: false
220
className: ""
221
annotations: {}
222
tls:
223
- secretName: gitlab-runner-session-server
224
## For RBAC support:
225
rbac:
226
## Specifies whether a Role and RoleBinding should be created
227
## If this value is set to `true`, `serviceAccount.create` should also be set to either `true` or `false`
228
##
229
create: false
230
## Define the generated serviceAccountName when create is set to true
231
## It defaults to "gitlab-runner.fullname" if not provided
232
## DEPRECATED: Please use `serviceAccount.name` instead
233
generatedServiceAccountName: ""
234
## Define list of rules to be added to the rbac role permissions.
235
## Each rule supports the keys:
236
## - apiGroups: default "" (indicates the core API group) if missing or empty.
237
## - resources: default "*" if missing or empty.
238
## - verbs: default "*" if missing or empty.
239
## Rendering fails if a rule sets another key, such as resourceNames or nonResourceURLs.
240
##
241
## Read more about the recommended rules on the following link
242
##
243
## ref: https://docs.gitlab.com/runner/executors/kubernetes/index.html#configure-runner-api-permissions
244
##
245
rules: []
246
# - resources: ["events"]
247
# verbs: ["list", "watch"]
248
# - resources: ["namespaces"]
249
# verbs: ["create", "delete"]
250
# - resources: ["pods"]
251
# verbs: ["create","delete","get"]
252
# - apiGroups: [""]
253
# resources: ["pods/attach","pods/exec"]
254
# verbs: ["get","create","patch","delete"]
255
# - apiGroups: [""]
256
# resources: ["pods/log"]
257
# verbs: ["get","list"]
258
# - resources: ["secrets"]
259
# verbs: ["create","delete","get","update"]
260
# - resources: ["serviceaccounts"]
261
# verbs: ["get"]
262
# - resources: ["services"]
263
# verbs: ["create","get"]
264
265
## Run the gitlab-bastion container with the ability to deploy/manage containers of jobs
266
## cluster-wide or only within namespace
267
clusterWideAccess: false
268
## Use the following Kubernetes Service Account name if RBAC is disabled in this Helm chart (see rbac.create)
269
## DEPRECATED: Please use `serviceAccount.name` instead
270
##
271
# serviceAccountName: default
272
273
## Specify annotations for Service Accounts, useful for annotations such as eks.amazonaws.com/role-arn.
274
## Values may refer to other values as the _tpl_ function is implicitly applied. Mind the quotes when using this, e.g.
275
## serviceAccountAnnotations:
276
## eks.amazonaws.com/role-arn: "arn:aws:iam::{{ .Values.global.accountId }}:role/{{ .Values.global.iamRoleName }}"
277
##
278
## ref: https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html
279
##
280
## DEPRECATED: Please use `serviceAccount.annotations` instead
281
##
282
serviceAccountAnnotations: {}
283
## Use podSecurity Policy
284
## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
285
podSecurityPolicy:
286
enabled: false
287
resourceNames:
288
- gitlab-runner
289
## Specify one or more imagePullSecrets used for pulling the runner image
290
##
291
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account
292
##
293
## DEPRECATED: Please use `serviceAccount.imagePullSecrets` instead
294
##
295
imagePullSecrets: []
296
## Configure ServiceAccount
297
##
298
serviceAccount:
299
## Specifies whether a ServiceAccount should be created
300
##
301
## TODO: Set default to `false`
302
# create: false
303
## The name of the ServiceAccount to use.
304
## If not set and create is `true`, a name is generated using the `gitlab-runner.fullname`` template
305
##
306
name: ""
307
## Additional custom annotations for the ServiceAccount, useful for annotations such as eks.amazonaws.com/role-arn.
308
## Values may refer other values as the _tpl_ function is implicitly applied. Mind the quotes when using this, e.g.
309
## serviceAccountAnnotations:
310
## eks.amazonaws.com/role-arn: "arn:aws:iam::{{ .Values.global.accountId }}:role/{{ .Values.global.iamRoleName }}"
311
##
312
## ref: https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html
313
##
314
annotations: {}
315
## Specify one or more imagePullSecrets used for pulling the runner image
316
##
317
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account
318
##
319
imagePullSecrets: []
320
## Configure integrated Prometheus metrics exporter
321
##
322
## ref: https://docs.gitlab.com/runner/monitoring/#configuration-of-the-metrics-http-server
323
##
324
metrics:
325
enabled: false
326
## Define a name for the metrics port
327
##
328
portName: metrics
329
## Provide a port number for the integrated Prometheus metrics exporter
330
##
331
port: 9252
332
## Add prometheus.io/scrape and prometheus.io/port annotations to the
333
## runner pod. Disable when a podMonitor or serviceMonitor scrapes the pod,
334
## so Prometheus does not scrape it twice. A key set in podAnnotations
335
## overrides the matching default annotation.
336
##
337
prometheusAnnotations:
338
enabled: true
339
## Configure a prometheus-operator serviceMonitor to allow autodetection of
340
## the scraping target. Requires enabling the service resource below.
341
##
342
## DEPRECATED: Use podMonitor instead. ServiceMonitor requires a Service and
343
## cannot collect metrics during graceful shutdown when pods are marked NotReady.
344
##
345
serviceMonitor:
346
enabled: false
347
## Namespace where ServiceMonitor should be installed. Defaults to the
348
## same namespace where the release will be installed.
349
##
350
namespace: ""
351
## Provide additional labels to the service monitor resource
352
##
353
## labels: {}
354
## Provide annotations to the service monitor ressource
355
##
356
## annotations: {}
357
358
## Define a scrape interval (otherwise prometheus default is used)
359
##
360
## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
361
##
362
# interval: ""
363
364
## Specify the scrape protocol scheme e.g., https or http
365
##
366
# scheme: "http"
367
368
## Supply a tls configuration for the service monitor
369
##
370
## ref: https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/charts/crds/crds/crd-servicemonitors.yaml
371
##
372
# tlsConfig: {}
373
374
## The URI path where prometheus metrics can be scraped from
375
##
376
# path: "/metrics"
377
378
## A list of MetricRelabelConfigs to apply to samples before ingestion
379
##
380
## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs
381
##
382
# metricRelabelings: []
383
384
## A list of RelabelConfigs to apply to samples before scraping
385
##
386
## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
387
##
388
## relabelings: []
389
390
## Configure a prometheus-operator podMonitor to scrape metrics directly from pods.
391
##
392
## RECOMMENDED: PodMonitor is the preferred method for collecting metrics as it:
393
## - Scrapes metrics directly from pods without requiring a Service
394
## - Continues to collect metrics during graceful shutdown when pods are marked NotReady
395
## - Provides better visibility into shutdown metrics and termination behavior
396
##
397
podMonitor:
398
enabled: false
399
## Namespace where PodMonitor should be installed. Defaults to the
400
## same namespace where the release will be installed.
401
##
402
namespace: ""
403
## Provide additional labels to the pod monitor resource
404
##
405
## labels: {}
406
## Provide annotations to the pod monitor resource
407
##
408
## annotations: {}
409
410
## Define a scrape interval (otherwise prometheus default is used)
411
##
412
## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
413
##
414
# interval: ""
415
416
## Specify the scrape protocol scheme e.g., https or http
417
##
418
# scheme: "http"
419
420
## Supply a tls configuration for the pod monitor
421
##
422
## ref: https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/charts/crds/crds/crd-podmonitors.yaml
423
##
424
# tlsConfig: {}
425
426
## The URI path where prometheus metrics can be scraped from
427
##
428
# path: "/metrics"
429
430
## A list of MetricRelabelConfigs to apply to samples before ingestion
431
##
432
## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs
433
##
434
# metricRelabelings: []
435
436
## A list of RelabelConfigs to apply to samples before scraping
437
##
438
## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
439
##
440
## relabelings: []
441
442
## Configure a service resource (optional, only needed if using the deprecated
443
## ServiceMonitor instead of the recommended PodMonitor)
444
service:
445
enabled: false
446
## Provide additonal labels for the service
447
##
448
# labels: {}
449
450
## Provide additonal annotations for the service
451
##
452
# annotations: {}
453
454
## Define a specific ClusterIP if you do not want a dynamic one
455
##
456
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
457
##
458
# clusterIP: ""
459
460
## Define a list of one or more external IPs for this service
461
##
462
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
463
##
464
# externalIPs: []
465
466
## Provide a specific loadbalancerIP e.g., of an external Loadbalancer
467
##
468
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
469
##
470
# loadBalancerIP: ""
471
472
## Provide a list of source IP ranges to have access to this service
473
##
474
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#aws-nlb-support
475
##
476
# loadBalancerSourceRanges: []
477
478
## Specify the service type e.g., ClusterIP, NodePort, LoadBalancer or ExternalName
479
##
480
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
481
##
482
type: ClusterIP
483
## Specify the services metrics nodeport if you use a service of type nodePort
484
##
485
# metrics:
486
## Specify the node port under which the prometheus metrics of the runner are made
487
## available.
488
##
489
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#nodeport
490
##
491
# nodePort: ""
492
493
## Provide a list of additional ports to be exposed by this service
494
##
495
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
496
##
497
# additionalPorts: []
498
499
## Specify the services external traffic policy
500
##
501
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-policies
502
##
503
# externalTrafficPolicy:
504
505
## Specify the services internal traffic policy
506
##
507
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-policies
508
##
509
# internalTrafficPolicy:
510
511
## Configuration for the Pods that the runner launches for each new job
512
##
513
runners:
514
## Configure namespace where GitLab Runner job pods will be created
515
## By default, job pods use the Release namespace (.Release.Namespace)
516
## Set this value to run jobs in a different namespace than the runner deployment
517
## This enables separation between runner management and job execution
518
##
519
## Example: Runner in "ops" namespace, jobs in "gitlab" namespace
520
# jobNamespace: ""
521
522
# runner configuration, where the multi line string is evaluated as a
523
# template so you can specify helm values inside of it.
524
#
525
# tpl: https://helm.sh/docs/howto/charts_tips_and_tricks/#using-the-tpl-function
526
# runner configuration: https://docs.gitlab.com/runner/configuration/advanced-configuration.html
527
# Example: to enable user namespaces under [runners.kubernetes]:
528
# host_users = false
529
# host_users_overwrite_allowed = false
530
config: |
531
[[runners]]
532
[runners.kubernetes]
533
namespace = "{{ default .Release.Namespace .Values.runners.jobNamespace }}"
534
image = "alpine"
535
## Enable or disable user namespaces for Kubernetes executor build pods.
536
## When set to false, build pods run in separate user namespaces.
537
## When set to true, build pods share the host's user namespace.
538
## When unset, the cluster default is used.
539
## Requires the UserNamespacesSupport feature gate (on by default in Kubernetes 1.33+)
540
## and a node runtime that supports user namespaces (introduced in Kubernetes 1.25).
541
## If the gate is off, this setting is ignored without an error.
542
## Note: when 'host_users' is defined in runners.config or when runners.configOverride
543
## is used, this setting is ignored in favor of the configuration TOML.
544
## ref: https://kubernetes.io/docs/concepts/workloads/pods/user-namespaces/
545
##
546
# hostUsers: false
547
548
## Authorize builds to overwrite runner 'host_users' configuration via KUBERNETES_HOST_USERS variable.
549
## When set to true, allows CI jobs to set KUBERNETES_HOST_USERS.
550
## Setting to false does not inject an environment variable because false is the default
551
## in GitLab Runner and cannot override host_users_overwrite_allowed = true in runners.config.
552
## To disable overwrite when runners.config defines it, set host_users_overwrite_allowed = false
553
## directly in runners.config.
554
## Note: this setting has no effect when runners.configOverride is used;
555
## configure host_users_overwrite_allowed under [runners.kubernetes] in the configOverride TOML instead.
556
##
557
# hostUsersOverwriteAllowed: false
558
559
## Absolute path for an existing runner configuration file
560
## Can be used alongside "volumes" and "volumeMounts" to use an external config file
561
## Active if runners.config is empty or null
562
configPath: ""
563
## When set, written verbatim as the runner's config.toml and `gitlab-runner
564
## register` is skipped on boot. The supplied TOML is passed through `tpl`,
565
## so Helm values can be interpolated as usual.
566
##
567
## configOverride must be a COMPLETE config.toml: it replaces the rendered
568
## config in its entirety, so the following chart values have NO effect and
569
## must be expressed directly in the TOML (or omitted):
570
##
571
## - concurrent, checkInterval, shutdown_timeout, logLevel, logFormat,
572
## sentryDsn, connectionMaxAge
573
## - metrics.enabled / metrics.port (set `listen_address = ":<port>"`)
574
## - sessionServer.* (write [session_server] directly; placeholder
575
## substitution is also skipped)
576
## - runners.config, runners.configPath
577
## - runners.name, runners.tags, runners.locked, runners.protected,
578
## runners.runUntagged, runners.maximumTimeout, runners.executor,
579
## runners.jobNamespace, runners.hostUsers,
580
## runners.hostUsersOverwriteAllowed
581
## - gitlabUrl (set `url = "..."` under [[runners]])
582
## - runnerRegistrationToken / runnerToken (the token lives in the TOML or
583
## is injected via extraEnv / extraEnvFromRefs / secrets)
584
##
585
## Pod-level values (extraEnv, secrets, certsSecretName, volumes, RBAC,
586
## metrics Service/PodMonitor, ...) are unaffected.
587
##
588
## On boot the entrypoint runs `gitlab-runner verify --url=` so an invalid
589
## token fails loudly instead of producing a runner that never picks up jobs.
590
##
591
# configOverride: |
592
# concurrent = 10
593
# check_interval = 3
594
# log_level = "info"
595
#
596
# [[runners]]
597
# name = "my-runner"
598
# url = "https://gitlab.example.com/"
599
# token = "glrt-xxxxxxxxxxxxxxxxxxxx"
600
# executor = "kubernetes"
601
# [runners.kubernetes]
602
# namespace = "gitlab-runner"
603
# image = "alpine"
604
# host_users = false
605
# host_users_overwrite_allowed = false
606
607
## Which executor should be used
608
##
609
# executor: kubernetes
610
611
## Specify the name for the runner.
612
##
613
# name: ""
614
615
## The name of the secret containing runner-token and runner-registration-token
616
# secret: gitlab-runner
617
618
## Distributed runners caching
619
## ref: https://docs.gitlab.com/runner/configuration/autoscale.html#distributed-runners-caching
620
##
621
## If you want to use s3 based distributing caching:
622
## First of all you need to uncomment General settings and S3 settings sections.
623
##
624
## Create a secret 's3access' containing 'accesskey' & 'secretkey'
625
## ref: https://aws.amazon.com/blogs/security/wheres-my-secret-access-key/
626
##
627
## $ kubectl create secret generic s3access \
628
## --from-literal=accesskey="YourAccessKey" \
629
## --from-literal=secretkey="YourSecretKey"
630
## ref: https://kubernetes.io/docs/concepts/configuration/secret/
631
##
632
## If you want to use gcs based distributing caching:
633
## First of all you need to uncomment General settings and GCS settings sections.
634
##
635
## Access using credentials file:
636
## Create a secret 'google-application-credentials' containing your application credentials file.
637
## ref: https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnerscachegcs-section
638
## You could configure
639
## $ kubectl create secret generic google-application-credentials \
640
## --from-file=gcs-application-credentials-file=./path-to-your-google-application-credentials-file.json
641
## ref: https://kubernetes.io/docs/concepts/configuration/secret/
642
##
643
## Access using access-id and private-key:
644
## Create a secret 'gcsaccess' containing 'gcs-access-id' & 'gcs-private-key'.
645
## ref: https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnerscachegcs-section
646
## You could configure
647
## $ kubectl create secret generic gcsaccess \
648
## --from-literal=gcs-access-id="YourAccessID" \
649
## --from-literal=gcs-private-key="YourPrivateKey"
650
## ref: https://kubernetes.io/docs/concepts/configuration/secret/
651
##
652
## If you want to use Azure-based distributed caching:
653
## First, uncomment General settings.
654
##
655
## Create a secret 'azureaccess' containing 'azure-account-name' & 'azure-account-key'
656
## ref: https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction
657
##
658
## $ kubectl create secret generic azureaccess \
659
## --from-literal=azure-account-name="YourAccountName" \
660
## --from-literal=azure-account-key="YourAccountKey"
661
## ref: https://kubernetes.io/docs/concepts/configuration/secret/
662
cache: {}
663
## S3 the name of the secret.
664
# secretName: s3access
665
## Use this line for access using gcs-access-id and gcs-private-key
666
# secretName: gcsaccess
667
## Use this line for access using google-application-credentials file
668
# secretName: google-application-credentials
669
## Use this line for access using Azure with azure-account-name and azure-account-key
670
# secretName: azureaccess
671
##
672
## When using cloud-native auth (e.g. Workload Identity) with the docker+machine
673
## executor, set this to true to prevent the chart's entrypoint from globally
674
## exporting cache credential env vars (CACHE_S3_*, GOOGLE_APPLICATION_CREDENTIALS,
675
## CACHE_GCS_*, CACHE_AZURE_*). This allows subprocesses (e.g. docker-machine)
676
## to use their own identity instead of inheriting the cache credentials.
677
##
678
## When this flag is set to true, you MUST configure cache credentials explicitly
679
## in runners.config under [runners.cache.*], for example:
680
## [runners.cache.gcs]
681
## CredentialsFile = "/secrets/gcs-application-credentials-file"
682
## BucketName = "my-cache-bucket"
683
## Otherwise the runner will not be able to access the cache.
684
##
685
## ref: https://gitlab.com/gitlab-com/gl-infra/production-engineering/-/work_items/28874
686
# disableGlobalCredentialsExport: false
687
## Specify the name of the scheduler which is used to schedule runner pods.
688
## Kubernetes supports multiple scheduler configurations.
689
## ref: https://kubernetes.io/docs/reference/scheduling
690
# schedulerName: "my-custom-scheduler"
691
692
## Configure securitycontext for the main container
693
## ref: https://kubernetes.io/docs/concepts/security/pod-security-standards/
694
##
695
securityContext:
696
allowPrivilegeEscalation: false
697
readOnlyRootFilesystem: false
698
runAsNonRoot: true
699
privileged: false
700
capabilities:
701
drop: ["ALL"]
702
## Configure update strategy for multi-replica deployments
703
## Kubernetes supports types Recreate, and RollingUpdate
704
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
705
##
706
strategy: {}
707
# rollingUpdate:
708
# maxSurge: 1
709
# maxUnavailable: 0
710
# type: RollingUpdate
711
712
## Configure securitycontext valid for the whole pod
713
## ref: https://kubernetes.io/docs/concepts/security/pod-security-standards/
714
##
715
podSecurityContext:
716
runAsUser: 100
717
# runAsGroup: 65533
718
fsGroup: 65533
719
# supplementalGroups: [65533]
720
## Note: values for the ubuntu image:
721
# runAsUser: 999
722
# fsGroup: 999
723
724
## Configure hostUsers for the runner manager pod
725
## When set to false, enables User Namespaces for the pod.
726
## Requires the UserNamespacesSupport feature gate (on by default in Kubernetes 1.33+)
727
## and a node runtime that supports user namespaces (introduced in Kubernetes 1.25).
728
## If the gate is off, this setting is ignored without an error.
729
## ref: https://kubernetes.io/docs/concepts/workloads/pods/user-namespaces/
730
##
731
# hostUsers: false
732
733
## Configure resource requests and limits
734
## ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
735
##
736
resources: {}
737
# limits:
738
# memory: 256Mi
739
# cpu: 200m
740
# ephemeral-storage: 512Mi
741
# requests:
742
# memory: 128Mi
743
# cpu: 100m
744
# ephemeral-storage: 256Mi
745
746
## Affinity for pod assignment
747
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
748
##
749
affinity: {}
750
## TopologySpreadConstraints for pod assignment
751
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
752
##
753
topologySpreadConstraints: {}
754
# Example: The gitlab runner should be evenly spread across zones
755
# - maxSkew: 1
756
# topologyKey: zone
757
# whenUnsatisfiable: DoNotSchedule
758
# labelSelector:
759
# matchLabels:
760
# foo: bar
761
762
## RuntimeClass name for pod assignment
763
## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
764
##
765
runtimeClassName: ""
766
# Example: Once RuntimeClasses are configured for the cluster, you can specify it.
767
# runtimeClassName: myclass
768
769
## Node labels for pod assignment
770
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
771
##
772
nodeSelector: {}
773
# Example: The gitlab runner manager should not run on spot instances so you can assign
774
# them to the regular worker nodes only.
775
# node-role.kubernetes.io/worker: "true"
776
777
## List of node taints to tolerate (requires Kubernetes >= 1.6)
778
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
779
##
780
tolerations: []
781
# Example: Regular worker nodes may have a taint, thus you need to tolerate the taint
782
# when you assign the gitlab runner manager with nodeSelector or affinity to the nodes.
783
# - key: "node-role.kubernetes.io/worker"
784
# operator: "Exists"
785
786
## Configure environment variables that will be present when the registration command runs
787
## This provides further control over the registration process and the config.toml file
788
## ref: `gitlab-runner register --help`
789
## ref: https://docs.gitlab.com/runner/configuration/advanced-configuration.html
790
##
791
# envVars:
792
# - name: RUNNER_EXECUTOR
793
# value: kubernetes
794
795
## Additional environment variables from key-value pairs.
796
extraEnv: {}
797
# CACHE_S3_SERVER_ADDRESS: s3.amazonaws.com
798
# CACHE_S3_BUCKET_NAME: runners-cache
799
# CACHE_S3_BUCKET_LOCATION: us-east-1
800
# CACHE_SHARED: true
801
802
## Additional environment variables from other data sources
803
extraEnvFrom: {}
804
# CACHE_S3_ACCESS_KEY:
805
# secretKeyRef:
806
# name: s3access
807
# key: accesskey
808
# CACHE_S3_SECRET_KEY:
809
# secretKeyRef:
810
# name: s3access
811
# key: secretkey
812
813
## Additional environment variables refs
814
extraEnvFromRefs: []
815
# - secretRef:
816
# name: gitlab-runner-cache-config
817
818
## list of hosts and IPs that will be injected into the pod's hosts file
819
hostAliases: []
820
# Example:
821
# - ip: "127.0.0.1"
822
# hostnames:
823
# - "foo.local"
824
# - "bar.local"
825
# - ip: "10.1.2.3"
826
# hostnames:
827
# - "foo.remote"
828
# - "bar.remote"
829
830
## Annotations to be added to deployment
831
##
832
deploymentAnnotations: {}
833
# Example:
834
# downscaler/uptime: <my_uptime_period>
835
836
## Labels to be added to deployment
837
##
838
deploymentLabels: {}
839
# Example:
840
# owner.team: <my_cool_team>
841
# owner.team: "{{ .Values.team }}"
842
# tags.{{ .Values.tag }}/env: "{{ .Values.environment }}"
843
844
## Init containers to be added to deployment
845
##
846
deploymentInitContainers: []
847
# Example
848
# - name: init-container
849
# image: busybox:latest
850
# command: ['sh', '-c', 'sleep 5']
851
852
## Lifecycle options to be added to deployment
853
##
854
deploymentLifecycle: {}
855
# Example
856
# preStop:
857
# exec:
858
# command: ["/bin/sh", "-c", "echo 'shutting down'"]
859
860
## Set hostname for runner pods
861
#hostname: my-gitlab-runner
862
863
## Annotations to be added to manager pod
864
##
865
podAnnotations: {}
866
# Example:
867
# iam.amazonaws.com/role: <my_role_arn>
868
869
## Labels to be added to manager pod
870
##
871
## Supports templating
872
podLabels: {}
873
# Example:
874
# owner.team: <my_cool_team>
875
# owner.team: "{{ .Values.team }}"
876
# tags.{{ .Values.tag }}/env: "{{ .Values.environment }}"
877
878
## PodDisruptionBudget for the runner manager Deployment. Only meaningful
879
## with multiple manager replicas.
880
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
881
##
882
# podDisruptionBudget: {}
883
# maxUnavailable: 1
884
885
## HPA support for custom metrics:
886
## This section enables runners to autoscale based on defined custom metrics.
887
## In order to use this functionality, you need to enable a custom metrics API server by
888
## implementing "custom.metrics.k8s.io" using supported third party adapter
889
## Example: https://github.com/directxman12/k8s-prometheus-adapter
890
##
891
# hpa: {}
892
# minReplicas: 1
893
# maxReplicas: 10
894
# metrics:
895
# - type: Pods
896
# pods:
897
# metricName: gitlab_runner_jobs
898
# targetAverageValue: 400m
899
900
## Configure priorityClassName for manager pod. See k8s docs for more info on how pod priority works:
901
## https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
902
priorityClassName: ""
903
## Secrets to be additionally mounted to the containers.
904
## All secrets are mounted through init-runner-secrets volume
905
## and placed as readonly at /init-secrets in the init container
906
## and finally copied to an in-memory volume runner-secrets that is
907
## mounted at /secrets.
908
secrets: []
909
# Example:
910
# - name: my-secret
911
# - name: myOtherSecret
912
# items:
913
# - key: key_one
914
# path: path_one
915
916
## Boolean to turn off the automountServiceAccountToken in the deployment
917
## ref: https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/#bound-service-account-token-volume
918
##
919
# automountServiceAccountToken: false
920
921
## Additional config files to mount in the containers in `/configmaps`.
922
##
923
## Please note that a number of keys are reserved by the runner.
924
## See https://gitlab.com/gitlab-org/charts/gitlab-runner/-/blob/main/templates/configmap.yaml
925
## for a current list.
926
configMaps: {}
927
## Labels to be added to configMaps
928
##
929
## Supports templating
930
configMapLabels: {}
931
# Example:
932
# owner.team: <my_cool_team>
933
# owner.team: "{{ .Values.team }}"
934
# tags.{{ .Values.tag }}/env: "{{ .Values.environment }}"
935
936
## Additional volumeMounts to add to the runner container
937
##
938
volumeMounts: []
939
# Example:
940
# - name: my-volume
941
# mountPath: /mount/path
942
943
## Additional volumes to add to the runner deployment
944
##
945
volumes: []
946
# Example:
947
# - name: my-volume
948
# persistentVolumeClaim:
949
# claimName: my-pvc
950
951
## Array of extra K8s manifests to deploy
952
##
953
extraObjects: []
954
# - apiVersion: external-secrets.io/v1
955
# kind: ExternalSecret
956
# metadata:
957
# name: '{{ include "gitlab-runner.secret" . }}'
958
# spec:
959
# refreshInterval: 1h
960
# secretStoreRef:
961
# kind: SecretStore
962
# name: my-secret-store
963
# target:
964
# template:
965
# data:
966
# runner-registration-token: "" # need to leave as an empty string for compatibility reasons
967
# runner-token: "{{`{{ .runnerToken }}`}}"
968
# dataFrom:
969
# - extract:
970
# key: my-secret-store-secret
971
972
## Add additional containers to the Pod, e.g. to run as sidecars.
973
##
974
## Example:
975
# - name: docker
976
# image: docker:20.10-dind
977
# securityContext:
978
# privileged: true
979
# volumeMounts:
980
# - mountPath: /var/run/
981
# name: dind-socket
982
# lifecycle:
983
# postStart:
984
# exec:
985
# command: [ "sh", "-c", "until docker info; do sleep 1; done;" ]
986
extraContainers: []
987

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.