Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sgaunet/gitlab-runner
kubernetes manifests to deploy gitlab-runner in kubernetes
https://github.com/sgaunet/gitlab-runner
gitlab gitlab-runner kubernetes
Last synced: 14 days ago
JSON representation
kubernetes manifests to deploy gitlab-runner in kubernetes
- Host: GitHub
- URL: https://github.com/sgaunet/gitlab-runner
- Owner: sgaunet
- Created: 2022-05-07T13:05:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-07T20:32:47.000Z (over 2 years ago)
- Last Synced: 2023-03-05T09:42:03.961Z (almost 2 years ago)
- Topics: gitlab, gitlab-runner, kubernetes
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This project contains manifests to deploy your own gitlab-runner in kubernetes. You will also find options to deploy it in a specific nodegroup (on AWS EKS with eksctl).
[A medium story give more details.](https://plyk.medium.com/gitlab-runner-in-eks-722250e006c0)
# Nodegroup to create with eksctl
```
- name: ng-cicd
amiFamily: AmazonLinux2
privateNetworking: true
instanceType: t3.medium
desiredCapacity: 1
minSize: 1
maxSize: 1
volumeSize: 60
volumeType: gp2
availabilityZones: ["eu-west-3a", "eu-west-3b","eu-west-3c"]
securityGroups:
attachIDs: ["sg-********************"]
labels: { role: cicd }
preBootstrapCommands:
- sed -i '/^KUBELET_EXTRA_ARGS=/a KUBELET_EXTRA_ARGS+=" --register-with-taints=cicd=true:NoSchedule"' /etc/eks/bootstrap.sh
tags:
nodegroup-role: cicd
k8s.io/cluster-autoscaler/node-template/taint/cicd: "true:NoSchedule"
iam:
attachPolicyARNs:
- arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy
- arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy
- arn:aws:iam::aws:policy/ElasticLoadBalancingFullAccess
- arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly
withAddonPolicies:
Autoscaler: false
ebs: true
efs: true
cloudwatch: true
albIngress: true
```# Deploy
Apply the manifests in this order :
Set your context as admin.
* ns.yaml
* /gitlab-runner-config.vault.yml
* gitlab-runner-service-account.yaml
* gitlab-runner-deployment.yaml