Giter Site home page Giter Site logo

travis-kind's Introduction

travis-kind Build Status

This is an example showing how to run Kubernetes 1.11+ on Travis-CI using Kubernetes in Docker (KinD). For more details check the lightning talk I held on KubeCon North America 2018: 'Spawning Kubernetes in CI For Integration Tests' and the follow up article on Loodse blog.

The recording of the talk is available on YouTube and the slides are available on Sched:

Getting Started

The Travis-CI manifest (.travis.yml) shows how to build a job for running integration tests, which first runs a local Kubernetes cluster using KinD (as defined in the before_script stage) and then runs integration tests (as defined in the script stage).

Sideloading Images

When running Integration and End-to-End tests, we usually want to build an image for application we test locally. When creating a cluster, KinD runs a Docker container on the host machine (in our case on Travis-CI) which contains dependencies needed for Kubernetes, including Docker, and then runs Kubernetes in that container. For Kubernetes to be able to use images built locally, we need to sideload the image from the host machine to Docker running in the KinD's container, which can be done using the build_images.sh script.

Getting Involved

If you want to learn more about KinD, check out the following resources:

There is a #kind channel on Kubernetes Slack where you can reach out to maintainers and users, and follow the development progress.

If you have any questions regarding KinD and running KinD in CI, feel free to reach out to me over GitHub Issues, Kubernetes Slack (@xmudrii) or Twitter.

travis-kind's People

Contributors

da115115 avatar xmudrii 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.