Skip to content

Instantly share code, notes, and snippets.

@tuannvm
Last active August 23, 2020 09:39
Show Gist options
  • Save tuannvm/36265937f72f7878bd07b7ad84207e6b to your computer and use it in GitHub Desktop.
Save tuannvm/36265937f72f7878bd07b7ad84207e6b to your computer and use it in GitHub Desktop.
#90s #blog #gitlab
gitlabUrl: https://gitlab.com/
runnerRegistrationToken: "<registration token>"
unregisterRunners: true
logLevel: info
runners:
# quite important for speeding up the build
imagePullPolicy: "if-not-present"
cache:
# s3 | gcs
cacheType: "gcs"
cachePath: "<prefix>"
# share cache among the builds
cacheShared: true
gcsBucketName: "<bucket-name>"
secretName: "<secret-name>"
# the runner would only be scheduled in specific nodepool, not all
nodeSelector:
role: worker
# Pointed out by https://medium.com/@andrew.nazarov.intres
# Unfortunately the current helm chart doesn't support toleration configuration yet,
# so we need to do that via env intead
# Also check https://gitlab.com/charts/gitlab-runner/blob/master/templates/configmap.yaml#L78
# Do some toleration for better control
env:
  KUBERNETES_NODE_TOLERATIONS: “role=worker:NoSchedule”
# the gitlab runner process itself will run on non-preemptive instance
nodeSelector:
role: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment