Update docker_swarm/README.md

This commit is contained in:
Pim Kunis 2024-02-10 22:21:25 +00:00
parent 5b8c26f489
commit bcc15ded5e

View file

@ -1,5 +1,9 @@
# shoarma ansible # Docker Swarm
This requires a rootless docker daemon on the Ansible host. On each of our machines, we deploy a virtual machine that participates in a Docker Swarm.
See: https://docs.docker.com/engine/security/rootless/ However, only one VM is a manager (`maestro`) while two are workers (`bancomart` and `vpay`).
Also you need jsondiff for docker stack. This lack of redundancy in the cluster is deliberate: in case all nodes are down (e.g. misconfiguration or power outage) manual action would need to be taken in order to restore the cluster.
In case of only one manager node, the cluster is always able to restore itself automatically.
While the operating system of the VMs is managed by NixOS, cluster creation and the deployment of workloads is done through Ansible.
In my opinion, Ansible is a perfect fit for environments that tend to change a lot (such as a container cluster).