My Profile Photo

Bencey's Blog


Informing the world about the application of Technology.
If you are looking for Tier III Technologies click the button below


Raspberry Pi Cluster Setup

Afternoon everyone. This is one of the recent projects I have been working on.

Kubernetes Raspberry Pi Cluster

I have recently decided that I want to get back into working on raspberry Pis (I previously Owned 2 Raspberry Pis) so I decided to go to the local IT store, buy a few more raspberry pis and start creating open-source programs and create a cluster.

What is Kubernetes?

Kubernetes is an open-source container-orchestration system for automating application deployment, scaling, and management. It was originally designed by Google and is now maintained by the Cloud Native Computing Foundation

Items

4x Raspberry Pis

2x 2GB Pi 4 2x 1GB Pi 3

4x Raspberry Pi Chargers 1x 5 Port Switch 5x Ethernet cables 3x 32GB SD Card 1x 64GB SD Card

Next Steps

Honestly, I am still deciding if I want to stick to a Kubernetes cluster or if I want to move to a docker cluster (Or maybe I should not use either).

I first started by unboxing all of the equipment and started to install the OS on them. In the end, I decided to go with Ubuntu 20.04 Server.

I then set up SSH on the raspberry Pis and allocated a static IP so I can connect to the devices remotely. The way I set up the devices is their name is Pi1, Pi2, Pi3, and Pi4 so when I set up the static IPs I made it so Pi1’s IP was 192.168.1.61 Pi2 was 192.168.1.62 and so on, I did this so it was much easier for me to remember what the IPs are, the only difference is the last digit which is the device number.

Once I set these up and was able to ssh to them successfully I temporarily placed the Pis in my closet on the floor (I was currently in the process of repainting the cabinet which will permanently house them)

My next steps were installing the required software such as running an initial Sudo apt-get update && Sudo apt-get upgrade I then installed Kubernetes and followed multiple online guides to set up my cluster and then installed load balancer to ensure all of the programs running were being split evenly among the other devices.

Once I finished painting the cabinet and it was dry I took all of the Pis offline and began to move all of the devices onto the cabinet which I was quite impressed with the result

And now this post has caught up to where I am now. I am currently in the process of playing around and just learning more about Kubernetes and trying to set up some recipes such as a dashboard and a system monitoring. I then plan on setting up an NFS (Network File System) so I will be able to access important files from any device.

This post is dedicated to Funky Penguin’s Geek Kitchen, a collection of “recipes” to run popular self-hosted applications (NextCloud, nzbget, etc) on Docker Swarm, Kubernetes, and other sexy things.


That’s about it for this blog post. As always if you enjoy my content you can support me by becoming a patreon Here This allows me to make blogging a full-time job and gives me more time to blog as I do not need to get a part-time job. When you become a patreon you unlock perks such as premium support, Custom roles in the discord and much more. I would highly suggest checking it out.

Thanks for your support Bencey