Build a Kubernetes Home Lab from Scratch step-by-step!

preview_player
Показать описание
Building a Kubernetes Home Lab environment from scratch might seem like a daunting task. However, it is actually pretty straightforward with the right tools in place. In this video, we are going to use Kubeadm to initialize a Kubernetes cluster from scratch in our home lab environment. Using Kubeadm takes some of the heavy lifting out of the underlying complexities of Kubernetes. We look at how to build the Kubernetes home lab cluster from scratch step-by-step. Join me in the adventure!



_____________________________________________________


Introduction - 0:00
Talking about the lab environment and virtual machines needed - 0:53
How to leverage virtual machine snapshots in your home lab when learning Kubernetes - 2:13
Disabling virtual machine swap - 3:22
The actual commands to disable swap - 3:50
Installing Docker - 4:13
Installing CURL - 4:25
Adding the repository key for Kubernetes - 4:30
Adding the actual Kubernetes repository - 4:45
Running apt update - 4:55
Installing kubeadm, kubelet, kubectl, and Kubernetes - 5:02
Explaining why we are only running commands on the Kubernetes master node - 5:16
Running the kubeadm init command - 6:00
kubeadm init command finishes successfully and have the kubeadm join command - 6:20
The worker nodes are now caught up with the master node - 6:58
We still have the special join command to copy and paste into our worker nodes - 7:20
Notice the output of workers. They have successfully joined the Kubernetes cluster - 7:45
Kubectl commands are failing. This is because we haven't copied our kubeconfig to our HOME directory - 7:54
Nodes are in the not ready state. This is because we haven't deployed container networking - 8:30
We are going to deploy Calico for container networking - 8:45
After container networking we check the STATE of our Kubernetes nodes - 9:16
Wrapping up and thoughts on building a Kubernetes Home Lab from Scratch - 9:45

If you would like to read a full write up of how to build your Kubernetes Home Lab from scratch using virtual machines, read my blog post found here:

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

This tutorial was quick and to the point. Was exactly what I needed to get over an issue I had when I was installing my k8s. Thank you!

Kynsuji
Автор

Just completed "Kubernetes Cluster in Minutes in VMware vSphere using Rancher" and now I see new tutorial on the same topic, this is great! You're one of the best instructors on YT please keep it coming 🙏

maoryatskan
Автор

Thank you. Completely demystified building my first K8s cluster. #subscribed

scottennover
Автор

Hey. man
Thanks a lot for this video
I was stuck a bit with deploying k8s cluster in my home lab, but all videos I've watched before was something like "K8s and minikube in 1 hour"
So now I've managed with deploying cluster on my CentOS 7 VMs and Proxmox as hypervisor

arsarkadskov
Автор

Amazing and complete tutorial for a beginner. Short, concise, and it makes sense. But it would be good to explain like what calico does.

Iruini
Автор

Just awesome 👏
I’m K8s certified (CKA & CKAD) but I can still tell you that you tough me something. Straight to the point and clear. Keep doing this nice work. I’ve joined your YouTube community.

thewarrior
Автор

super nice just I am not sure why you used sudo while being root already

zyghom
Автор

Very nicely done. Can you show to expose a working NodePort or LoadBalancer on the local network? Assume you have a bridge, br0 working, and all VMs get their own DHCP address from pfsense or some router.

alanlupsha
Автор

Awesome video man! thanks. I was taking a course on K8 but It only went over how to setup using premade K8 tools on teh cloud. This is much beter and now I know how to create a local cluster and commit to master, as well ss implement from scratch on cloud (or at least I have an idea on where to start from). Stellar video man!

ase
Автор

Using `sudo` as root... outstanding move.

Smokey_McPot
Автор

Awesome video tutorials you've come up with. Also, very professional and to the point. Keep it up ;-)
i'm fond of supermicro for lab environment, learning good stuff here.

mandeepmails
Автор

🔴 Kubernetes 1 : Comment installer correctement kubernetes master et son dashboard 🚀

INFORMATIQUE-POUR-TOUS
Автор

But why docker? Why not containerio/something else?
Fast tutorial!!!
And yeah installing k8s from scratch is pretty easy and straightforward.
And even setting up a load balancer: Metallb is easy.
A distributed storage could be a bit more komplex. At least I haven’t done it so far.

yotu
Автор

Why did you run your commands using sudo when you were already root?

grover-
Автор

Can you do a follow up tutorial how to add another Master node to make it fully HA?

lawrenceneo
Автор

Sorry, missed how master and worker nodes are created?

ashwiniravikumar
Автор

this is great stuff. thanks for sharing

cloudopensourcespecialistc
Автор

Thanks for showing us how to do it from scratch.
I suggest not cutting the terminal output part to make the video short!

Linux_User_
Автор

Great video! Can you please make a tutorial on how to create multiple K8s clusters on a single server?

juanmarceloparra
Автор

calico doesnt install (calico pods are stuck at pending and nodes are stuck at NotReady). Do you know any other methods to install calico, especially newer versions (compatible with new Kubernetes)? I would really appreciate the help, been stuck for a week almost.

selinoktay
welcome to shbcf.ru