Giter Site home page Giter Site logo

jenknetes's Introduction

Jenknetes - Jenkins slaves made for a K8s world

Why

In our projects we wanted to dynamically start Jenkins slaves in our Kubernetes cluster, run our build containers in there, build and push our Docker images and leave the build host in a clean state. We found an easy solution to start slaves with the Kubernetes Plugin but we had no easy to use Docker-in-Docker images that were also capable of being a Jenkins slave at the same time.

Goal

Although we have so far used these images in combination with the Kubernetes Plugin, it is not directly bound to it. So far we haven´t tried deploying them separately to a Kubernetes cluster and link them with the Jenkins master, but we would love to see somebody doing (and documenting) it.

Two main goals we wanted to achieve:

  • Image isolation between the host system and the built container - don´t trash the host system

  • Reproducable image builds - Docker version should not depend on the version installed on the host system

Getting started

We started using the Kubernetes Plugin to configure a Jenkins cloud running in our K8s cluster. This cloud deploys Docker based Jenkins slaves dynamically as soon as a new job starts.

Here you can find a sample configuration using the dind-1.11 image:

dind 1.11 sample

The Label inside the Kubernetes Pod Template can later be used in the Jenkinsfile as the node name.

Docker images

Currently we have 2 running images and we are happy if you share your experiences and help us improve them or create new ones:

  • Docker-in-Docker 1.12 + Jenkins Slave: quay.io/jenknetes/slave-dind:1.12.6r1

  • Docker-in-Docker 1.13 + Jenkins Slave: quay.io/jenknetes/slave-dind:1.13.1

  • Docker-in-Docker 17.03.0-ce + Jenkins Slave: quay.io/jenknetes/slave-dind:17.03.0-ce

jenknetes's People

Contributors

wombat avatar

Watchers

James Cloos avatar  avatar Michelle Monteclar avatar  avatar  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.