An automation project to help manage my Raspberry Pi Kubernetes Cluster on 22.04.2 LTS (Jammy Jellyfish). The Swarm will have 3 nodes (1 of which also acts as the swarm manager), and one Swarm Infrastructure node will will be a load balancer and logging server.
apt get install ansible
192.168.0.18 swarm-manager
192.168.0.20 swarm-node1
192.168.0.22 swarm-node2
192.168.0.86 swarm-infra
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub ubuntu@swarm-manager
ssh-copy-id -i ~/.ssh/id_rsa.pub ubuntu@swarm-node1
ssh-copy-id -i ~/.ssh/id_rsa.pub ubuntu@swarm-node2
ssh-copy-id -i ~/.ssh/id_rsa.pub ubuntu@swarm-infra
swarm-infra
[DockerNodes]
swarm-manager
swarm-node1
swarm-node2
[DockerWorkers]
swarm-node1
swarm-node2
ansible-playbook install_docker.yml
ansible-playbook create_docker_swarm.yml