Looking to build a K8s cluster, what are your strategies for finding affordable hardware?
from Eldaroth@lemmy.world to selfhosted@lemmy.world on 25 May 19:58
https://lemmy.world/post/47344293

I currently run all my self-hosted apps either on Podman in a VM or in LXCs on Proxmox. For hardware, I’m using a Chinese-made mini computer with an Intel N150 and 16GB of DDR5 RAM that I bought before the whole AI hype started. I also have a Synology NAS that I use mainly for media and photo storage.

I’ve been thinking about tinkering with Kubernetes in my homelab for a while now (I already use it extensively at work, so I’m quite familiar with it), and I started looking around for used hardware to use as bare metal nodes. Nothing fancy—I’m looking for 1 or 2 mini servers or SFF with at least 16GB of memory and a decent CPU (4–6 cores). But with current prices, even decently priced used hardware (~200–250€) is quite difficult to find in Europe, and most of it is HP stuff with Lenovo being a rare breed around here. I won’t even get started on newly bought hardware…

If you’ve bought hardware in this market recently, how did it go for you? Or are most of you holding out for now, waiting for better times?

#selfhosted

threaded - newest

slazer2au@lemmy.world on 25 May 20:01 next collapse

Honest question, why are you looking to buy hardware to do this when you can mess with K8S in VMs on your existing proxmox host?

Eldaroth@lemmy.world on 25 May 20:11 collapse

Fair point. If I don’t want to just run a single node cluster, I will need at least 2-3 nodes aka VMs. Looking at like 2-4GB (as a bare minimum imho) memory for each, I would already eat into like half of my current 16GB of available memory. And this mini server is already running a lot of my critical apps, using more than half of the memory.

slazer2au@lemmy.world on 25 May 20:13 next collapse

That’s fair.

moonpiedumplings@programming.dev on 25 May 20:35 collapse

I run a single node cluster.

My single node has 256 gb of ram and 24 cores. I do this because, if you want a lot of ram/cores/storage, it is cheaper to get a used “tower server” type device and then upgrade it as you go over time, than it is to buy entirely new devices for every bit of ram you want to add to the cluster.

I like kubernetes because I like configuration as code, gitops, the way it abstracts over components so I can swap components out easily, the way that helm charts are an easier way of orchestrating containers, and a bunch of other things.

Clustering is merely one of many benefits of kubernetes, one that isn’t particularly important to me. Although, my opinion on that has changed somewhat recently. Waiting for a reboot is annoying, since I am rebooting the whole thing and I have to wait for each service to go down or come up before the machine reboots properly. But if I was running kubernetes as a virtual machines inside incus with multiple nodes, I could update each node one by one without the whole thing going down. Or, I could snapshot them, allowing me to reboot the host without waiting for kubernetes. But these things are mostly just somewhat nice to have, rather than a core feature I really require.

Eldaroth@lemmy.world on 25 May 20:56 collapse

Oh wow okay, if I’d go down that route I would definitely do multiple VMs on that host. In my opinion, the whole clustering and self healing / HA aspect of Kubernetes is why I want to switch to it. I can do gitops with Podman/Docker as well, in fact I already do that including a renovate pipeline on my sel-hosted Forgejo instance. But having the redundancy of several nodes, if one goes down the service will still work or at least will be re-deployed within a couple of seconds, provided there is distributed storage (longhorn, ceph or even nfs cis) if its a stateful app.

moonpiedumplings@programming.dev on 25 May 20:05 next collapse

Even used stuff is expensive nowadays.

Anyway, you can buy these used refurbished small form factor business PC’s.

These things: servethehome.com/introducing-project-tinyminimicr…

I was recently at a tech conference and I met a guy who was selling 16 gb ram one’s for 30 usd, since they had managed to track them down that cheap in bulk somewhere. What happens is that corporations or govt get rid of them due to warranty expiry, so they need to be offloaded somewhere.

You probably won’t be able to find them that cheap but it’s definitely more affordable than new stuff. It used to be cheaper but I mostly see 200 usd in my searches.

Eldaroth@lemmy.world on 25 May 20:42 next collapse

Thanks for the link! I think I saw this project mentioned in some other post as well, but honestly didn’t look further into it then.

Oh wow 30 bucks a unit for 16 GB, that’s just insanely lucky to find a deal like that.

Looking around in my region, there is from time to time the odd deal where you could get for example a HP EliteDesk 800 G4 Mini with 16 gigs for like below 200€ if you’re lucky and with the right timing. But usually they will net you 260€ upwards.

irmadlad@lemmy.world on 25 May 21:36 collapse

Even used stuff is expensive nowadays.

No shit! I was shopping NewEgg for some used drives. Found a 500 GB HDD for $36 USD which I immediately clicked on only to find this warning:

Used - Very Good Erased (DoD 5220.22 M Compliant) and tested. There may be drives that have up to 25 bad sectors. There may be writing or >markings on the drive or the label may vary slightly from picture.

WTF. Who would buy a used HDD with up to 25 bad sectors?

adarza@lemmy.ca on 25 May 22:29 next collapse

i have no idea.

i personally bin (recycle bin, that is) any drive (ssd or hdd) that has any abnormality in its internal diagnostics data, or won’t pass short and long diagnostics tests even if their stats are clean.

irmadlad@lemmy.world on 26 May 00:49 collapse

I’ve heard this dude named @Andres4NY@social.ridetrans.it he uses them. I’ve never heard of that. TIL

Andres4NY@social.ridetrans.it on 25 May 23:29 collapse

@irmadlad @moonpiedumplings Enterprise drives w/ bad sectors and a 5yr warranty? Me (raises hand)!

With snapraid and backups and the warranty, I'm perfectly happy to use enterprise drives _where the drive errors aren't increasing_. Worst case, I lose some of those linux distributions and have to re-download them. I wouldn't use one without a warranty though (and I certainly wouldn't waste my time on a 500gb drive, the last hdd I bought w/ sector errors was 14TB for $140).

irmadlad@lemmy.world on 26 May 00:40 collapse

14TB for $140).

Link me up, Scotty

(raises hand)!

Really. I would have never guessed. I mean, I’ve always viewed bad sectors as a sign of a failing drive. Just a really bad day in the future, marked as an appointment.

What kind of millage on the average do you get out of something like that?

Andres4NY@social.ridetrans.it on 26 May 01:05 next collapse

@irmadlad I can't tell you averages (I'm not running massive storage servers with hundreds of drives here), but I ordered this particular one in Oct 2025. It's still going strong. There's another one that I bought back in 2019 or 2020 that I used for a few years before replacing it due to needing more space. Meanwhile, I've used plenty of consumer drives over the years that were a lot less reliable, so I have different rules for consumer drives (toss 'em at the first error) vs enterprise drives.

Andres4NY@social.ridetrans.it on 26 May 01:09 collapse

@irmadlad Also, I would think that companies offering long warranties on refurbished drives are playing the odds in a way that makes them money. It probably wouldn't be profitable if they sold drives w/ bad/reallocated sectors and the majority of them died within the warranty period.

My assumption is that all drives will die (or suffer corruption) at the worst possible time, so do proper backup/scrubbing. Then look for deals where I can.

irmadlad@lemmy.world on 26 May 10:55 collapse

Dude. It’s like you opened a window and pulled the blinds back. I honestly had never heard of doing that. I’m going to have to spool up on this topic. Any good reading I can do?

moonpiedumplings@programming.dev on 26 May 06:17 collapse

When people say that linux adds a second life to bad hardware, they don’t just mean making 8 gb of ram usable again. They also mean stuff like this, using dying hardware to it’s last breath.

Related: lorenz.brun.one/dealing-with-bad-ram-on-linux/

