GithubHelp home page GithubHelp logo

action-k3s's Introduction

K3s Github Action

This github action starts a k3s cluster of chosen version and sets KUBECONFIG to created cluster. This is helpful for testing applications / operators on top of kubernetes cluster

Inputs

  • version of k3s

refer to table at the end of this README

  • egress-fix whether to disable the k3s egress selector (bug on v1.22)
  • ports

Outputs

  • KUBECONFIG environment variable set to k3s cluster created as part of action.
  • kubeconfig: Kubeconfig location

Example usage

- uses: debianmaster/actions-k3s@master
  id: k3s
  with:
    version: 'latest'
    egress-fix: false
- run: |
    kubectl get nodes
    kubectl get pods -A
    sleep 20
    kubectl get pods -A
name: k3s Testing
on: push
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: debianmaster/actions-k3s@master
      id: k3s
      with:
        version: 'v1.21.2-k3s1'
    - run: |
        kubectl get nodes
name: Matrix Testing
on: push
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        k8s_version: [latest,v1.21.2-k3s1,v1.20.8-k3s1,v1.19.12-k3s1]
    steps:
    - uses: debianmaster/actions-k3s@master
      id: k3s
      with:
        version: ${{ matrix.k8s_version }}
    - name: Test on k3s
      run: |
        kubectl get nodes

k3s version mapping with k8s

k3s k8s
v1.21.2-k3s1 v1.21.2
v1.20.8-k3s1 v1.20.8
v1.19.12-k3s1 v1.19.1
v1.18.2-k3s1 v1.18.2
v1.17.4-k3s1 v1.17.4
v1.17.3-k3s1 v1.17.3
v1.17.2-k3s1 v1.17.2
v1.17.0-k3s.1 v1.17.0.
v1.16.9-k3s1 v1.16.9
v0.10.0, 0.10.1, 0.10.2 v1.16.2.
v0.9.0, 0.9.1 v1.15.4
v0.8.1 v1.14.6.
v0.8.0 v1.14.5.
v0.7.0 v1.14.4
0.6.0, 0.6.1 v1.14.3.

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.