Skip to content

Instantly share code, notes, and snippets.

@ruanbekker
Created January 6, 2020 23:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruanbekker/d939386cdb25cd663c9c553ef8a7ed8e to your computer and use it in GitHub Desktop.
Save ruanbekker/d939386cdb25cd663c9c553ef8a7ed8e to your computer and use it in GitHub Desktop.
K3S Single Node with Multipass

Getting Started

Get Started and Create a VM with:

K3sup

Install k3sup:

$ curl -sLSf https://get.k3sup.dev | sh

Install k3s to the master:

$ k3sup install --ip $(multipass info k3s-master | grep 'IPv4' | awk '{print $2}') --user multipass --ssh-key ~/.ssh/multipass

Kubeconfig

Set your config in place:

$ export KUBECONFIG=/Users/ruan/workspace/multipass-k3s/kubeconfig

and interact with kubernetes:

$ kubectl get node -o wide
NAME         STATUS   ROLES    AGE   VERSION         INTERNAL-IP    EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION      CONTAINER-RUNTIME
k3s-master   Ready    master   17s   v1.16.3-k3s.2   192.168.64.3   <none>        Ubuntu 18.04.3 LTS   4.15.0-72-generic   containerd://1.3.0-k3s.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment