Tag Archives: multipass

Automatized K3S Cluster in Multipass VMs with Ansible

By | April 13, 2023

Some time ago I sat out to automatize the creation of a K3S (lightweight Kubernetes) cluster in Multipass virtual machines using Ansible since I wanted to be able to quickly create a K3S cluster for wild experiments. Given a number of nodes and configurations for each of the virtual machines on which the nodes are… Read More »

Creating Multipass Virtual Machines with Ansible

By | October 10, 2021

In this article I will automate creation of Multipass virtual machines using Ansible. The manual process is described in an earlier article. As in the previous article, the virtual machines created will be configured as to allow for password-less login using a private key. Prerequisites In order to be able to create Multipass virtual machines,… Read More »

Ansible and Multipass Virtual Machines

By | May 16, 2021

In this article I will show how to set up an Ansible inventory that makes it possible for Ansible to interact with a Multipass virtual machine. Prerequisites A Multipass virtual machine should be created according to instructions in the article Multipass Key-Based Authentication. Note where the file containing the private key is stored.The second prerequisite… Read More »

Multipass Key-Based Authentication

By | December 23, 2020

In this article I will show how to create a Multipass virtual machine that has an additional user which can connect to the virtual machine authenticating using a private key. To accomplish this I will use cloud-init when creating the virtual machine. The cause for this is to allow creation and provisioning of Multipass virtual… Read More »

K3s in Multipass with Remote Management

By | March 29, 2020

This is another Kubernetes-related notebook entry in which I will document the procedure for setting up a Kubernetes cluster using K3S in virtual machines created with Canonical’s Multipass. In addition, I will describe how to configure kubectl, the Kubernetes command-line cluster management tool to manage the K3S cluster from outside of the virtual machines in… Read More »