You can mark the failing parts of ram as explicitly bad so Linux avoids them, just like with hard drives. Another way to get more lifespan out of this hardware.

irmadlad@lemmy.world on 26 May 10:52 collapse

You can mark the failing parts of ram as explicitly bad so Linux avoids them, just like with hard drives. Another way to get more lifespan out of this hardware.

I love this. I am being schooled. I honestly have never heard of what you speak of. But by golly I’m going to spool up on the topic.

irmadlad@lemmy.world on 25 May 21:32 next collapse

Nothing fancy—I’m looking for 1 or 2 mini servers or SFF with at least 16GB of memory and a decent CPU (4–6 cores)

Not in the EU, so…

The Optiplex 7020 SFF with the i7-4790 chip are pretty robust little computers, regularly sell on Amazon for less than $200. The 9020 MT is a bit older, however still capable @ well under $200 USD on Amazon. I’d upgrade the 9020 to a i7-4790 chip which you can normally find, used, on ebay for less than $50 USD. The models in that range take DDR3 which you can find good prices for at www.memorystock.com. I’ve been using them for years. The bad part about shopping for used computers on ebay is that, while you might be able to find some killer deals initially, most often they stick it to you good with shipping.

Also: Dell OptiPlex 3050 Micro Not too shabby either.

I just recently got a Optiplex 9020 MT 16 GB RAM for $124 USD / free shipping off of Amazon. Shopped around ebay for the i7-4790 which cost me $35 USD, and 16 GB DDR3 RAM for $50. Not a bad little set up for right at the $200 USD mark. I’m setting it up for a friend of mine’s son who wants to get into selfhosting at the age of 10. It’s no threadripper but a solid piece.

minfapper@piefed.social on 25 May 22:23 next collapse

Dunno about Europe, but if anyone is reading this from America, here you go:

https://www.ebay.com/sch/i.html?_nkw=dell+optiplex&_sacat=0&_sop=15&rt=nc&LH_BIN=1

They are a little more expensive than the last time I looked, but still cheaper than raspberry pi.

Reannlegge@lemmy.ca on 26 May 00:38 next collapse

I personally have a handful of pi’s doing things, with plans to get more to do more (I have one in the mail to become my OpenWRT router). I was thinking of getting something simple to be able to do STT and TTS as I want to replace my HomePods as I slowly leave Apple and have have no interest in joining Amazon or Google for home automation, so I looked at my university’s used computers. I am not really a fan of buying some random persons old hardware but maybe a business is selling their old stuff.

Eldaroth@lemmy.world on 26 May 05:11 collapse

I assume you are using pi 4 and/or 5? I would have some 3b+ laying around which don’t see any use nowadays. But can’t quite imagine to build a cluster only made up of these, I think they are too underpowered, unless being used as like a small additional worker node.

And buying new Pi 5 with 16GB of memory would set me back at least 200€ a unit, not including power supply or any case.

paulcdb@lemmy.world on 26 May 10:35 next collapse

I’m also in the PI 4 group. Its worth watching ebay, etc for people selling pi clusters. I picked up my 8 node 4GB pi cluster fairly cheap.

Also if you’re learning and find yourself struggling with yaml files, I found Claude helped a lot to get running. Create the file, dump it into Claude and let it re-output the file. Give it the error log helps if it gets stuck.

Also if you explain your cluster setup, I built mine with Talos Linux so setup VIP, etc and it’s pretty good at generating a working setup.

I’m not a huge fan of AI but I struggled with yaml formatting so it might suck for a lot of stuff but formatting stuff properly is great… that and scanning logs for errors! 😎

Eldaroth@lemmy.world on 26 May 19:25 collapse

I liked my Pi 3B+ for tinkering around and run some services like vaultwarden or a VPN node with PiVPN (first OpenVPN, later Wireguard). They are great for stuff like that and don’t use much power. Not sure it makes sense to add them as nodes though as 2GB is stretching it, although Talos OS has a minimal requirement for worker nodes of 1GB, so I might still try 😄

