Set up a Kubernetes cluster in under 5 minutes with Proxmox and k3s

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
take a look at this compact Mini PC I got two of them for $100 each in this short video I will take this machine and add it to my cities cluster ready to host applications websites all in under 5 minutes now you say why would you even want to do that haven't you heard of cloud computing well these things speack eight threads and 16 gigs of RAM and also have very fast mvme storage processor is made with low power consumption in mind so you get all that compute power while drawing between 10 and 30 Watts you would struggle to get this much compute from any cloud provider on this sort of budget not to mention the amount of learning when you are configuring and running all this yourself doing this will give you a better understanding of what cloud vendors are selling you cabes is also extremely popular especially in the Enterprise World Learning it can lend you new opportunities now the reason I got these machine so cheap is that they were originally Chown boxes see the Chrome logo right here but their bios has been modded to run any kind of operating system so take a look on eBay or on Facebook Marketplace and for sure you will find incredible deals on Hardware such as this first time installing proxmox Pro MOX will help me manage an entire cluster of servers with ease while taking up almost no resources I will Fast Forward most of this process as installing proxmox is very straightforward it's just like installing any regular operating system just boot from a USB on which you burn the proxmox iso follow some basic prompts and it's done next if I go to the IP address that was allocated to this machine during the installation process I'm created by the proxos interface since this is not my first machine I need to join an existing cluster if this is your first machine you need to click on create cluster joining a cluster is straightforward go to the cluster proxmox UI and you should see a join information button click copy go back to the new machine pasting the information hit join wait a few seconds and the new machine should show up in your existing clust easy okay now I want to create a VM that will be my new cabus worker node I will use Ubuntu Server as the base operating system so I'm downloading the is o for it you can download the iso directly in proxmox just paste the URL and hit download you can also upload images you have downloaded on your PC creating the VM is easy first give it a name in this case I give it k3s W3 since this is the third node in my cluster I use the Ubunto server ISO I just downloaded I'll give it a bit more storage 60 gigs for example for CPU cores and 4 gigs of RAM should be enough and I leave everything else on the defaults booting up the machine will go to the the Ubunto server installation process which is again straightforward you need to pick an admin username and password and also take note of the allocated IP address and one last thing you also want to install the open SSH server which will allow us to use SSH to connect to this VM when done don't forget to remove the bootable virtual disc from the VM next I will install cabetes on this Ubunto server to do this I will use krias which is a lightweight version of cabetes made by the team at Rancher this is the most resource efficient and beginner friendly way of installing cabes that I found like I said I already have two nodes in the cabon this cluster and this will be the third if you are just starting out you will need at least two VMS for caboni one for the caboni control plane and the other for at least one worker node for the control plane VM I recommend allocating at least one CPU and 2 gigs of RAM to install k3s I will follow the quick start guide on their website very straightforward in order for the installer to differentiate between installing a control plane and a worker node it looks for a couple of environment variables k3s URL that points to the existing control plane and krias token which is the secret token that is used to connect to that existing in this cluster these two environment variables will tell the installer that this is a worker node that needs to join the existing cluster you can find the token in the control plane VM at this location once you have the two variables set you just run the installer command and that's it this takes care of everything even making sure that k3s starts automatically after a reboot as you can see now the new node appears in my home lab cabetes cluster so what can you do with this well possibilities are endless from hosting websites to different applications and databases you can subscribe to see some of my ideas put into practice one of the first projects I am planning for the start of 2024 is to build my portfolio website I will make a video series about that it will be about creating a website from A to Z I will show everything and I mean everything from the design frontend development backend development deployment to cabes and even hosting it online this is what this channel is focused on learning full stack development and I mean actually full stack oh and I almost forgot I have a smart plug right here and I can use it to measure the power consumption of This Server let's check it out thanks for watching and subscribing and I'll see you in the next [Music] one
Info
Channel: Let's Talk Dev
Views: 4,158
Rating: undefined out of 5
Keywords: install kubernetes, k3s, k8s, proxmox installation, diy cloud, cloud computing, kubernetes, Kubernetes cluster, learning Kubernetes, K3S installation, homelab, home server, diy server, personal cloud, self hosting, install proxmox, rancher, rancher k3s, beginner kubernetes, k3s proxmox, proxmox kubernetes, kubernetes cluster setup
Id: PtQ8FOepn94
Channel Id: undefined
Length: 6min 25sec (385 seconds)
Published: Mon Jan 29 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.