Raspberry Pi Cluster Update #2

Raspberry Pi Cluster Update #2

Want to learn what new things I have done with my raspberry Pis?. Read this post for more info

Good evening everyone, As promised here is a blog post stating what new things I have done with my Raspberry Pi Cluster. This is just a quick update post so its not a long and detailed post. I just quickly put this together in the last 15 minutes

Kubernetes Switch

Due to my issues with Kubernetes I have decided to make the switch to docker swarm. Although now there is a wider range of “recipes” that I have access to.

New Addition to the swarm.

Since a couple of days ago I have added an old PC tower to my swarm so now I have 4x Raspberry Pis and 1x PC Node. This PC has 4gb of RAM but I am planning on upgrading the ram.


I currently have the following setup on the swarm

  • Traefik V2

  • Docker-cleanup: Removes old docker images that have not recently been used

  • Traefik-forward-auth: This provides authentication to my services that are exposed to the web, so only I will be able to access the websites (It authenticates against my emails)

  • Duplicity: A backup software that automatically backs up my /var/data/ directory daily and stores the files to an external device and then it will back up that external device every 7 days. This is useful because if there was a data corruption issue the data will be safely stored somewhere else and I will easily be able to access the data and recover it

  • NFS: I have now set up an NFS (Network File System) To all of my nodes. The NFS is hosted on node1 and it shares the /var/data/ files to all of the other nodes. This is helpful for when I want to run programs on the other nodes as the configs will automatically be on those devices, Although there is a downside to using an NFS because if the main node was to randomly turn off one day it will automatically remove the NFS from the other devices leaving them without the configs and will cause the programs to crash.

  • Loadbalancer- This program balances all of the resource usage between all of the nodes

© 2020. All rights reserved.