As you can see I plan to use Talos as well, it sounds really promising what I read about it. For a CNI I plan to use Cilium and for distributed storage I might try Longhorn and see how it works. Apart from that I am still on the fence if I should run my nodes bare model or put a virt layer in between with Proxmox.

Reannlegge@lemmy.ca on 26 May 16:27 collapse

I have a pi 4 running HAOS, I have an 8 gb pi 5 running a bunch of services, with head room to spare. I have a pi 5 with 4gb ram running Jellyfin with headroom to spare. Both pi 5’s are also running pihole.

I also have a pi 5 with 2gb that will hopefully handle my personal blog and email, hopefully! I have a pi 5 with 1 gb showing up on Thursday that will run my OpenWRT and LuCI. I had a pi zero 2 that handled wireguard but it could only handle it for DNS, with OpenWRT on a pi 5 I will be able to do more than just DNS over wireguard.

Routhinator@startrek.website on 26 May 02:39 next collapse

I used Zimaboards. They are affordable and all you need if you couple the cluster with a TrueNAS Scale box and setup Democratic CSI.

Eldaroth@lemmy.world on 26 May 05:16 collapse

Like the original Zimaboard? How do you like it? Reading online in forums or reddit, the feedback is really mixed.

I was looking at the Zimaboard 2, but the board alone is like 300€+ and then buying DDR5 with current prices…

Routhinator@startrek.website on 26 May 13:14 collapse

Zimaboards do not need RAM. They include it (do not confuse it with the Zimablade).

I just use the default hardware with the Zimaboards. Zimaboard 832s for the masters and nodes, and I recently added a couple of Zimaboard 2s for larger nodes as those have 16gb.

I like the boards, they perform well and the intel cpus in them have internal GPUs so for light transcoding or GPU loads they can be leveraged without need for GPU cards. After trying several other x86 based options, Zimaboards are my preferred option.

utjebe@reddthat.com on 26 May 07:29 next collapse

€200-250 is the entry point for something like 10th gen i5. You mostly get 1 year warranty on refurbished hw and as long as it is not DoA, it will be fine. These machiness are for sale because of accounting, not because of being broken

zzffyfajzkzhnsweqm@sh.itjust.works on 26 May 10:16 next collapse

Do not run kubernetes nodes as LXC. I mean you can for testing etc… BUt you will have to break sandboxing because of networking capabilities kubernetes requires. At least that was the case for K3S. You could probably have better experience with Kind.

Eldaroth@lemmy.world on 26 May 19:17 collapse

Not planning to run nodes as LXC at all. Just using them in my current setup for running services like Wireguard or Jellyfin.

At most I would create VMs for nodes, but still on the fence if I should just go bare metal or proxmox with virtualized nodes (VM).

zzffyfajzkzhnsweqm@sh.itjust.works on 26 May 19:21 collapse

I would go with two (or more) proxmox nodes working as one. And then running even more VMs on them as kubernetes nodes. Proxmox handles lots of stuff for yout that is harder to handle in phusical machine.

Decronym@lemmy.decronym.xyz on 26 May 10:20 next collapse

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters
DNS Domain Name Service/System
HA Home Assistant automation software
~ High Availability
LXC Linux Containers
VPN Virtual Private Network
k8s Kubernetes container management package

4 acronyms in this thread; the most compressed thread commented on today has 16 acronyms.

[Thread #316 for this comm, first seen 26th May 2026, 10:20] [FAQ] [Full list] [Contact] [Source code]

PseudoRandomGermanPerson@programming.dev on 26 May 12:30 next collapse

My janky(-ish) but fun plan is to use laptop motherboards, either from broken laptops or AliExpress. Wire them up with an ATX powersupply and that should be a cheap and powerful cluster. If you want something less hacky the same idea but with used mini-PCs from offices.

spicehoarder@lemmy.zip on 26 May 13:49 collapse

Freecycle or ebay