Kubernetes Raspberry Pi Lab Environment Setup Using Ansible

After manually setting up a Lightweight Kubernetes cluster on a few of my Raspberry Pi’s I decided to tear it all down, and rebuild it from scratch using Ansible, and an infrastructure as code strategy. This gives me a chance to catchup a bit on ansible, and keep my documentation and notes for this project in a replay-able Github repository. The project at the moment is rough, and contains sensitive details; however, this is a local lab environment that will most likely be trashed later on, so I’m not worried.

Raspberry Pi Kubernetes Cluster

I figured now the perfect time for me to explore the lightweight Kubernetes project k3s. The documentation was really solid, plus I found Alex Ortner’s Medium blog post very helpful. I dusted of a Raspberry Pi 4, and three Raspberry Pi 3’s for this setup. I’m still in the mists of my kubernetes journey, but I wanted to share some of the early primitives, and some of the notes I’ve written for myself.