Skip to content

Simple deployment for spinning up a pool of self-hosted runners in K8s for a given repo.

Notifications You must be signed in to change notification settings

10gen/gha-self-hosted-runner-pool-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

gha-self-hosted-runner-pool-k8s

Simple deployment for spinning up a pool of self-hosted runners in K8s for a given repo.

  1. Create a K8s Secret with your GH PAT as follows:
kubectl create secret generic app-id \
    --from-literal=ACCESS_TOKEN='<your-gh-app-id>'

kubectl create secret generic app-private-key \
    --from-literal=ACCESS_TOKEN='<your-gh-app-private-key>'
  1. Set the number of runners you want in your pool by updating the spec.replicas field in gha-self-hosted-deployment.yaml.
spec:
  selector:
    matchLabels:
      api: gha-runner
  replicas: <integer-goes-here> # example: 10
  1. Update the REPO_URL env var in gha-self-hosted-deployment.yaml for your chosen repository.
- name: REPO_URL
    value: <your-repo-url> # example: https://github.com/jvincent-mongodb/docs-gha-self-hosted-runner-pool-k8s
  1. Deploy the runners to K8s.
kubectl apply -f gha-self-hosted-deployment.yaml

About

Simple deployment for spinning up a pool of self-hosted runners in K8s for a given repo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published