

Using cloud-init, we can easily create a user, assigned it to groups, and pass in a Public SSH Key of our choice.
#MULTIPASS TEMPLATE INSTALL#
K3sup uses SSH to install and by default Multipass uses a predefined User – ubuntu – and SSH Key-Pair, which can be found after bit of digging - see Issue #913. The plan is to create a 3 node – 1 master, 2 workers – k3s cluster, which is disposable and portable. And install k3sup is even easier.īonus feature of Multipass is being able to pass in cloud-init files to do additional configuration setup, which adds many benefits beyond this example. Installing Multipass is pretty slick and having a CLI – like Vagrant – meant there was a way to wrap it all up in a script for repeatability. I like things to be as native as possible and Multipass can run on HyperKit and Hyper-V. So the idea of being able to run an Ubuntu VM and Kubernetes Cluster without additional programs to manage and debug got me hooked. I'd previously used Vagrant combined with VirtualBox with various levels of success and agony. I'd seen it a few times and was very curious. Plus, running it on a MacBook Pro 2019 I found the battery life draining quickly – running just Docker Desktop is bad enough at times. Due to using older models – Pi 2 & 3 -, with limited resources, it wasn't a great experience for testing demanding applications or load testing.ĭocker Desktop Kubernetes is great for starting out but the limitations kick in when you want to test out multiple nodes and installing additional features like Ingress Controllers. The correct way to have similar images is through the cloud-init system and YAML cloud-config files, which allows, through a file passed when creating the.

I'd previously setup up a k3s cluster using k3sup on my Raspberry Pi's and ASUS Tinkerboard running Ubuntu 20.04. I dont know if Im right, but multipass VMs are not intended to clone or export as Virtualbox images, as they were created to run in the cloud, not in Desktops. This started off due to frustration with my current Single Board Computers setup and limitations using Docker Desktop meaning I couldn't fully utilise all the features of Kubernetes.
