r/devops • • Sep 01 '26

Career / learning Built a small 3-node Kubernetes homelab

Post image

I recently set up a small 3-node Kubernetes homelab using Dell OptiPlex Micro PCs running Talos Linux.

The main goal was to have a local cluster where I can learn, experiment, break things, and test tools without relying on cloud infrastructure every time. I’m planning to use it for Kubernetes networking, storage, observability, GitOps, security, upgrades, and general experimentation.

Small setup, but already a very useful playground.

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

Curious what others here are running for their Kubernetes homelabs.

520 Upvotes

86 comments sorted by

35

u/OkPumpkin7799 Sep 01 '26

Better than therapy lol

12

u/TooManyBison Sep 01 '26

Unless you need to start going to anger management because you can’t get it working.

1

u/devopsly_guy Sep 10 '26

I was building my own too, until I realized that my anger management is causing me to spend more on rogaine than cheap cloud servers lol

1

u/root0ps Sep 12 '26

it actually is, until everything works as expected :)

127

u/HugeRoof Sep 01 '26

I suspect you may have some overheating issues with that setup as is.

4

u/coffee-loop Sep 01 '26

If the thing was even powered on.

12

u/root0ps Sep 01 '26

no problem with heating yet, the cluster has been up for more than 3 days, and it is running 24/7

19

u/Michal_F Sep 01 '26

Nice node naming :)

Heating was a joke, related to the plastic wrap ;)

4

u/root0ps Sep 01 '26

Thanks🙌🏼, got you😅

1

u/RevolutionaryWorry87 Sep 01 '26

I have the same setup, how would you check for overheating? I have worries

5

u/sylvester_0 Sep 01 '26

Complete whoosh. This thread began with a joke about the PCs being encased in plastic.

1

u/RevolutionaryWorry87 Sep 01 '26

Fair one didn't realise. I have the same setup and actually thinking about overheating in a mini rack, but take the upvote sir

1

u/Abstrask Sep 02 '26

More like 24/3 then 😉

55

u/ryeguy Sep 01 '26

no problem, just wrap the machines in a wool blanket to cancel out the plastic wrap, it's basic thermodynamics

5

u/Thoughtulism Sep 01 '26

It's good because wool is a breathable fabric so you get better overall thermal regulation than plastic

2

u/Ariquitaun Sep 04 '26

If you also encase it in a block of ice, you get the best of both worlds

1

u/itnet7 Sep 09 '26

Maybe this too could be solved by using Alpaca Wool..

4

u/walkdaddydawg Sep 01 '26

Nah he’s good. None of them are plugged in

2

u/beeeeeeeeks Sep 02 '26

The wool blanket helps if the servers are freezing

12

u/Liquid_G Sep 01 '26

Do you have anything that can provide things like DNS/DHCP/Docker registry/NTP/NFS? I have a small Synology NAS device that does all these things, and can somewhat mimic real services that an enterprise environment might have.

4

u/root0ps Sep 01 '26

not at the moment, and that's why I called it a small homelab, but I'll add more hardware gradually

3

u/SysBadmin Sep 01 '26

Can’t you run pfsense or vyatta or whatever it’s called now lol

5

u/mangocrysis Sep 01 '26

What are their specs?

1

u/root0ps Sep 12 '26

i5 8th gen, 8/256 GB each

5

u/Gesha24 Sep 01 '26

I just used raspberry pi's - works just fine for smaller workloads, you have to sometimes handle rebuilding images to ARM and some other small annoyances that IMO help with learning.

1

u/satz_2809 Sep 07 '26

Can you share the hardware specs you used for the setup

1

u/root0ps Sep 07 '26

i5 8th gen, 8/256 GB

9

u/Readdeo Sep 01 '26

For learning, experimenting and especially breaking things, I recommend using proxmox on them, so you can just spin up a vm, snapshot it before trying out something so you can retry. Also you can host other vms for other puropses so you can switch them around for the workload you currently need.

Will do the same thing this week with SFF versions of these.

I run gitops infrastructure, arr stack, other self hosting stuff i regularly use. Also, a test cluster for the new marketplace I'm working on.

4

u/gigium1 Sep 01 '26

Yes, you will save so much time recreating VMs instead of flashing Talos for the nth time

-6

u/R10t-- Sep 01 '26

Everyone and their mom advertises Proxmox…

Did you read the post? OP said they are running TalOS Linux w/ Kubernetes. You cannot run Proxmox on Kubernetes

4

u/b1urbro Sep 02 '26

But you can run Kubernetes on top of Proxmox and it's actually very good advice for a lab where you want to break things, rather then keeping uptime high.

7

u/Readdeo Sep 01 '26

