"/dummy-sys-class-dmi-id:/sys/class/dmi/id:ro"# Make kaniko builds work on GCP.
]
[runners.machine]
[runners.machine]
IdleCount=20
IdleCount=50
IdleTime=1800
IdleTime=3600
OffPeakPeriods=["* * * * * sat,sun *"]
OffPeakPeriods=["* * * * * sat,sun *"]
OffPeakTimezone="UTC"
OffPeakTimezone="UTC"
OffPeakIdleCount=5
OffPeakIdleCount=15
OffPeakIdleTime=1800
OffPeakIdleTime=3600
MaxBuilds=1
MaxBuilds=1# For security reasons we delete the VM after job has finished so it's not reused.
MachineName="srm-%s"
MachineName="srm-%s"
MachineDriver="google"
MachineDriver="google"
MachineOptions=[
MachineOptions=[
...
@@ -202,17 +156,18 @@ sentry_dsn = "X"
...
@@ -202,17 +156,18 @@ sentry_dsn = "X"
"google-tags=gitlab-com,srm",
"google-tags=gitlab-com,srm",
"google-use-internal-ip",
"google-use-internal-ip",
"google-zone=us-east1-d",
"google-zone=us-east1-d",
"engine-opt=mtu=1460",# Set MTU for container interface, for more information check https://gitlab.com/gitlab-org/gitlab-runner/issues/3214#note_82892928
"engine-opt=ipv6",# This will create IPv6 interfaces in the containers.
"engine-opt=fixed-cidr-v6=fc00::/7",
"google-operation-backoff-initial-interval=2"# Custom flag from forked docker-machine, for more information check https://github.com/docker/machine/pull/4600