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)
6## Example: Deploy runner in "ops" namespace while jobs run in "gitlab" namespace
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
14## ref: https://gitlab.com/gitlab-org/gitlab-runner/container_registry/29383?orderBy=NAME&sort=asc&search[]=alpine-v&search[]=
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.
22 repository: chainguard-private/gitlab-runner
23 # tag: alpine-v{{.Chart.AppVersion}}
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
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`
36## Specify a imagePullPolicy for the main runner deployment
37## 'Always' if image.tag is 'latest', else set to 'IfNotPresent'
39## Note: it does not apply to job containers launched by this executor.
40## Use `pull_policy` in [runners.kubernetes] to change it.
42## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
44imagePullPolicy: 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
50# - name: "image-pull-secret"
52## Timeout, in seconds, for liveness and readiness probes of a runner pod.
53# probeTimeoutSeconds: 4
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.
60# initialDelaySeconds: 60
64# terminationGracePeriodSeconds: 30
66## Configure the readinessProbe
68# initialDelaySeconds: 60
73## Configure an optional startupProbe.
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.
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.
97## How many runner pods to launch.
101## How many old ReplicaSets for this Deployment you want to retain
102# revisionHistoryLimit: 10
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
107# gitlabUrl: https://gitlab.your-domain.com/
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)
116## Unregister all runners before termination
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
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.
127unregisterRunners: true
128## When stopping the runner, give it time to wait for its jobs to terminate.
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
134terminationGracePeriodSeconds: 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
142## Configure the maximum number of concurrent jobs
143## ref: https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-global-section
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
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
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
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
164## Configure GitLab Runner's Sentry DSN.
165## ref https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-global-section
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
172# connectionMaxAge: "15m"
174## A custom bash script that will be executed prior to the invocation of the
175## gitlab-runner process
177#preEntrypointScript: |
180## Specify whether the runner should start the session server.
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
196 #In case sessionServer.serviceType is NodePort. If not defined, auto NodePort will be assigned.
200 # loadBalancerSourceRanges:
203 #Valid values: ClusterIP, Headless, NodePort, LoadBalancer
204 serviceType: LoadBalancer
205 ## Specify the services external traffic policy
207 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-policies
209 # externalTrafficPolicy:
211 ## Specify the services internal traffic policy
213 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-policies
215 # internalTrafficPolicy:
217 # if enabled, sessionServer.publicIP variable should be set to the host e.g. runner1.example.com
223 - secretName: gitlab-runner-session-server
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`
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.
241 ## Read more about the recommended rules on the following link
243 ## ref: https://docs.gitlab.com/runner/executors/kubernetes/index.html#configure-runner-api-permissions
246 # - resources: ["events"]
247 # verbs: ["list", "watch"]
248 # - resources: ["namespaces"]
249 # verbs: ["create", "delete"]
250 # - resources: ["pods"]
251 # verbs: ["create","delete","get"]
253 # resources: ["pods/attach","pods/exec"]
254 # verbs: ["get","create","patch","delete"]
256 # resources: ["pods/log"]
257 # verbs: ["get","list"]
258 # - resources: ["secrets"]
259 # verbs: ["create","delete","get","update"]
260 # - resources: ["serviceaccounts"]
262 # - resources: ["services"]
263 # verbs: ["create","get"]
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
271 # serviceAccountName: default
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 }}"
278 ## ref: https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html
280 ## DEPRECATED: Please use `serviceAccount.annotations` instead
282 serviceAccountAnnotations: {}
283 ## Use podSecurity Policy
284 ## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
289 ## Specify one or more imagePullSecrets used for pulling the runner image
291 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account
293 ## DEPRECATED: Please use `serviceAccount.imagePullSecrets` instead
296## Configure ServiceAccount
299 ## Specifies whether a ServiceAccount should be created
301 ## TODO: Set default to `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
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 }}"
312 ## ref: https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html
315 ## Specify one or more imagePullSecrets used for pulling the runner image
317 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account
320## Configure integrated Prometheus metrics exporter
322## ref: https://docs.gitlab.com/runner/monitoring/#configuration-of-the-metrics-http-server
326 ## Define a name for the metrics port
329 ## Provide a port number for the integrated Prometheus metrics exporter
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.
337 prometheusAnnotations:
339 ## Configure a prometheus-operator serviceMonitor to allow autodetection of
340 ## the scraping target. Requires enabling the service resource below.
342 ## DEPRECATED: Use podMonitor instead. ServiceMonitor requires a Service and
343 ## cannot collect metrics during graceful shutdown when pods are marked NotReady.
347 ## Namespace where ServiceMonitor should be installed. Defaults to the
348 ## same namespace where the release will be installed.
351 ## Provide additional labels to the service monitor resource
354 ## Provide annotations to the service monitor ressource
358 ## Define a scrape interval (otherwise prometheus default is used)
360 ## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
364 ## Specify the scrape protocol scheme e.g., https or http
368 ## Supply a tls configuration for the service monitor
370 ## ref: https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/charts/crds/crds/crd-servicemonitors.yaml
374 ## The URI path where prometheus metrics can be scraped from
378 ## A list of MetricRelabelConfigs to apply to samples before ingestion
380 ## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs
382 # metricRelabelings: []
384 ## A list of RelabelConfigs to apply to samples before scraping
386 ## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
390 ## Configure a prometheus-operator podMonitor to scrape metrics directly from pods.
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
399 ## Namespace where PodMonitor should be installed. Defaults to the
400 ## same namespace where the release will be installed.
403 ## Provide additional labels to the pod monitor resource
406## Provide annotations to the pod monitor resource
410## Define a scrape interval (otherwise prometheus default is used)
412## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
416## Specify the scrape protocol scheme e.g., https or http
420## Supply a tls configuration for the pod monitor
422## ref: https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/charts/crds/crds/crd-podmonitors.yaml
426## The URI path where prometheus metrics can be scraped from
430## A list of MetricRelabelConfigs to apply to samples before ingestion
432## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs
434# metricRelabelings: []
436## A list of RelabelConfigs to apply to samples before scraping
438## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
442## Configure a service resource (optional, only needed if using the deprecated
443## ServiceMonitor instead of the recommended PodMonitor)
446 ## Provide additonal labels for the service
450 ## Provide additonal annotations for the service
454 ## Define a specific ClusterIP if you do not want a dynamic one
456 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
460 ## Define a list of one or more external IPs for this service
462 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
466 ## Provide a specific loadbalancerIP e.g., of an external Loadbalancer
468 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
472 ## Provide a list of source IP ranges to have access to this service
474 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#aws-nlb-support
476 # loadBalancerSourceRanges: []
478 ## Specify the service type e.g., ClusterIP, NodePort, LoadBalancer or ExternalName
480 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
483 ## Specify the services metrics nodeport if you use a service of type nodePort
486## Specify the node port under which the prometheus metrics of the runner are made
489## ref: https://kubernetes.io/docs/concepts/services-networking/service/#nodeport
493## Provide a list of additional ports to be exposed by this service
495## ref: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
499## Specify the services external traffic policy
501## ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-policies
503# externalTrafficPolicy:
505## Specify the services internal traffic policy
507## ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-policies
509# internalTrafficPolicy:
511## Configuration for the Pods that the runner launches for each new job
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
519 ## Example: Runner in "ops" namespace, jobs in "gitlab" namespace
522 # runner configuration, where the multi line string is evaluated as a
523 # template so you can specify helm values inside of it.
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]:
529 # host_users_overwrite_allowed = false
533 namespace = "{{ default .Release.Namespace .Values.runners.jobNamespace }}"
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/
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.
557 # hostUsersOverwriteAllowed: false
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
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.
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):
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)
585 ## Pod-level values (extraEnv, secrets, certsSecretName, volumes, RBAC,
586 ## metrics Service/PodMonitor, ...) are unaffected.
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.
598 # url = "https://gitlab.example.com/"
599 # token = "glrt-xxxxxxxxxxxxxxxxxxxx"
600 # executor = "kubernetes"
601 # [runners.kubernetes]
602 # namespace = "gitlab-runner"
605 # host_users_overwrite_allowed = false
607 ## Which executor should be used
609 # executor: kubernetes
611 ## Specify the name for the runner.
615 ## The name of the secret containing runner-token and runner-registration-token
616 # secret: gitlab-runner
618 ## Distributed runners caching
619 ## ref: https://docs.gitlab.com/runner/configuration/autoscale.html#distributed-runners-caching
621 ## If you want to use s3 based distributing caching:
622 ## First of all you need to uncomment General settings and S3 settings sections.
624 ## Create a secret 's3access' containing 'accesskey' & 'secretkey'
625 ## ref: https://aws.amazon.com/blogs/security/wheres-my-secret-access-key/
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/
632 ## If you want to use gcs based distributing caching:
633 ## First of all you need to uncomment General settings and GCS settings sections.
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/
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/
652 ## If you want to use Azure-based distributed caching:
653 ## First, uncomment General settings.
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
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/
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
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.
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.
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"
692## Configure securitycontext for the main container
693## ref: https://kubernetes.io/docs/concepts/security/pod-security-standards/
696 allowPrivilegeEscalation: false
697 readOnlyRootFilesystem: false
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
712## Configure securitycontext valid for the whole pod
713## ref: https://kubernetes.io/docs/concepts/security/pod-security-standards/
719 # supplementalGroups: [65533]
720## Note: values for the ubuntu image:
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/
733## Configure resource requests and limits
734## ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
740# ephemeral-storage: 512Mi
744# ephemeral-storage: 256Mi
746## Affinity for pod assignment
747## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
750## TopologySpreadConstraints for pod assignment
751## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
753topologySpreadConstraints: {}
754# Example: The gitlab runner should be evenly spread across zones
757# whenUnsatisfiable: DoNotSchedule
762## RuntimeClass name for pod assignment
763## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
766# Example: Once RuntimeClasses are configured for the cluster, you can specify it.
767# runtimeClassName: myclass
769## Node labels for pod assignment
770## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
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"
777## List of node taints to tolerate (requires Kubernetes >= 1.6)
778## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
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"
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
792# - name: RUNNER_EXECUTOR
795## Additional environment variables from key-value pairs.
797# CACHE_S3_SERVER_ADDRESS: s3.amazonaws.com
798# CACHE_S3_BUCKET_NAME: runners-cache
799# CACHE_S3_BUCKET_LOCATION: us-east-1
802## Additional environment variables from other data sources
804# CACHE_S3_ACCESS_KEY:
808# CACHE_S3_SECRET_KEY:
813## Additional environment variables refs
816# name: gitlab-runner-cache-config
818## list of hosts and IPs that will be injected into the pod's hosts file
830## Annotations to be added to deployment
832deploymentAnnotations: {}
834# downscaler/uptime: <my_uptime_period>
836## Labels to be added to deployment
840# owner.team: <my_cool_team>
841# owner.team: "{{ .Values.team }}"
842# tags.{{ .Values.tag }}/env: "{{ .Values.environment }}"
844## Init containers to be added to deployment
846deploymentInitContainers: []
848# - name: init-container
849# image: busybox:latest
850# command: ['sh', '-c', 'sleep 5']
852## Lifecycle options to be added to deployment
854deploymentLifecycle: {}
858# command: ["/bin/sh", "-c", "echo 'shutting down'"]
860## Set hostname for runner pods
861#hostname: my-gitlab-runner
863## Annotations to be added to manager pod
867# iam.amazonaws.com/role: <my_role_arn>
869## Labels to be added to manager pod
871## Supports templating
874# owner.team: <my_cool_team>
875# owner.team: "{{ .Values.team }}"
876# tags.{{ .Values.tag }}/env: "{{ .Values.environment }}"
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/
882# podDisruptionBudget: {}
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
897# metricName: gitlab_runner_jobs
898# targetAverageValue: 400m
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/
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.
911# - name: myOtherSecret
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
919# automountServiceAccountToken: false
921## Additional config files to mount in the containers in `/configmaps`.
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.
927## Labels to be added to configMaps
929## Supports templating
932# owner.team: <my_cool_team>
933# owner.team: "{{ .Values.team }}"
934# tags.{{ .Values.tag }}/env: "{{ .Values.environment }}"
936## Additional volumeMounts to add to the runner container
941# mountPath: /mount/path
943## Additional volumes to add to the runner deployment
948# persistentVolumeClaim:
951## Array of extra K8s manifests to deploy
954# - apiVersion: external-secrets.io/v1
955# kind: ExternalSecret
957# name: '{{ include "gitlab-runner.secret" . }}'
962# name: my-secret-store
966# runner-registration-token: "" # need to leave as an empty string for compatibility reasons
967# runner-token: "{{`{{ .runnerToken }}`}}"
970# key: my-secret-store-secret
972## Add additional containers to the Pod, e.g. to run as sidecars.
976# image: docker:20.10-dind
980# - mountPath: /var/run/
985# command: [ "sh", "-c", "until docker info; do sleep 1; done;" ]