/k3s-dev

Simple k3s dev/playground environment

K3s with Vagrant

Getting Started

# Boot a bare virtual machine and install k3s
➜  vagrant up

➜  kubectl --kubeconfig=".kube/config" get nodes -A
NAME             STATUS   ROLES    AGE   VERSION
k3s-dev-master   Ready    master   11s   v1.19.4+k3s1

Goal

A single portable Vagrantfile with a minimal install of K3s while also maintaining ease of talking to the cluster from a host

Adding to a new project

wget https://raw.githubusercontent.com/gsdevme/k3s-dev/master/Vagrantfile
mkdir .kube/

Usage with Gitops

Manifests can then be deployed via the normal route or via something like https://toolkit.fluxcd.io/get-started/

flux check

flux bootstrap github \
  --owner=$GITHUB_USER \
  --repository=$GITHUB_REPO \
  --branch=master \
  --path="cluster/dev" \
  --personal