Original cluster setup from https://github.com/mariadb-faisalsaeed/documentation
See issue comment: faizalrf/documentation#1 (comment)
Below is a basic guide to creating HA Maxscale (>= 2.5) using a pre-configured pacemaker configuration
Install maxscale:
wget https://dlm.mariadb.com/1159597/MaxScale/2.5.4/maxscale-2.5.4-release/packages/ubuntu/focal/maxscale-2.5.4-1.ubuntu.focal.x86_64.deb
dpkg -i maxscale-2.5.4-1.ubuntu.focal.x86_64.deb
pcs resource create maxscale_ip ocf:heartbeat:IPaddr2 ip=192.168.1.88 cidr_netmask=24 op monitor interval=30s
pcs resource defaults resource-stickiness=100
pcs resource create maxscale_service systemd:maxscale op monitor interval="10s" timeout="15s" op start interval="0" timeout="15s" op stop interval="0" timeout="3
systemctl stop maxscale
systemctl disable maxscale
pcs constraint colocation add maxscale_service with maxscale_ip INFINITY
sudo pcs constraint order set maxscale_ip maxscale_service
pcs resource group add maxscale maxscale_ip
pcs resource group add maxscale maxscale_service