Raspberry Pi Cluster Ep 3 - Installing Kubernetes (K3s) on the Turing Pi

preview_player
Показать описание
In this video, I show you how to find the new Raspberry Pis on your network and connect to them with SSH. Then I explain Kubernetes and the many different flavors of Kubernetes you could install on a Raspberry Pi.

Finally, I set up Rancher's K3s lightweight Kubernetes distribution on the Turing Pi cluster, make sure the cluster is working correctly, then show you how to shut down the cluster safely.

Contents:

00:00 - Intro
01:08 - Use nmap to find your Pis
04:01 - What's Kubernetes?
05:38 - Many ways to install K8s
07:49 - Installing K3s
10:57 - Running the k3s-ansible playbook
13:53 - Connecting to the cluster with kubectl
15:51 - Shut down all the Pis with Ansible
16:54 - Outtro

Mentioned in this video:

Рекомендации по теме
Комментарии
Автор

Jeff: "IP adresses are gold because they usually don't change"
main node: "CRIES IN DHCP"

Great clustering and provisioning 101 the best Kubernetes intro I have ever watch. Keep your very detailed work as some users cannot afford any skipping on the process and almost all tutorials skip things. I love it!

moracabanas
Автор

I aspire to be like you some day... but I'm well into my 60's now and am not sure that I'll make it! I think that I'll have to live vicariously through your vid's. Thanks for this awesome work - it's very impressive to me.

JoeKubinec
Автор

"IP Addresses don't change" ... aaaarrrggghhh, nooo. They do. And at the worst possible time as well... Use names and have a DNS setup within the systems/networks you use... D:

WalrusPug
Автор

Awesome video! Just a small tip: IP addresses will change if your cluster is offline for too long, because of the DHCP leasetime of the IP addresses. Soms options to prevent this:
- Use the host name. Your DNS server will resolve the name, even if the IP address changes.
- Configure static DHCP leases. This will make sure that the PI will always receive the same IP address by binding the MAC address of the pi to an IP address
- Configure static IP addresses on the pi's. Make sure the addresses do not overlap with your DHCP scope

Keep up the good work! :)

StefanPetter
Автор

Another cliffhanger! I want the knowledge now!

TheAndade
Автор

I feel that you did a diservice on the IP vs Host-name thing. Different environments will have different requirements. Given your hardware is unlikely to change, host-names might be better. If you are in an environment where you have control over DHCP, IPs may be preferable. I wish you had covered both in this example.

deefdragon
Автор

I can't wait for pi 4 modules.. but looking forward for this to go out

leehull
Автор

Pi modules 3+ was on sale so probably in month they will release module 4 and definitely will do cluster with module pi 4 as always wanted to do cluster for my website :) great work waiting for new episodes about clusters with modules

TheVeggieBiker
Автор

8:23 LOTR moment = Ansible - One app to rule them all. One app to find them. One app to bring them all, and in the darkness bind them.... Lol!

jfanreva
Автор

Very good video, as the CTO of a software company this resonates with me a lot and am seriously considering pushing your videos to my DevOps team - please continue to make these valuable videos available

KarellSteMarie
Автор

Thanks for the great content as always. And the amazing amount of effort you put into it. 👏👏👏👏👌

Samuel.Mwangi
Автор

What a great video series, excited for the next one!

ro
Автор

Can’t wait till we get Pi 4 compute modules. Then these 7 become pretty legit in terms of compute resources

markhaus
Автор

Usually I fast forward into these kind of videos, but somehow I've watched from beginning to end. Very nice presentation.
(Okay, I've cheated and used 1.5x. I know, I'm sorry.)

Автор

For ssh/scp you can edit ~/.ssh/config
example content ( so you just need to enter "ssh Turing-master" )
Host Turing-master
User pirate
Hostname 10.0.100.163

armwrestling_nerd
Автор

I'm so considering getting a Turing Pi once it's available for purchase.

laffinkippah
Автор

For me the only useful thing i learn from your video is how to use nmap in lan via ssh (nmap -sn 192.168.1.1/255) .thank you !

aurelf
Автор

This is a great overview of Kubernetes on Pi's and I love the use of Ansible to help you automate it instead of brute forcing this from a shell. You cover things with enough detail to know where to look for more info, but don't go so in depth that we're watching a 2 hour video. I could learn from that. 😅

WorldOfZeroDevelopment
Автор

Wondering when the pi4 will come in compute flavor, but I'm probably not going to consider pi until i can get an 8 core, with at least 2GB ram

denverag
Автор

Wish they made one of those with 32 or 64 nodes, rackmount. Thanks for the video.

drdiesel