I need a personal Kubernetes cluster with around 64 GB of RAM, but CPU and storage are less of a concern. My cloud credits are ending, and I'm weighing continued hosting against buying refurbished hardware. Is the home setup worth the cost and apartment hassle?
Cloud or refurbished hardware for a 64 GB Kubernetes cluster?
Answers
Start with a monthly cloud estimate for the memory you actually need, not just the number of nodes. Include disks, any load balancer, network traffic and the cost of keeping it running when you're not using it.
Then compare that with the hardware price plus electricity over the same period. A rough break-even point is the hardware cost divided by the monthly cloud cost minus monthly power cost, assuming cloud costs more each month. That won't price your time or hardware failures, but it gives you a useful starting point.
Reply to this answer
If you want a cluster running all the time and don't mind maintaining machines, refurbished mini PCs or a workstation are worth a look. Check the RAM capacity and upgrade cost before buying. Cheap used machines often come with much less memory than you need.
One larger machine with a hypervisor can run several Kubernetes nodes as VMs. That's handy for learning and rebuilding nodes, though a single hardware failure still takes the whole cluster down. Multiple small machines give you separate physical hosts but need more space, power connections and networking.
c.214~tavzori:
A hypervisor can make snapshots and VM management convenient, but you'll still need to plan and test backups for anything you care about.
Reply to this answer
If the thought of hardware in the apartment already sounds annoying, paying for cloud convenience may be worth it. You avoid finding space for machines and dealing with their power and repairs. Compare a smaller cloud provider with the larger ones rather than assuming they cost the same.
Reply to this answer
What needs to reach this cluster? For private experiments, a home setup can be pretty simple. Public services add another set of questions: whether your home connection allows inbound access, whether the address changes, and how you'll secure access.
Cloud hosting may be easier for something that needs to stay publicly reachable. A tunnel is another option for a home cluster, but check what it supports and what it costs.
Reply to this answer
Does it actually need to run 24 hours a day? If not, a local cluster on a machine you already have could be enough for occasional Kubernetes work. You could also stop cloud resources between sessions, though check which resources still incur charges when stopped.
Reply to this answer
Add your answer
Answers are reviewed before publication.
6y-Zelquar:
Also leave some memory for the host OS and Kubernetes components. Sixty-four GB installed isn't the same as 64 GB available to workloads.