GithubHelp home page GithubHelp logo

k3s-cicd's Introduction

Playing Drone and Gitea on local with k3d(k3s)

Run full ci cd solution on kubernetes in local box for fun ?

What we going to build?

  • A tiny k8s cluster by k3s
  • A tiny git repo system by gitea (installed by helm)
  • A tiny ci cd system by drone (installed by helm)

They are all golang!

  • quick start,restart,install,upgrade. all in a few seconds
  • easy understand prototype CICD
  • easy play k8s cluster (API compatible , not really k8, k3 instead ๐Ÿ˜Š)

Understand the tweak

Before I walk through steps in INSTALL.md, let 's understand it.

  • Use k3d to launch k3s , 1 server + 2 workers for example, so the whole k3s cluster running on 3 docker containers.

  • Once we get k3s cluster up which takes 5,6 secs (thanks to k3d ๐Ÿ˜‹) we install gitea and drone through its helm charts

  • External access is through traefik ingress, here we need create kubernetes ingress for both drone and gitea,and local hosts file as local box DNS resolve

  • Internal connection between drone and gitea (for oauth purpose) is through kubernetes service.

  • We need to use consistent dns name for both ingress and kubernetes service , as the server name configured for gitea and drone will be mixed used by webhook,oauth and external access. I choose gitea & drone in this demo

About the charts

I use official chart for drone and k8s-land chart(3rd party) I found in github for gitea, however to get all work in k3s I have to create additional ingress as well as service to get above requirement meet.

k3s-cicd's People

Contributors

yikaus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ioricloud elitok

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.