
Hosting our Services
I wanted to deploy a few basic services that would make my life a little easier when working with my homelab. These include a cache for Docker images, a place to host Git repositories, and somewhere to store and manage secrets. I already had a Raspberry Pi 4 with 4 cores and 8GB of RAM available, which seemed more than capable of handling these workloads. For storage, I wanted to avoid using an SD card due to its reliability issues, so I used an external Samsung T7 1TB SSD instead. ...
Monitoring with Prometheus
Sometimes everything looks fine on the surface but appearances can be deceiving. Here we will see how to set up the Prometheus monitoring stack to monitor our stuff and send alerts when needed. The core component of the Prometheus monitoring stack is the Prometheus server. We configure targets for the server (meaning endpoints that expose metrics) and the server connects to them at regular intervals to scrape their metrics and store them locally in a time series database (TSDB). ...
Diving into Rust
Everything we have done so far was just setting the stage for our real goal, which is getting our hands dirty with the Rust programming language. It’s a modern engineering marvel destined to make all other languages obsolete. Either we jump on the Rust wagon now or get left behind with the memory-unsafe losers.
Connecting the Dots
We now have a working system with several tools installed but in most cases we want these tools to work together and reach a specific state before we can start using them. Once we define what that state should look like we also need a simple way to create and tear down environments as needed. For my use case, that state includes a Kubernetes cluster running Traefik, Prometheus and Argo CD. I automate the environment creation process with a Bash script and Terraform. ...
Laying the Foundation
Since I started working with computers I always loved the idea of a homelab, a safe space to mess with stuff, break stuff and sometimes learn a few things along the way. Back when I was trying to land my first tech job my homelab was a bunch of noisy Cisco switches and routers. Along the way I discovered GNS3 and eventually those physical switches and routers were virtualized on my Sony Vaio VGN-N31Z with it’s Core 2 Duo, 2GB of RAM and 128GB of spinning rust. ...