Building a 10-Node Kubernetes Cluster on Raspberry Pi & Ubuntu Server

  Рет қаралды 71,658

Learn Linux TV

Learn Linux TV

Күн бұрын

Пікірлер: 106
@themenon
@themenon 3 жыл бұрын
I can't still believe that your high-quality tutorials are free. Would love to learn more about Kubernetes from your channel
@rille47
@rille47 3 жыл бұрын
Nice vid man, this whole 10 nodes setup/config would be perfect candidate for Ansible to orchestrate - You´d run all the setup from one shell... and share the playbooks on your wiki.
@quietsyful
@quietsyful 3 жыл бұрын
You're a great teacher. You have a sense for making advanced topics beginner friendly.
@realdanbyers
@realdanbyers Жыл бұрын
You're the MVD (Most Valuable Dude) when it comes to Linux . Thank you !
@myuniversalblip706
@myuniversalblip706 2 жыл бұрын
Great video! I’m impatiently waiting on Amazon to deliver all the items and I will be building mine next week. Thank you for the detail in your video. I’m learning Linux, as well, and really appreciate your channel.
@darlakim5120
@darlakim5120 2 жыл бұрын
Let us know how it goes! I’m rebuilding mine (4-node) upgrading to 22.04 LTS
@daverawson123
@daverawson123 3 жыл бұрын
At last after many attempts, trying to follow a different tutorial series, I have five Pi-4s running in a cluster. What’s more I understand exactly what I’ve been doing and when the dreaded typo crept in, where it was and how to fix it. A big thank you to you Jay👏
@neoplasma1
@neoplasma1 3 жыл бұрын
I’m starting to learn. What can you do with the cluster now? Like what do you do with it?
@neoplasma1
@neoplasma1 3 жыл бұрын
I’m starting to learn. What can you do with the cluster now? Like what do you do with it?
@neoplasma1
@neoplasma1 3 жыл бұрын
I’m starting to learn. What can you do with the cluster now? Like what do you do with it?
@juanpaul6141
@juanpaul6141 2 жыл бұрын
Thanks Jay for taking your time to teach us. I really value how much patience you've and your in depth material never assuming things. Moreover thanks for making this content available for us free of charge.
@ritooraj
@ritooraj 3 жыл бұрын
I think I learnt more in this one and half hour video than all the searches that I did in last few days! Thank you for the great content and presentation.
@aaronperl
@aaronperl 3 жыл бұрын
Thank you. I've been trying to learn Kubernetes for a few months, and I feel like I'm getting the hang of it, but one thing I've never been able to find is step-by-step how to install my own Kubernetes cluster on my own servers. Everything I've found either recommends a hosted service, which is not at all helpful for trying to learn how Kubernetes works, or is too high level, "you need to install several packages." So thank you!
@benjamin9073
@benjamin9073 3 жыл бұрын
Nice. (Especially the size of the cluster. Yes, there are bigger clusters, but there is a "too big" when you could simply go for 2+ normal computers. Yes, there are clusters with 4k cores. But no normal person needs that.) Some ideas for improvement below. This is quite easy: There are tools to run commands on all servers in a list. - You might want to have a test machine to run the commands just to be sure that you do not crash all nodes. (So e.g. run the command on node 1 and use the tool to run the update for all nodes and maybe the controller.) You can add a second network over the same hardware interface - did this for a different purpose while using VLAN. (Ignore if you won't move the cluster to other people's networks.) - While using the normal network to connect to the internet you can use the second network (with static ip addresses) to connect to the PIs easily, - Biggest problem would be when you connect to a network that collides with the internal cluster network. (e.g. both use 192.168.123.x - but there are 255 other ip ranges that might be used for the network you connect to. So if you use a random number it should be unlikely to happen?) These are harder, but quite nice in the long run: You can add a proxy with cache for updates (when using apt / apt-get). - You might want to add a disk to one of your machines. (That machine will download everything once and the proxy will distribute the data to all machines that use the proxy.) - No problem with downloading everything 11 times and getting blocked. And you have more bandwidth for other things. (You can add your own registry for docker. - In this case the disk should be "huge". (Some updates should not be a problem for a while. But docker images... well...) - Same as above. More bandwidth for other machines. And of course you could use that service for other computers as well. (Of course you will most likely need to download different images.) You can install tools like Rancher in a VM on your desktop to manage the k8s cluster. - The PIs are not powerful enough to host Rancher. And you do not need Rancher to be running all the time. But it is quite nice to have a UI for some things admins need/want to do? ...)
@joir2000
@joir2000 3 жыл бұрын
Thanks for this video. Very interesting! I am looking forward to you kubernetes tutorial.
@emiliojoserodriguezbejaran5236
@emiliojoserodriguezbejaran5236 3 жыл бұрын
from Cuba ..thanks a lot Jay and please keep on your teachings
@stephenlipton525
@stephenlipton525 2 жыл бұрын
Hi Jay and greetings from Ireland. I followed your proxmox tutorial series and successfully set up a 3 machine cluster from old pc’s that I was told to scrap . My budget is very limited and I would need to cannibalise my proxmox setup. I Know all learning is good and I’m not asking for anything other than your opinion. My question is this, “As you know both Proxmox and Kubernetes, which of the two would you say is the most flexible and worth devoting time to learn?” I hope you get a moment to answer. Your videos are excellent. I can honestly say that everything I have been inspired to try from your channel the complete resources and information has been available. Keep up the great work.!
@kenzieduckmoo
@kenzieduckmoo 3 жыл бұрын
It would be great for you to give a lot of recommendations on things to run that would take advantage of clusters, and maybe even stuff like load balancing so you could put in one address and it just pops up no matter which it lands on
@mandeepmails
@mandeepmails 2 жыл бұрын
Best tutorial on the youtube for the subject. Totally Professional, Well-Explained, Couldn't be done better than this. Which Zsh (terminal) theme is this you're using ?
@johnbrinnand6830
@johnbrinnand6830 3 жыл бұрын
Nicely prepared and well paced. Many thanks.
@OhItsAnthony
@OhItsAnthony 3 жыл бұрын
Just FYI, if you add a '00:00:00 - Intro' line to the top of the time codes list in the description (minus the ' ' of course) then KZbin will add chapters to the video, which might make it easier for people to navigate.
@LearnLinuxTV
@LearnLinuxTV 3 жыл бұрын
Wow, thank you so much!
@JediOutcastBex
@JediOutcastBex 3 жыл бұрын
This is sooo cool! Thanks for making this video!! 😎 Also love the case!
@zakariafadli9383
@zakariafadli9383 3 жыл бұрын
First video i ll watch when i ll buy my turing pi 2
@LearnLinuxTV
@LearnLinuxTV 3 жыл бұрын
When that comes out, i should have a dedicated video on that if all goes according to my master plan.
@daverawson123
@daverawson123 3 жыл бұрын
Great lesson. I think now I understand the process. However I’m left feeling that you break the D.R.Y principal by provisioning each card separately. Might it not be more efficient to fully provision one card, without errors(!) and then use dd to clone the rest. Yes you have to change host name and hosts as well as the special case of the controller? What no Ansible! 😂
@anujdatar
@anujdatar 3 жыл бұрын
You could probably Etcher instead of USB imager, that automatically erases your SD cards before writing your image. So you don't have to manually delete the partition table every time. Works on windows, linux and macOS..
@onebeartoe
@onebeartoe 3 жыл бұрын
Great work, Jay!
@trisunadi
@trisunadi 3 жыл бұрын
Wow 1 hour gold video.
@reynaldoquispe9335
@reynaldoquispe9335 3 жыл бұрын
very cool video (Y) it is well explained
@robd.2466
@robd.2466 3 жыл бұрын
Love the tutorials. Thanks much. A linux vlan tutorial would be appreciated. Isn't much quality content on the subject on youtube. Thanks again.
@StenIsaksson
@StenIsaksson 3 жыл бұрын
On Windows 10 you can use PowerShell to connect to the server with SSH It's built in to Windows 10. Same commands and all.
@LordOfWizardurl
@LordOfWizardurl 3 жыл бұрын
Use powershell kid.
@RoyOlsen
@RoyOlsen 3 жыл бұрын
Brief suggestions: Docker is not required. K3S or microk8s are better choices of Kubernetes distributions. Use Ansible.
@frenzscivola3099
@frenzscivola3099 2 жыл бұрын
Dear, the step at 38:35 is not possible for ubuntu users, since the firmware directory doesn't exist in /boot. Is it a fundamental thing to do? Thank you
@MrTartans
@MrTartans 2 жыл бұрын
Great content
@ahmedhabib6131
@ahmedhabib6131 3 жыл бұрын
Hi, I would like to thank you for all the work you put in this. Truly amazing! Is there a way that you can build on this video? meaning, instead of using Flannel maybe using Metallb? thank you for the help.
@davidshainidze3930
@davidshainidze3930 3 жыл бұрын
You are really great!!! Thank you!
@wei-shunbao9490
@wei-shunbao9490 2 жыл бұрын
I'm just curious: is there any scalable and efficient way to install and configure all raspberry PI nodes in one go? Most of the operations are repetitive and tedious.
@tenkaranebraska927
@tenkaranebraska927 3 жыл бұрын
Great video. I have it up and running, but now what can I use it for. My original thought was to use it as a NAS (FreeNAS) server or a Plex server. But I haven't been able to find any information on exactly how to do that. Again, great video and thanks for providing these instructions.
@vitusyu9583
@vitusyu9583 2 жыл бұрын
Hi Jay, couldn’t find your Kubernetes videos you mentioned in this video. Have you done the series on this?
@thecastlepotomac
@thecastlepotomac 3 жыл бұрын
I came 11 minutes after the upload :)
@DarthDweeb
@DarthDweeb 3 жыл бұрын
so if smokeping starts on another node does it still have access to the data? Or is it only persistent on that particular node?
@jackmclane1826
@jackmclane1826 3 жыл бұрын
It surely is an interesting project. How would such a cluster compete performancewise against a conventional server build using more conventional hardware of the same budget? There is ~2000€ of gear involved. You can build a quite serious server power for that kind of money! Two if you wish to get some increased reliability..
@jensodotnet
@jensodotnet 3 жыл бұрын
try using a piece of tape overhanging a corner to pull on next time you need to peal :)
@astronomos826
@astronomos826 3 жыл бұрын
Thanks a lot! I just finished to build the same supplier case for 4 pi. After installing the k3s cluster I don't know where to go and how to access my containers from outside.
3 жыл бұрын
It should be possible to power the Pi via GPIO and boot the PI via network so maybe it would be possible have one PI as a boot server. A way of powering a bunch of PI with an left over PSU from a computer would do.
@mathieuleclerc4136
@mathieuleclerc4136 3 жыл бұрын
Is PoE Hat a good idea on all the raspberry pis on cluster mode?
@CJTravismizzou
@CJTravismizzou 3 жыл бұрын
Great video. Can you share your bash prompt $PS1 config? Really dig that!
@ChrisVogtmann
@ChrisVogtmann 3 жыл бұрын
Any updates on the Kubernetes course this summer? highly interested!
@parthmaniar
@parthmaniar 3 жыл бұрын
Hi Jay, thank you very much for this very detailed and useful video. I sincerely it. I have a question if there's any specific reason for not using microk8s by Canonical as opposed to k8s? Thank you very much.
@seths1997
@seths1997 3 жыл бұрын
58:16 "I keep re-running this command periodically..." - or you could just do "watch 'kubectl get nodes'" and let it refresh automatically every few seconds
@bradleystannard3492
@bradleystannard3492 3 жыл бұрын
the ansible dev in me cringed so hard, but awesome video walking beginners through!
@chrtzstn
@chrtzstn 3 жыл бұрын
Can replace the sd cards by small ssd drives?
@AaronWeissRocks
@AaronWeissRocks 3 жыл бұрын
Can you explain more about that specific POE hat? I've been using the official one but like the low profile of the one you have.
@nizmister
@nizmister 3 жыл бұрын
Yes! I would love if you can add a link to where we can get one.
@elminster8149
@elminster8149 3 жыл бұрын
@@nizmister @Aaron Weiss Read the description "Components used in this build"
@kellingc
@kellingc 2 жыл бұрын
A couple of things I have a question on - could you set up one of the nodes as an authentication server (and one or two as backup)? That way you just need to do user management in one place, and have that authenticate through the cluster? On your entire network for that matter. Or right a bash (or zsh, sh, or whatever shell) script to propagate to each node? Also, write a script to execute the set up commands for you instead of having to switch to each node. Lastly, NAS seems like a wonderful solution here, allowing each node.access to common files and a central place to put logs things like logs. Certain things like hostname and resollv would probably need to be on each node.
@tihomirkehayov
@tihomirkehayov Жыл бұрын
Is the rack mount compatible with the pi5?
@SondeEscanilla25
@SondeEscanilla25 3 жыл бұрын
Good morning do you have video on installing multiple node. I planning to run multiple node like ethereum, and other cryptocurrency node. Thanks and more power hope you will reply
@grumpyboomer9107
@grumpyboomer9107 3 жыл бұрын
head's up if your trying to to boot via USB 3 with a flash drive, SSD or m.2 you'll need to use the 21.04 version of Ubuntu Server. The "20.04 LTS" doesn't support EEPROM update to RPi4. It is disappointing that the "long term support" ha snot been fixed yet
@marmao78
@marmao78 3 жыл бұрын
Thank you for the great content. I would loke your help about two questions. 1- is it possible to run runcher or portainer with kubernetes on only two machines (controler and node)? In case of a three machine setup (controler and two nodes). If one of the nodes is down, is it possible to start this node with the cluster again without reinstalling everything? Thank you for all your knowledge.
@chizz12
@chizz12 9 ай бұрын
Hey I have a question! Could I build a Kubernetes Cluster to run a Minecraft Server. And have a headless linux server to manage the Kubernetes Cluster?
@BrianThomas
@BrianThomas 3 жыл бұрын
Is there a simple way to configure booting to USB on all nodes including the master VIA YAML instead of using the SD card?
@SimionChis
@SimionChis 3 жыл бұрын
It will be nice to see how can we setup a reverse proxy (nginx) with some apache server behind. I have tried with LXD/LXC but I am out of hair on my head. So I lost my resources :)
@RCYIJustinizer
@RCYIJustinizer 3 жыл бұрын
May I know how do I install the PiHole and Home assistant into my Pi Cluster? I am totally new to this
@roccocoetzee2188
@roccocoetzee2188 3 жыл бұрын
Wow I definitely want to watch this video soon... I've just purchased my first Pi 4 with cluster hat and 4 Pi Zeros 1.3... I want to setup my first cluster... The hat came with instructions how to setup cluster with rasbian os but I wonder if I shouldn't try to do your setup with cubernites... Do you think I could do that on a Pi 4 8gb controller and 4 Pi Zero 1.3's?
@dr.mikeybee
@dr.mikeybee 3 жыл бұрын
Is there a reason why you didn't use the fabric package to update all the pis?
@ryanbell85
@ryanbell85 3 жыл бұрын
Oh man.... I really wish this was done across his 2 node Proxmox cluster. I've been trying to setup this with 2 controller machines with a load balancer but it has been difficult.
@b87b84
@b87b84 3 жыл бұрын
So. Can i build a less than 10 nodes cluster? What should I do with node modules. Just delete the directory or should I no-detect a no-defined line with missing semicolon on my python dataframe with a .jar go file or a .rb scala file? I just don't get it.
@garyleeson
@garyleeson 3 жыл бұрын
Have you considered using k3s and k3sup for Kubernetes cluster and setup? Makes things a lot simpler for home clusters
@spy.catcher
@spy.catcher 3 жыл бұрын
I don't know but I think it'd be easier to follow if u turn the camera 180degrees so that your hands are at the bottom instead of at the top..or you turn it upside down at post. nice content though.
@AliHaidar
@AliHaidar 3 жыл бұрын
Great tutorial as usual! I'm trying this on 3 computers. I managed to follow all the steps except "edit /boot/firmware/cmdline.txt", dont have that file on pc. I managed to get nginx up and running. But the problem is i can only reach nginx via ip on the node it is on, not on the other 2. Any idea why anyone
@Gibbylowks805
@Gibbylowks805 3 жыл бұрын
How do you run the akash network on this
@simonthomson2794
@simonthomson2794 3 жыл бұрын
Hi, when you are editing the hosts file do you have to add a similar line for all the nodes i.e. "127.0.1.2 node02" many thanks
@argniests5357
@argniests5357 3 жыл бұрын
did you find out if that was needed ???
@bachel9569
@bachel9569 3 жыл бұрын
Can you pls link the case I cant find it on their Website
@D3M0320
@D3M0320 3 жыл бұрын
Does powershell not support SSH?
@robertumbres8711
@robertumbres8711 2 жыл бұрын
Does this work with ubuntu 22.04.1 LTS?
@AviDarks
@AviDarks Жыл бұрын
Unable to update or re -prepare the video? It's been two years and I'm sure there have been changes since.
@bluesdog88
@bluesdog88 3 жыл бұрын
I have a 5 Pi cluster case, is liquid cooling going too far?
@LearnLinuxTV
@LearnLinuxTV 3 жыл бұрын
That sounds interesting, do you have a picture? I've never heard of anyone doing that with Raspberry Pi before.
@magicguirarman
@magicguirarman 3 жыл бұрын
Possibly, but I doubt anyone here will judge.
@bluesdog88
@bluesdog88 3 жыл бұрын
@@LearnLinuxTV no pic but there's plenty of youtubes: kzbin.info/www/bejne/rmS1lqt4drB1bsk
@codingblaze4611
@codingblaze4611 3 жыл бұрын
Can we host a website on that cluster?
@DigisDen
@DigisDen 3 жыл бұрын
I love the look of the case but the problem I see is that if you have a single node fail, you have to pull the whole thing apart to replace it. Doing that without powering down the cluster looks nigh on impossible which makes this case practically useless. The whole idea of a cluster is that it is resilient.
@ianpogi5
@ianpogi5 3 жыл бұрын
how about storage? how do we connect them?
@itskill9695
@itskill9695 3 жыл бұрын
when the 2nd video is uploded ?
@sc0or
@sc0or 3 жыл бұрын
Isn't 3-5 pies enough to learn some tricks in cluster computing? That 10 pies funny project won't beat one Ryzen 7 (with a MB, RAM and PSU) for the same price. About the same.
@jasonrbodie
@jasonrbodie 3 жыл бұрын
Have you ever ran benchmarks on a raspberry pi Kubernetes setup?
@Pooflab
@Pooflab 3 жыл бұрын
YEEESSSS
@rkaid577
@rkaid577 3 жыл бұрын
Why make a 10 node cluster when you don't use more than one node? Otherwise a great video, but it would be nice to see some practical application for a multi-node cluster.
@spencer3175
@spencer3175 3 жыл бұрын
Why use Ubuntu server over piOs lite? Also is it possible to migrate current docker containers over without recreating from scratch? I have a pi 4 with pi OS lite running OMV 5 and docker with several containers. I want to create a cluster with my 2 extra pi 3 b but grudging over rebuilding my entire setup if I create a cluster with Ubuntu or piOs lite. Thanks
@16pxdesign
@16pxdesign 3 жыл бұрын
It doesn't matter till you keep your system lightweight. K8 uses the same image for containers however it differs in YAML configuration compared to the docker YAML file. You can use K8 even with one node (one pi) others are just workers (but can also be controllers) however configuration on nodes can be totally different in OS, hardware, accessibility, or location. K8 is just distributed and helps scale containers across all your machinces. He showed a little overkill configuration, there is k3s (Kubernetes light) prepared for less powerful full devices. Deploying cluster on the Raspberry PI is more Lab than practice solution as performance is not really satisfy (mainly due to big ram consumption)
@spencer3175
@spencer3175 3 жыл бұрын
@@16pxdesign Thanks
@PeterLake
@PeterLake 3 жыл бұрын
This is great ...... one thing I learn't - DON'T put a Tab in a YML file!
@LeeSteventon
@LeeSteventon 3 жыл бұрын
Important note on POE HATs: If you buy the official Raspberry PI POE+ HAT to use in this setup, you will not be able to connect the fans, as the POE+ HAT uses all of the power pins, leaving none left over for the fans! A costly mistake I made!
@sibujacob977
@sibujacob977 3 жыл бұрын
I still dont understand why you are showing somethng that runs only background processs. Kubernetes is not for front end application. It is not interesting either !!
@skylark.kraken
@skylark.kraken Жыл бұрын
Well "go big or go home", you're already home so you don't need to go big. It would be a terrible video but don't take that saying as a contractual obligation
@kearneyIT
@kearneyIT Жыл бұрын
you should go watch someone else. Jay is a legend. Thanks Jay!
@sinchrotron
@sinchrotron 2 жыл бұрын
I'm sorry bro, but I cannot consume linux how-to learning videos with Indian accent:/
@ppsasi8928
@ppsasi8928 3 жыл бұрын
please make shorter videos. i watched this with 3x in newpipe
Setting up a Raspberry Pi Kubernetes Cluster with Ubuntu 20.04
53:32
Learn Linux TV
Рет қаралды 64 М.
Inside the V3 Nazi Super Gun
19:52
Blue Paw Print
Рет қаралды 3 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Getting started with LXD Containerization (Full Guide!)
32:21
Learn Linux TV
Рет қаралды 88 М.
4 Pis on a mini ITX board! The Turing Pi 2
22:36
Jeff Geerling
Рет қаралды 1,4 МЛН
A Computer Cluster Made With BROKEN PCs
24:34
Hardware Haven
Рет қаралды 235 М.
Incredible Budget Home Server! (Minecraft, Plex, Home Assistant, NAS)
16:38
Hardware Haven
Рет қаралды 2,1 МЛН
Homelab upgrade: New Raspberry Pi Cluster rackmount
14:44
Jeff Geerling
Рет қаралды 579 М.
One cable, two SSDs: the first Pi 5 PoE HAT
8:34
Jeff Geerling
Рет қаралды 217 М.
10 Watt HA Proxmox Cluster ft. ZimaBoard
12:41
Raid Owl
Рет қаралды 258 М.
The ULTIMATE Raspberry Pi 5 NAS
32:14
Jeff Geerling
Рет қаралды 2,8 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19