Terraform and Ansible control node as LXC container

Re-engineering the Homelab with IaC and Kubernetes: An overview

In relation to my previous post where I mentioned that I will be starting a new journey learning IaC or Infrastructure-as-Code, today I am very happy to record this milestone of finally achieving a stable kubernetes cluster created with the help of Ansible and Terraform. At this time of writing, so far only two services have been migrated from the docker environment into the new K8S cluster. That is my DNS which is also replaced now by AdguardHome (sorry Pihole!...

K3s network

Install k3s on Ubuntu Server 22.04

While working on creating my own kubernetes cluster I initially wanted to go with the official documentation for the installation process. But then I thought why not explore other distributions that can even simplify and reduce the time of the whole deployment process. This is when I came across k3s which claims to be an easier way of installing and managing kubernetes. K3s makes use of containerd as the default container platform but I opted to go with docker since I want to become more familiar with it....