-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitlab-runner-config.toml
42 lines (33 loc) · 1.23 KB
/
gitlab-runner-config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
concurrent = 10
listen_address = ":9252"
[[runners]]
name = "Azure instance autoscaler"
url = "https://gitlab.com"
token = "<GITLAB TOKEN>"
shell = "sh"
executor = "docker-autoscaler"
[runners.docker]
image = "alpine:latest"
privileged = true # Needed for docker in docker
host = "unix:///var/run/docker.sock" # Needed for docker in docker
tls_verify = false # Needed for docker in docker
volumes = ["/certs"] # Needed for docker in docker
# Autoscaler config
[runners.autoscaler]
plugin = "fleeting-plugin-azure"
capacity_per_instance = 1
max_use_count = 1
max_instances = 10
[runners.autoscaler.plugin_config] # plugin specific configuration (see plugin documentation)
name = "vmss-prod-gitlab-runner-<name-suffix>" # Azure scale set name
subscription_id = "<Azure-subscription-id>"
resource_group_name = "rg-prod-gitlab-runner"
[runners.autoscaler.connector_config]
username = "runner"
password = "<securepassword>"
use_static_credentials = true
timeout = "10m"
use_external_addr = false
[[runners.autoscaler.policy]]
idle_count = 0
idle_time = "10m0s"