Published Dec 2, 2026, 2:30 PM EST Ayush Pande is a PC hardware and gaming writer. When he's not working on a new article, you can find him with his head stuck inside a PC or tinkering with a server operating system. Besides computing, his interests include spending hours in long RPGs, yelling at his friends in co-op games, and practicing guitar. Thanks to their isolated nature, efficient resource utilization, and simple backup strategy, containerized environments are an essential aspect of my self-hosting stack. In fact, my home lab has evolved so much in the last couple of years that I have to keep an extra set of services just to keep an eye on my productivity, archival, and entertainment containers. But apart from this suite, I also rely on a couple of tools to keep my locally-deployed app stack running in tip-top shape. Take the high-availability Kubernetes provisions I’ve put together using single-board computers, for example. Besides ensuring my mission-critical services continue to function when a botched project takes down a system, HA clusters are a great way to practice my DevOps scripts and server management skills. But I recently figured it was time to move on to x86 machines for my cluster, and since this reliable architecture already supports Talos Linux, I ended up rebuilding a high-availability setup with this immutable distro, kubectl, and Headlamp. Talos Linux serves as the immutable core powering my K8s cluster Its reduced attack surface also makes it ideal for DevOps (mis)adventures I’ve always been interested in complex distributions that hide plenty of perks under the hood, and this includes good ol’ Talos Linux. For starters, it’s an immutable platform, so I don’t have to worry about broken packages or faulty updates rendering my painstakingly-created K8s cluster nodes unusable. It’s also extremely lightweight, and I’m not just talking about a lack of GUI elements like other minimal distros, either. Talos Linux even gets rid of package managers, SSH access, and even a shell. As such, Kubernetes clusters running on Talos typically involve API calls and declarative YAML configs instead of the typical commands I’m familiar with on Debian and other general-purpose Linux distros. Besides reducing its footprint, the lack of a shell interface and SSH functionality also lowers the attack surface on my Talos setup (and Kubernetes cluster). Combine all that, and you can see why I wanted to use this neat distro to power my high-availability experiments and DevOps training sessions. Getting the Kubernetes cluster online took a while I went with triple control planes for a high-availability setup With Talos being extremely lightweight, I chose a collection of old systems for this project. Specifically, I decided to configure Talos on an N100 mini-PC, an old i3-N305 system, and a Core 3 N350 NAS-turned-tinkering box. Since I wanted a high-availability environment that keeps my essential services operational 24/7, I decided to set all three nodes as control planes instead of going with a hybrid setup involving worker nodes. Once I’d finished arming the three PCs with Talos Linux, I switched to my Windows 11 machine and launched PowerShell from the Terminal app. First, I used winget install Kubernetes.kubectl and winget install Helm.Helm to grab the kubectl and Helm tools from the Winget package manager. I also downloaded talosctl-windows-amd64.exe (specifically v1.14.7) from the official GitHub link, renamed it to talosctl.exe, and added its directory as another PATH environment variable. Then, I cycled my portable monitor through my Talos PCs and noted the IP address (and Ethernet adapter) for each node. Since I didn’t want to write the --talosconfig flag all the time, I ran env:TALOSCONFIG="PWD\_out\talosconfig" to set it as an environment variable inside a new directory within my talosctl.exe folder. Using good ol’ Notepad, I quickly created a patch.yaml config file containing the following code for the virtual IP address for my K8s control plane: machine: network: interfaces: - interface: ens18 dhcp: true vip: ip: 192.168.0.200 In case you’re wondering, the virtual IP doesn’t point to the IP addresses on my Talos hosts or the Windows 11 PC. Instead, it’s an arbitrary address that hasn’t been assigned to any PC on my local network, and this is what took me nearly thirty minutes to realize after I’d accidentally set it to an IP address that already existed on my LAN. Anyway, I used this patch.yaml file to create a cluster blueprint for the Talos hosts via the talosctl gen config homelab https://192.168.0.200:6443 --config-patch "@patch.yaml" --output-dir _out command before applying it to each node using this for loop: foreach ($ip in "192.168.0.163","192.168.0.168","192.168.0.78") { talosctl apply-config --insecure -n $ip -f _out\controlplane.yaml } With the nodes patched, I ran talosctl config endpoint 192.168.0.163 and talosctl config node 192.168.0.163 to force the local talosctl instance to use the first Talos host as the target for my management commands. After waiting a few minutes for the nodes to load back up with the new config, I ran the talosctl bootstrap to initialize the Kubernetes control plane. Since I wanted this setup to have high-availability provisions, I executed talosctl config endpoint 192.168.0.163 192.168.0.168 192.168.0.78 (the IP addresses of the rest of the nodes) to expose them as control plane endpoints. Headlamp serves as the management UI for my cluster But kubectl is still a fantastic tool for controlling my K8s pods By now, I’d finished deploying K8s on my Talos hosts, but I still needed a way to spin up new pods and manage them on the cluster. The kubectl utility works well for text-based commands, and enabling it was fairly straightforward. First, I ran talosctl kubeconfig . to download the config file from my cluster before executing the env:KUBECONFIG="PWD\kubeconfig" command to force PowerShell to use kubeconfig file inside the current directory. Sure enough, running kubectl get nodes -o wide displayed my cluster in all its CLI glory, and I was free to define new pods using YAML files and deploy them using kubectl apply app.yaml. But as much as I love automating terminal commands, I still wanted a web UI to make cluster management tasks a bit easier. After some internal debates, I decided to install Headlamp in an isolated namespace using these Helm commands: helm repo add headlamp https://kubernetes-sigs.github.io/headlamp/ helm repo update helm install headlamp headlamp/headlamp --namespace headlamp --create-namespace With Helm up and running, I executed kubectl port-forward svc/headlamp 8080:80 --namespace headlamp to make its web UI accessible to the other systems in my arsenal. But since Headlamp requires proper authentication, I ran kubectl create clusterrolebinding headlamp-admin --serviceaccount=kube-system:headlamp-admin --clusterrole=cluster-admin to create an admin account for the web interface and grabbed its authentication token using kubectl create token headlamp-admin -n kube-system --duration=24h. Fortunately, Headlamp had no trouble detecting the entire cluster, and I was able to spin up an n8n pod using some YAML code within the Custom Resources section. Make your home lab even more impressive (and over-engineered) with a K8s cluster I’ve since deployed a bunch of pods for my mission-critical containers, including Nextcloud, Nginx Proxy Manager, and NetBox, and Headlamp makes monitoring them a breeze with its neat UI. And with Talos, K8s, and my other two nodes working their magic, I can tinker with my N350 node without worrying about my container arsenal going down during my experiments.
I turned three old PCs into a Kubernetes cluster with Talos, and my home lab keeps running when one node goes offline
Full Article
Original Source
Read the full article at Xda-developers →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.