Deploy LXD cluster on RPI cluster with MAAS

From UNamur InfoSec
Jump to navigation Jump to search

Introduction

MAAS has the ability to automatically setup LXD onto its machines. However, it can only deploy and manage them as individual hosts, to make MAAS manage the LXD cluster, we need to create LXD cluster and add it to MAAS manually.

Create LXD cluster

Follow the official LXD document to create an LXD cluster. https://linuxcontainers.org/lxd/docs/master/clustering/

Registering LXD cluster in MAAS

Adding LXD cluster is the same as adding LXD hosts. MAAS will automatically detect the cluster.

ref: https://maas.io/docs/snap/3.1/ui/whats-new-in-maas#heading--lxd-clusters