r/devops • • Sep 05 '26

Discussion Detailed guide: Building a 3-node Kubernetes homelab with Talos Linux

Post image

A few days ago, I posted my 3-node Talos Kubernetes homelab setup here, and quite a few people reached out through DMs and comments asking for a detailed installation guide.

So I went through the entire setup again from scratch and documented the process properly, including the network setup, DHCP reservations, Talos installation, per-node configuration, Kubernetes API VIP, etcd bootstrap, workload scheduling, validation, and failure testing.

I’ve put everything together in a detailed blog with commands, screenshots, and the reasoning behind the setup.

Everything is in the repo: https://github.com/prateekjaindev/homelab

Blog: https://medium.com/@prateekjain.dev/building-a-3-node-highly-available-kubernetes-homelab-with-talos-linux-0372066fe49c?sk=4c66cf9181999f9db19ac3aacabcd8e8

Please check it out, and if you have any questions about the setup or run into issues while building something similar, feel free to ask.

265 Upvotes

44 comments sorted by

43

u/ServerMonky Sep 05 '26

Nice guide - FWIW I have had the exact same setup running for a couple years now.

The downside to HA, if it is a project you aren't really monitoring frequently, is you can have a node go down, and not even realize it until you next log in to the cluster a few months later :-) All my services just re-allocated onto the other two nodes and I didn't notice anything from the user side.

It was a good wake up call to get some reporting set up though!

6

u/ycnz Sep 05 '26

Yeah, I had the same experience. After a couple of years of linux, I just switched to k3s on debian. There was a little too much feeding and watering of Talos for my liking.

4

u/lem0nz- Sep 06 '26

curious, what about talos required effort?

1

u/MechaGoose Sep 06 '26

Yeah K3S gets me a decent enough experimental home lab with next to no effort.

Fair play to OP, this is a great guide; but in all honesty I’ve just been using managed clusters for years and just can’t be bothered with a lot of the nitty gritty of setting up bare metal the hard way.

1

u/root0ps Sep 12 '26

I got the same issue the very next day after setting up the cluster, one of the nodes was offline, so I built (with codex) this simple widget, so as soon as I start my main PC, I get the status of nodes and services

2

u/Rakn Sep 06 '26

How do you handle storage? That’s my main concern with such a multi node setup. I found NFS/SMB mounted shares, especially from an Unraid system to be unreliable. Though the answer might simply be don’t use Unraid.

Most folks I know that run such a setup don’t have a need for a lot of storage and simply store a few documents, images and small databases that can easily fit a single nodes storage. Although that’s kinda defeating the purpose of a multi node setup.

2

u/ServerMonky Sep 06 '26

I use longhorn, it takes some additional configuration on talos but overall works pretty well

9

u/cobolfoo Sep 06 '26

Next step: add extra 8gb of ram to your machines, switch to proxmox nodes with one CP and one worker per machine. Use opentofu to create your cluster (IaC) then some CEPH to learn about storage over CSI.

1

u/root0ps Sep 12 '26

I may add dedicated worker nodes if required instead of creating nodes with Proxmox. The real goal was to get HA and simulate the bare metal. Proxmox will give me more virtual nodes, but ultimately it will be on the same hardware

3

u/terryfilch Sep 06 '26

I don't agree and don't recommend spending time doing CEPH in a homelab. CEPH is more about production for huge clusters because it requires a 10G network.

1

u/cobolfoo Sep 06 '26

Yes true, the idea was to fool around with CSI, but this could be done with any type of storage.

2

u/essanpupil Sep 07 '26

I envy you sir/mam. Currently that is my kubernetes home lab.

1

u/root0ps Sep 12 '26

good luck and best wishes to add more machines!!

16

u/m4rzus Sep 05 '26

You really like talking about IP addresses

13

u/UndulatingHedgehog Sep 05 '26

Pretty central to k8s and networking, isn’t it?

3

u/m4rzus Sep 05 '26

Yeah, but excessive repeating of the same thing about nodes and vIP is pretty exhausting.

4

u/GemeinschaftBank Sep 05 '26

I'll be mumbling that VIP address in my sleep, tonight.

3

u/RIPenemie Sep 06 '26

Sounds like an LLM

0

u/[deleted] Sep 05 '26

[deleted] — view deleted comment

1

u/sicario24x7 Sep 06 '26

Nice article man. Where did you buy them from?

1

u/root0ps Sep 12 '26

from a local vendor in my city (Pune)

1

u/birusiek Sep 06 '26

Proxmox cluster and VM k8s based would be more elastic.

1

u/root0ps Sep 12 '26

I could've done that, but machines are with only 8 GB of RAM, so adding a layer will waste resources IMHO, maybe I'm wrong as I've never used Proxmox

1

u/trickypatel Sep 06 '26

K3s best with MetalLB. I’m also using same type of home lab setup last 3 years

1

u/root0ps Sep 12 '26

that's great, I've also installed MetalLB

1

u/m1xed0s Sep 06 '26

Not necessarily related to this particular topic, but I just curious what kinda industries the Kubernetes is widely used for production? SaaS, web hosting companies or other traditional financial, utility, transportation and public sector companies? Ran into an issue with an off-shelf kubernetes cluster and team took a fair amount of effort with manufacture to get it back in order…

1

u/root0ps Sep 12 '26

doesn't matter which industry it is, if you need very high scaling these days, k8s is one of the best options

2

u/rmullig2 Sep 06 '26

Any environment with a large number of containers will typically use Kubernetes. Seems like most deployments these days are using managed cloud solutions rather than building out their own systems.

2

u/m1xed0s Sep 06 '26

Understood but I guess what kinda of companies would typically be heavy on containers that traditional sense of VMs won’t work well?

1

u/rmullig2 Sep 06 '26

It's typically more dependent on the app rather than the company. Apps that need to scale up quickly use a lot more microservices and containers while apps that have more stable usage work better with VMs and monoliths.

1

u/Basic_Pie_1537 Sep 12 '26

How much it costs you?

2

u/root0ps Sep 12 '26

around $550 (in India)

-4

u/Ariquitaun Sep 05 '26

You removed the plastic wrap? Noob mistake

-4

u/OkSouth929 Sep 06 '26

thanks for your work. Now with ai, i think this is not very tough thing

1

u/root0ps Sep 12 '26

kind of agree and disagree both

2

u/[deleted] Sep 05 '26

[removed] — view removed comment

7

u/m4rzus Sep 05 '26

the use-case is to have a fully IaC and very secure deployment of k8s from the very first moment an underlying OS boots up. Nothing is configured through console, everything is configured through Talos API.

1

u/root0ps Sep 12 '26

In simple words, it's like running your own private cloud at home. I can run any service in this cluster and optionally make it public.

1

u/[deleted] Sep 06 '26

[removed] — view removed comment

1

u/root0ps Sep 12 '26

from a local vendor in my city (Pune)