Actions Runner Controller

set github runners on k8s cluster

Repository for better understanding - https://github.com/actions/actions-runner-controllerarrow-up-right

Using Helm, deploy the GitHub Actions Runner Controller (ARC) on Kubernetes. Set up and operate a workflow in the Kubernetes environment using runner scale settings to optimize parallel job execution and improve workflow speed.

Steps -

  1. install k8's by kubespray

  2. iptables -t nat -A POSTROUTING -s 172.17.0.0/16 -j MASQUERADE

  3. apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev

  4. helm repo update

  5. kubectl create ns actions

  6. kubectl create secret generic controller-manager -n actions --from-literal=github_token=<< github_token>>

  7. helm install runner actions-runner-controller/actions-runner-controller --namespace actions --version 0.20.2 --set syncPeriod=1m

  8. kubectl apply -f runner_dockerbuild.yaml --validate=false

Create runner_dockerbuild.yaml file -

Last updated