TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Converting an old MacBook into an always-on personal Kubernetes cluster

189 pointsby spalasabout 5 years ago

20 comments

wpietriabout 5 years ago
For what it&#x27;s worth, I built one like this on an old Linux laptop. I then moved my home lighting controller onto it as a test. Some months later my house lights stopped working, and I had to spend a few hours applying snippets semi-randomly from Stack Overflow. It could be the problem was due to expired Kubernetes certificates, or it could be something else.<p>Either way, my conclusion was that Kubernetes is really meant for more scale and attention than I like to give my home infrastructure, so although I enjoyed the experiment, I would encourage people not to run important services on something like this.
评论 #22663951 未加载
评论 #22663409 未加载
评论 #22665445 未加载
s-kmabout 5 years ago
What sort of fun projects&#x2F;experiments do people do with a super low powered k8s cluster locally?<p>I&#x27;m kind of in this weird position where I understand the benefits and use of k8s, but I:<p>a) Can&#x27;t think of any cutesy distributed systems&#x2F;microservices type thing that I could or would want to run on a low power machine locally (lack of processing power or ISP getting pissed off @ massive amount of traffic if you&#x27;re e.g. scraping a ton of data and doing stream processing on it in your little cluster)<p>b) Don&#x27;t really understand the point in investing time in it, as it feels like one of those things you learn on the job as it comes up. And for a lot of people (the majority, probably?) it&#x27;ll probably never even come up unless they just are hunting for new tech to introduce at work regardless of if the business actually needs it. Which IMO, most businesses don&#x27;t even have a compelling reason to switch from the old 3 tier monolith architecture.
评论 #22661733 未加载
评论 #22662260 未加载
评论 #22661824 未加载
评论 #22662632 未加载
评论 #22662137 未加载
mosselmanabout 5 years ago
You could sell the MacBook and build a decent raspberrypi cluster with the money you make on it.
评论 #22662216 未加载
评论 #22663281 未加载
评论 #22662147 未加载
评论 #22662996 未加载
ivan4thabout 5 years ago
For me there&#x27;s very good reason for running home k8s cluster: dogfood factor. I run my smarthome and home surveillance (zoneminder) stuff, along with UniFi controller on k8s, and I must say that helps me a great deal with SRE part of my job. I do learn some important things before I encounter them in the work setting, such as: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;ivan4th&#x2F;status&#x2F;1236481744477532171" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;ivan4th&#x2F;status&#x2F;1236481744477532171</a>
bluedinoabout 5 years ago
An HP or Dell USFF PC would be a great alternative. Something like an OptiPlex 7010 or 800 G2. You can pick them up for $50 used, if you need more power you can add as large of an SSD as you want plus 16GB of RAM, they&#x27;re small and quiet and can run Linux.
评论 #22664446 未加载
captn3m0about 5 years ago
I used to run minikube on my MBA till last year (Was running Arch). It was very underpowered to run a cluster, as I guess they&#x27;ll soon find out. This was a MBA 2015, so the OP&#x27;s 2012 MBA is even less powerful.<p>The fans would start whirring, and the device was immediately unusable for anything else. I switched to using microk8s, which is slightly better, but still makes the device crawls. The MBA also only has 4GB RAM, which is very low on what you might count as k8s-ready.
评论 #22663219 未加载
评论 #22667016 未加载
johnchristopherabout 5 years ago
There are things I don&#x27;t understand with Kubernetes and the &quot;spin up containers as needed&quot;. How do you spin up different databases ? It won&#x27;t sync, unless your code takes that into account... Say, I have a simple WP site running with a web, a php and a db container... What&#x27;s the schema to give 2 or 3 more database container and still have visitors see the same content ? (and the databases being consistent) Set up replication ?
评论 #22667797 未加载
评论 #22663007 未加载
DmitryOlshanskyabout 5 years ago
Or how to elegantly waste a perfectly fine piece of hardware in a neatly over-engineered way ;)
greyskullabout 5 years ago
I wonder what it would take to do something like this with kind[0] so you can have something resembling an actual multi-node cluster, if it&#x27;s even possible.<p>I&#x27;ve used kind successfully on WSL for experimenting locally, and even found a script to open up ports on the firewall and set up a port &quot;forwarding&quot; of sorts using the netsh utility, which let me access a program bound to a port within WSL. Though I suspect additional hurdles considering however the networking for kind works.<p>[0] <a href="https:&#x2F;&#x2F;kind.sigs.k8s.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kind.sigs.k8s.io&#x2F;</a>
评论 #22661762 未加载
punnerudabout 5 years ago
If you want to use your own domain you can turn Cloudflare into a DDNS by frequently checking your public-IP for changes and update the records on Cloudflare using their API if it change (this is free, except the domain cost): <a href="https:&#x2F;&#x2F;github.com&#x2F;punnerud&#x2F;cloudflare-ddns" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;punnerud&#x2F;cloudflare-ddns</a>
评论 #22662393 未加载
评论 #22663170 未加载
viroabout 5 years ago
Am I the only person that gets bugged when people use the word cluster for a single computer?
评论 #22667020 未加载
评论 #22664734 未加载
fulafelabout 5 years ago
Anyone have a theory why they&#x27;re running OS X on it?
评论 #22661949 未加载
评论 #22661914 未加载
fortran77about 5 years ago
I&#x27;ve had bad luck keeping laptops powered 24&#x2F;7 for months or years. The battery always swells and fails.
评论 #22665590 未加载
spalasabout 5 years ago
Initially, I tried doing this with a 2010 Mac Mini (which claims to support VMX), but couldn&#x27;t get Minikube running on it...<p>For the past two weeks though, I haven&#x27;t had any issues with this setup on the Macbook Air!
评论 #22661583 未加载
评论 #22661520 未加载
apiabout 5 years ago
Works just as well on any sufficiently powerful old laptop. I find that any damaged laptop or one with a battery that doesn&#x27;t hold a charge converts nicely into a home or lab server.
xwdvabout 5 years ago
A better thing to do with an old MacBook is using it for an Arcade cabinet.<p>I wish the person who wrote this article described what he did next with this K8s cluster. Probably nothing.
评论 #22665712 未加载
brian_herman__about 5 years ago
Should I do this to my 2009 macbook?
评论 #22665490 未加载
drcengabout 5 years ago
But we are always at home nowadays…
jarielabout 5 years ago
Why would one want a &#x27;personal kube cluster&#x27;?
评论 #22666792 未加载
评论 #22664368 未加载
jstewartmobileabout 5 years ago
macbook air is a good computer. put it in a drawer. it might still come in handy one day.<p>shitting it up and wearing it down with kubernetes is a guaranteed wrong move.