Did you read my comment? No, not really...

-2

u/R10t-- Sep 01 '26

Yes I did. The OP would have to completely reinstall their OS just to be able to run proxmox just to do what they are already doing without it

2

u/Readdeo Sep 02 '26

Please never work in IT

10

u/IIGrudge DevOps Sep 01 '26

These days, why do you need all this? Install Kind or K3s and you can mimic as many nodes as you want. Easier to sandbox too cause of quick setup/teardown.

10

u/redskelly Sep 01 '26 edited Sep 01 '26

What do you mean by “all this”? 3 machines instead of 1?

Because you learn way more using 3 physical computers running K3s in Proxmox instead of having all the K3s nodes in Proxmox on one physical computer.

- quorum is actually breakable, by pulling power on 1/3 machines, teaches corosync behavior and etcd quorum loss. On one machine, the hypervisor never dies independently.

- live migration, HA groups, fencing. Non existent with one host.

- storage replication with real failure domains. Longhorn replicas across 3 hosts fail differently than 3 replicas sharing one disk. Same for ZFS or Ceph.

- kube-vip failover across physical layer 2, VLAN trunk config

- draining a node, patching proxmox, rejoining, with workloads still up.

- network switch configuration

7

u/pydood Sep 01 '26

What are the chances this person is going to be working with physical nodes or just needs to know how to diagnose things with Kubectl against a GKE/EKS cluster? You’re not wrong about depth, but the point here is that you can learn most of the day to day shit needed with a much lighter setup. For someone just coming into the space they likely should start simple and dive deep, not start at the bottom of the iceberg.

3

u/engineerL Sep 01 '26

I'd argue OP is not going deep enough. If you can't improvise a power cable from spare copper wire and solder a broken motherboard, are you even hireable in 2026?

3

u/Commercial-Virus2627 Sep 02 '26

Bruh can’t even quoth the raven in binary smh /s

2

u/pydood Sep 02 '26

Personally if you can’t take a bucket of sand and melt, polish, and use your naked eye to make 2nm traces you should just stick to your marketing job pal.

/s lol

12

u/Liquid_G Sep 01 '26

because sometimes its a good learning opportunity to have multiple nodes, test HA, etcd recovery.

Way back when I was learning k8s, I did roughly the same with a bunch of intel nuc's running VMWare. It was a great resource to have at home to learn / try shit that I couldn't do at work.

2

u/cobolfoo Sep 01 '26

Yup, nothing beat shutting down VMs, unplugging network cards or power cable and seeing live what happens in HA.

1

u/Readdeo Sep 01 '26

Even K3S needs 3 nodes if it is a proper, professionally mature one, especially with etcd. Also, you will need nvme ssd with etcd if you want workloads on the control nodes too.

1

u/5ollys Sep 03 '26

Who cares? Why does he need all of it??

Because he fucking wants to!!! Why is this sub so goddamned nitpickt.

1

u/devopsly_guy Sep 10 '26

everyone should build at least one such cluster themselves. great learning curve and opportunity - running this long term - nah.

2

u/titi_prosop Sep 01 '26

Nice setup there, mate! Have fun playing around. I am wondering if you have a recommendation for a guide or some sorts of tutorials regarding achieving your goals for somebody less experienced?

1

u/Dratir System Engineer Sep 01 '26

Nice, what hardware did you pick?

1

u/UpdateInProgress Sep 01 '26

I just built my own cluster with multipass from within my ubuntu rig. It works awesome and it’s coming in handy for the CKA prep

1

u/throwawaystopper20 Sep 01 '26

Where did you order these from ?

1

u/Character-Athlete847 Sep 02 '26

How much these costs?

1

u/veritable_squandry Sep 02 '26

did it live outside? i can't even keep one mac mini cool for my lab.

1

u/b1urbro Sep 02 '26

https://github.com/kristiangogov/homelab

It's a bit outdated as I simply haven't had the time to tinker this summer between work and holidays. Will probably be rebuilding it from the ground up soon as there may have been some architectural mistakes along the way. Currently just running a compose/ansible setup because there are some services I heavily rely on (Frigate/HA/Silverbullet etc.).

1

u/Philluminati Sep 02 '26 edited Sep 02 '26

Very jealous. I wanted to build a similar setup to run a Spark cluster for data analytics. Keep doing that thing where I find something for £150 per machine on ebay let me add a little more RAM, 2.5GB LAN oh shit look at the price!

1

u/IrrerPolterer Sep 02 '26

Great! Thats how I learned the ropes with kubernetes, now I manage large scale installations for clients :) 

1

u/kabrandon Sep 02 '26

