Deploy LXD cluster on RPI cluster with MAAS
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.