How can I set up a two-node cluster using a Raspberry Pi and a laptop?
Asked by
+extra mittens
I'm trying to create a heterogeneous two-node cluster using my Raspberry Pi 3B Plus and a Dell Latitude laptop, both connected via Ethernet on the same network. I want to run more containers on this cluster than I could individually on either device. I'm not sure where to start or look for documentation on how to achieve this. Any guidance would be appreciated!
Answers
It sounds like you might need to add another Raspberry Pi to your setup. Kubernetes typically requires an odd number of nodes to maintain quorum in etcd, so having just the two might not provide the best distributed experience. If you can grab another Pi, youโll be in a better spot!
Reply to this answer
Keep in mind that you have devices with different architectures (Arm64 for the Pi and x86-64 for the laptop), which makes it tricky. Youโre going to want to look into creating multi-architecture containers, as x86 containers wonโt run smoothly on the Raspberry Pi.
Reply to this answer
Have you considered using k3s? It's super easy to set up. You can install it on one device first and then get your other machine to join with just a couple of commands. It might be exactly what you need!
+extra mittens: Thatโs actually the first thing I tried, but I ran into issues and it kept locking up my Pi.
Reply to this answer
Add your answer
Answers are reviewed before publication.
4arcsec-error: Haha, maybe thatโs a good excuse for me to finally get a Raspberry Pi 4!