3 node Proxmox+Ceph cluster with Minisforum MS-A2's. 96 total vCPU, 288GB of DDR5, ~4TB of usable SSD storage after ceph replication. Hashicorp Vault, CI runners, and Tailscale Subnet Router as Flatcar VMs, on Proxmox but outside the k8s cluster. 3 node controller+worker Talos Linux k8s cluster with some apps and my monitoring stack.

No heat issues but I did have to install some supplementary fans to keep the components cool.

1

u/AskOk2424 Sep 28 '26

Do you run 1x master, 1x worker VM on each node, or do you run workloads on your master nodes?

1

u/kabrandon Sep 28 '26

I’ve done both recently. Right now I’m just running workloads on control plane nodes, but I’ll probably go back to 3+3 nodes soon. I blast away my homelab VMs frequently and build up new ones.

1

u/corpo_monkey Sep 03 '26

You jist blink, and nobody uses physical hardware anymore. This feels like time travel. Thank you OP for reviving these memories. Godspeed on your journey.

1

u/VoodooKing Sep 03 '26

Bury them in the sand for more cooling!

1

u/Hari_Harish2026 Sep 07 '26

Where did you buy this? please tell me the shop or contact.

Also I am a learning just curious.. can we have Virtual box or VMware on a sinbge desktop make the same set-up like 3 nodes with a private network?

1

u/ManyMessage2468 Sep 07 '26

That's cool, maybe u can start ur own cloud soon lol, I want to run my stuff on my raspberry pi for other home labs 

1

u/tolu_hunter Sep 16 '26

Looks great, I typically just use a bunch of VMs across two different nodes configure to communicate over the network each node has multiple control plane nodes so the cluster can function without both being up. Any thoughts on hosting anything for the public? Really lean into the no cloud setup cause your setup seems like you can hold some traffic at very least a small app

1

u/cobolfoo Sep 01 '26

You should use a promox cluster installed on your baremetal then deploy your kubernetes cluster in it (with like 3 cp, 3 workers spread across your proxmox cluster). I think its a waste of resource to have a whole cp per machine.

I have something very similar at home, but I added some spicy stuff like a CEPH cluster with HA (extra 2.5gb network card + sata disk).

1

u/BuyerEnvironmental69 Sep 01 '26

How did it perform? I am considering buying 2.5 NICs for the same setup, but I am worried it might be too slow. Especially with consumer (NVMe) SSDs.

1

u/cobolfoo Sep 01 '26

For homelab it's just fine, I test my opentofu / sensible stuff on it without much issues but it will not saturate the nvme capacities. A 10gb network is another option but cost a bit more.

But keep in mind that having hardware bottlenecks is not a bad thing when you want to learn to deploy robust technology.

1

u/BuyerEnvironmental69 Sep 01 '26

Not sure if I understand the last part. Would you mind elaborating on that a bit?

2

u/cobolfoo Sep 02 '26

I meant that having hard restrictions make you a better engineer overall because you have to move around to find a solution. For instance, a CEPH cluster on slow network could create issues that make you learn a lot about how to make CEPH resilient, something you might never encounter with a fast network.

1

u/BuyerEnvironmental69 Sep 02 '26

Thanks, that’s a helpful perspective I might think more about in the design of my homelab.

1

u/redfusion Global SRE Lead Sep 01 '26

Literally built this last week.

K3s in HA mode so each instance is a controller and a worker.

I'm using flux pointed to a git repo as a mono repo with a bunch of applications defined as helm or kustomisation projects.

I'm moving from a single hp gen8 running nomad.

I'll be honest, it's been a pain to reset my expectations for storage in particular.

Apps wanting to share paths or nfs targets, bungling around with sqllite over nfs is horrible.

Dealing with GPU attachments for transcoding and machine learning hasn't been too bad though.

Still an ongoing project. K3s made it simple, flux isn't as nice as ArgoCD but it's lighter to run for my use case

1

u/TruckeeAviator91 Sep 02 '26

Sqlite over nfs is terrible. I had to run it for a while and had so many issues.

With your setup, it could be worth while to use longhorn or ceph rook. Works best with 10gb+ networking but, I've gotten away with 1gb for home lab testing.

1

u/redfusion Global SRE Lead Sep 02 '26

Yeah, I've been considering options, but my current might end up being local path to nvme with a litespeed sidecar syncing the data off box. If a migration/failure occurs the storage gets populated from the backup but I keep the high performance drives.

I've only got 1gbit on the 5090 optiplex, a m2.e card to 2.5g is possible but I'm not pulling that thread just yet

0

u/sylvester_0 Sep 01 '26

Was running k3s on some Pi4s before I gave up due to hardware challenges. Much happier with my single node home server on NixOS now. I get to play with k8s plenty at work.