A command-line tool that makes k3s easier to use with multipass.
Work in progress, see help for usage.
Requirements:
Once the requirements are installed, just clone this repository somewhere on your computer and add an alias to multik3s
script, such as below:
alias multik3s='bash /PATH/TO/REPOSITORY/src/multik3s.sh
To start a K3s cluster with multipass, just type:
multik3s init
if succeed and after a moment all nodes should be available, to check their statuses:
multik3s kubectl top node
This has created a default cluster with specification from cluster template.
To interract with your cluster, you can grab the k8s configuration file under ~/.multik3s/cluster_default_k3s.yaml
or use the exec feature:
multik3s kubectl get pod
multik3s exec kubectl get pod
multik3s exec helm delete --purge release
Content of this CLI code is grandly inspired from: