Live data from Hacker News

Raspberry Pi Homelab with Kubernetes

amithm.ca

31–40 of 52 posts

Re: Raspberry Pi Homelab with Kubernetes

#31

I understand the allure of real hardware and doing this on a physical cluster but I'm always surprised not to see K8s/k3s/whatever running under (inside?) LXD as a learning/experimentation tool discussed more often. The physical cabling, underlying operating system, bootstrapping etc strikes me as the least of the K8s learning experience and the only advantage of a toy running on Pis vs LXD. Not to mention most K8s d…

That's how I learned and experimented with k8s, I did try VM first but it was too heavy and I used lxd. The idea of building hardware just to run k8 even pi is too much work for me. Some folks say you can power it off, and I say you can lxc stop. I used https://github.com/sebiwi/kubernetes-coreos, it's dated tho.

Re: Raspberry Pi Homelab with Kubernetes

#32

As has become my habit lately, I'll chime in and say if you're interested in accessing your self-hosted services from the internet, IMO tunneling is the way to go: https://github.com/anderspitman/awesome-tunneling

Quite a coincidence running into you on HN. I recently did need to setup tunneling to access my home cluster and stumbled on your list. I found frp and was up and running in a jiffy. Thanks for the list!

Re: Raspberry Pi Homelab with Kubernetes

#34

Why are people still posting these Pi homelabs they have been done to death. I run microk8s on KVM running in Mesos with openvswitch and Mikrotik CRS/CCRs.

Because they have a lot of Raspberry Pis, they want to setup kubernetes, and they have fun doing it and what to share that with the rest of the internet?

Re: Raspberry Pi Homelab with Kubernetes

#35

Why are people still posting these Pi homelabs they have been done to death. I run microk8s on KVM running in Mesos with openvswitch and Mikrotik CRS/CCRs.

Because they have a lot of Raspberry Pis, they want to setup kubernetes, and they have fun doing it and what to share that with the rest of the internet?

It's been done since 2014 when K8s came out. Move on please. Still I guess it's better than AKS.

Re: Raspberry Pi Homelab with Kubernetes

#36
Once upon a time the cool thing to do was to build RAIDs out of USB sticks. Or SD cards. Or floppy disk drives.

Raspberry Pi isn't as laughable as that, but the fact is that what you are getting out of this is a learning opportunity, not a reliable or high-capacity computing platform.

And even there, 4 Pi4Bs with 8GB will cost you $400 and more, once you add in power supplies and SD cards and desiderata. The first hit on Craigslist just now was a $200 4 core i7 with 8GB of RAM (upgradable) and a 256GB SSD in a nice small case. Two of those will get you better overall performance and leave room for expansion.

Re: Raspberry Pi Homelab with Kubernetes

#37

I understand the allure of real hardware and doing this on a physical cluster but I'm always surprised not to see K8s/k3s/whatever running under (inside?) LXD as a learning/experimentation tool discussed more often. The physical cabling, underlying operating system, bootstrapping etc strikes me as the least of the K8s learning experience and the only advantage of a toy running on Pis vs LXD. Not to mention most K8s d…

Rancher has a sibling open source project called k3d that allows you to run single- or multi-node K3S clusters entirely within Docker containers.

https://k3d.io/

Re: Raspberry Pi Homelab with Kubernetes

#38
post #24

Earlier quoted context omitted.

Most of my services are only available by using a vpn into my home network. I can understand why you might need a public facing service but I avoid it like the plague.

I see it as an important step to a more decentralized future. For example, I know a few people who maintain Plex servers for their friends and family. This works quite well, but getting the server on the internet is the trickiest part. You can sink a lot of time into configuring routers, managing certs, NAT, DMZ, LMNOP. Or you can use a tunneling service that manages all of it for you.

The way to a more decentralized future is through yet another third-party service?

Re: Raspberry Pi Homelab with Kubernetes

#39
post #2

I have what I feel is an irrational desire to build an RPi k8s cluster. I feel like I would be better served by a small x86 box, but something about having a real cluster really appeals to me.

Data scientist Holden Karau has done this, posts videos about it on YouTube.

Re: Raspberry Pi Homelab with Kubernetes

#40

I've found k3s ( https://k3s.io/ ) to be extremely easy to use for setting up and running kubernetes on a group of Raspberry Pis. Specifically, I followed this guide to get my clusters up and running quickly and it's worked out pretty well: https://blog.alexellis.io/test-drive-k3s-on-raspberry-pi/

Its easy, but it uses 50% CPU idle and it would probably use more if it weren’t blocked on SD card writes (it uses 100% SD card bandwidth). I tested this multiple times on a RPI 3B this last week with different individual Pis and different SD cards. There are also many bug reports to the same general sentiment.
Post reply on HN