Last active
August 23, 2020 09:39
-
-
Save tuannvm/36265937f72f7878bd07b7ad84207e6b to your computer and use it in GitHub Desktop.
#90s #blog #gitlab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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