Giter Club home page Giter Club logo

github-k8s-runner's Introduction

github-k8s-runner

How to run your own GitHub build farm on a Kubernetes cluster, article, code

References

This work is largely based on the work done by Sander Knape and David Karlsen:

Modifications:

  • Added a sidecar docker-dind with TLS TCP communication between the client and the daemon containers
  • Made it dedicated to establish a pool of runners associated to a GitHub organization, not to a particular repository
  • Added a way to prefix the runners names (with RUNNER_NAME_PREFIX env variable)
  • Removed the sudo package, sudo group and passwordless sudoers from the container user
  • Added a way to use self signed certificates for a local registry as a config map

Howto

  • As an organization owner, create a GitHub Personal Access Token with the repo and admin:org scope permissions: image-20200825102405975

  • Create a generic secret with your GitHub Personal Access Token

    kubectl create secret generic my-pat --from-literal=pat=XXXXXXXXXXXXXXXXXX
  • If you want to include your registry self-signed CA certificate, use a config map

    kubectl create configmap private-registry-certificate --from-file=ca.crt
  • Adapt the deployment.yml Deployment resource to reflect your organization name in the GITHUB_OWNER environment variable, and deploy:

    kubectl create -f k8s-example/deployment.yml
  • You should see your runners appearing in the default group of your organization: image-20200827153559045

github-k8s-runner's People

Contributors

fabricev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.