Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/shuuji3/setup-microk8s-on-multipass. Simple bootstrap script for Microk8s cluster on multipass VMs
Something went wrong. Try again.
Files
README.md
setup-microk8s-on-multipass #
Bootstrap Microk8s cluster on multipass VMs.
How to bootstrap #
-
Install multipass.
-
Create a microk8s master node.
$ multipass launch -n microk8s-master --cloud-init cloud-config.yamlcloud-config.yamlenables multipass to install the snap package of microk8s and add the default usermuitipasstomicrok8sgroup on the launch phase automatically. -
Create microk8s worker nodes as many as you want.
$ for i in 1 2 3 do multipass launch -n microk8s-worker-$i --cloud-init cloud-config.yaml done -
Issues join token on the master node by
microk8s.add-nodecommand.multipass@microk8s-master:~$ microk8s.add-node Join node with: microk8s.join 192.168.64.7:25000/vThtnbGvNzhERWuJQEPsjeFZPWfAAHkf -
Join the master node on each worker nodes by
microk8s.joincommand.multipass@microk8s-worker-1:~$ microk8s.join 192.168.64.7:25000/vThtnbGvNzhERWuJQEPsjeFZPWfAAHkf -
Confirm the worker nodes has successed to join the microk8s cluster.
multipass@microk8s-master:~$ microk8s.kubectl get no NAME STATUS ROLES AGE VERSION 192.168.64.8 Ready <none> 30s v1.16.0 microk8s-master Ready <none> 20m v1.16.0