Skip to content

Instantly share code, notes, and snippets.

@Adityanagraj
Created August 21, 2022 08:11
Show Gist options
  • Save Adityanagraj/0f3c51c372d18331a3ed64448807cb08 to your computer and use it in GitHub Desktop.
Save Adityanagraj/0f3c51c372d18331a3ed64448807cb08 to your computer and use it in GitHub Desktop.
this gist consists of gitlab installation in k8 cluster
gitlabUrl: <your gitlab URL>
runnerRegistrationToken: <your runner secret>
rbac:
create: True
clusterWideAccess: true
# runners:
# image: ubuntu:18.04
# privileged: true
runners:
privileged: true
tags: "test"
name: "k8-runner"
config: |
[[runners]]
name = "k8-runner"
tag-list = ["test", "k8"]
executor = "kubernetes"
[runners.kubernetes]
namespace = "default"
image = "ubuntu:18.04"
[[runners.kubernetes.volumes.host_path]]
name = "docker"
mount_path = "/var/run/docker.sock"
resources:
limits:
memory: 2Gi
cpu: 1
requests:
memory: 1Gi
cpu: 500m
nodeSelector:
cloud.google.com/gke-nodepool: <your nodepool name>
tags: ["test", "k8"]
concurrent: 10
terminationGracePeriodSeconds: 3600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment