Kubernetes Cluster in Minutes in VMware vSphere using Rancher

Тәжірибелік нұсқаулар және стиль

Spinning up a Kubernetes cluster from scratch can be complicated and challenging. Rancher is an open source, free solution that allows easily creating Kubernetes clusters. In this video walkthrough, we look at how to create a Kubernetes cluster in a VMware vSphere environment, using Rancher. As we will see in the video, Rancher provides a fully automated way to create Kubernetes cluster.
Using VMware vSphere all you need to have is an Ubuntu cloud image template in your vSphere inventory and Rancher does the rest. Using the template, Rancher will clone virtual machines to serve as the Kubernetes nodes, automatically configure Docker within the virtual machine, install Kubernetes using the roles defined in the Rancher cluster configuration, and join all the nodes to the cluster, all in just a few minutes.
You can also scale your cluster up or down using Rancher easily with just a couple of clicks.
Subscribe to the channel: / @virtualizationhowto
My blog: www.virtualizationhowto.com
_____________________________________________________
Social Media: / vspinmaster
LinkedIn: / brandon-lee-vht
Github: github.com/brandonleegit
introduction - 0:00-2:00
Installing Docker - 2:50
Adding user to Docker group - 3:15
Pulling down the Rancher Docker container - 4:10
Logging into Rancher for the first time - 5:07
Creating a new Kubernetes cluster in VMware vSphere with Rancher - 7:40
Adding a Rancher Kubernetes Node template - 8:56
Finishing the Add Cluster - vSphere workflow in Rancher - 10:02
The Kubernetes cluster creation begins in VMware vSphere - 10:30
Viewing VMware virtual machines being cloned in vSphere - 10:43
Kubernetes Cluster finished creating in Rancher - 11:25
Accessing the Kubernetes Cluster using the Kubectl Shell
Downloading the Kubeconfig file from Rancher - 13:17
Concluding thoughts on Rancher and Kubernetes - 14:19
Links for the Rancher documentation referenced in the video:
Rancher docker version documentation: rancher.com/docs/rancher/v2.5...
Command to install the Rancher:
rancher.com/quick-start
Create Kubernetes Cluster with Rancher and VMware vSphere:
www.virtualizationhowto.com/2...
Connect Rancher to an existing Kubernetes cluster:
www.virtualizationhowto.com/2...

Пікірлер: 66

  • @brandonjozsa1194
    @brandonjozsa11942 жыл бұрын

    Good video. I agree with others...music is a little tough, but my recommendation is also to get a decent mic that will cancel out the acoustics in the room (those fans are what's killing it in my opinion).

  • @dafydds
    @dafydds Жыл бұрын

    Just wanting to say thanks for this video. I've been messing around with Docker for a while, but never dipped into Kubernetes. This fits my homelab really well and even using the latest versions of programmes (compared to the age of this video), I managed to get things running quite well... I've seen some of your recent videos, so I know if got better audio these days, so I won't say any more 🤣😁 ... Anywho, thanks for this 👍

  • @coomz92
    @coomz92 Жыл бұрын

    Thank for your video, I was able to run a K8s cluster in just a few minuts like your title said ;)

  • @mandeepmails
    @mandeepmails Жыл бұрын

    Another Excellent video. Feels great that you're ahead on the same track that i'm following.

  • @VirtualizationHowto

    @VirtualizationHowto

    Жыл бұрын

    Thank you Angry Bird! So glad the videos are on track!

  • @tridd30
    @tridd3010 ай бұрын

    awesome video! the point and lesson came across clear as day!

  • @rafa3l601
    @rafa3l601 Жыл бұрын

    Excellent video, thank you so much !

  • @kbcbala
    @kbcbala2 жыл бұрын

    Hiya, I gave your 100th Thumbsup :) Thanks for the video. great video on Rancher.

  • @VirtualizationHowto

    @VirtualizationHowto

    2 жыл бұрын

    Thank you Balamurugan!

  • @YoungfolkKnits
    @YoungfolkKnits2 жыл бұрын

    Great video!

  • @felipecaetano15
    @felipecaetano15 Жыл бұрын

    Really great video, exactly what I needed! I hope there is a way to personalize more stuff like choosing a different CRI (maybe a subject for a later video?)

  • @VirtualizationHowto

    @VirtualizationHowto

    Жыл бұрын

    Felipe, thanks so much for the comment and so glad the video was helpful! Definitely will have more Rancher, vSphere, etc, etc, coming soon :)

  • @ronaldocorrea8007
    @ronaldocorrea8007 Жыл бұрын

    Excellent topic. thanks

  • @VirtualizationHowto

    @VirtualizationHowto

    Жыл бұрын

    Glad you liked it! Thanks Ronaldo.

  • @Phyx1u5
    @Phyx1u5 Жыл бұрын

    hi thank you very much for this guide. Just wondering, do we no longer need a master node when doing it this way? or does rancher create the master node automatically under the hood?

  • @jandersonlima6648
    @jandersonlima66482 жыл бұрын

    Great video.

  • @VirtualizationHowto

    @VirtualizationHowto

    2 жыл бұрын

    Thanks for the visit

  • @cjchico
    @cjchico Жыл бұрын

    Love the videos! Is there a way to deploy Rancher on top of the cluster Rancher creates then delete the original Rancher? Basically, I want Rancher running on Kubernetes for HA instead of a single VM within vSphere, but don't want to do it from scratch.

  • @Joy-vo4ne
    @Joy-vo4ne Жыл бұрын

    great video. well explained. exactly what I'm looking for. I will post here and see how smoothly when I install/setup this in my lab. Thank you, sir.

  • @ardin222
    @ardin222 Жыл бұрын

    Hi Mr.lee, thank you for the excellent video... I did everything exactly like you and everything went fine until creating the nodes, Rancher creates the nodes, but the cluster doesn't run and doesn't give any error, and it creates the nodes again, and so on. Unfortunately, it doesn't give an error, I can't search for the error on the Internet. Do you have any advice on this?!

  • @arkanjo7509
    @arkanjo7509 Жыл бұрын

    thanks

  • @TayschrennSedai
    @TayschrennSedai6 ай бұрын

    Music is a touch loud, good video; only thing that wasn't clear for me was networking/IP addressing. I'll dig around on that one.

  • @VirtualizationHowto

    @VirtualizationHowto

    6 ай бұрын

    @TayschrennSedai thanks for the comment! Yes, was an earlier video and have learned a few things since then. Thanks for the feedback though. Feel free to reach out on the forums and create a thread if you want to discuss things further: www.virtualizationhowto.com/community

  • @tonyg460
    @tonyg4602 жыл бұрын

    Great video.. I am still testing your Ansible video.... Could you do one setting up Ansible Tower?

  • @VirtualizationHowto

    @VirtualizationHowto

    2 жыл бұрын

    Tony, sounds great I will get this on the books for a video. I have AWX in the lab currently but should be very similar.

  • @MoAlarawi
    @MoAlarawi4 ай бұрын

    All great work. Just the back ground music volume down a bit.

  • @deano_s2k
    @deano_s2k5 ай бұрын

    any chance for an updated verison, this was quiet different to me when I was following along, its been updated quiet substantially since

  • @sreekanth2000123
    @sreekanth20001232 жыл бұрын

    Thank you for the video. Watched this twice with 1.5x speed setting enabled. Question - Does rancher plays well with already created vms with static IPs and MAC addresses? I got lost little bit with Calicio.

  • @VirtualizationHowto

    @VirtualizationHowto

    2 жыл бұрын

    Rancher simply clones your VM template and as these boot up they will auto configure using DHCP. So, Rancher here is just using the existing mechanisms on the vSphere side to make everything work from a network perspective.

  • @prabu6689
    @prabu6689 Жыл бұрын

    Is it opensource or is it billable?

  • @sgsn712548
    @sgsn712548 Жыл бұрын

    i rely like it , no need to create EC2 service to run K8 cluster on AMAZAN practice K8

  • @jentsuwang7317
    @jentsuwang73172 жыл бұрын

    thank you for your video, is there any way we can use static IP for the VMs?

  • @Joy-vo4ne

    @Joy-vo4ne

    Жыл бұрын

    I'm wondering the same thing.

  • @markstanchin1692
    @markstanchin16922 жыл бұрын

    When you install the rancher docker image shouldn’t you be adding persistent volumes?

  • @VirtualizationHowto

    @VirtualizationHowto

    2 жыл бұрын

    Mark, there are further considerations for using containerized applications in vSphere and other environments. Persistent storage is certainly one of those. In this tutorial I was just looking at provisioning and orchestrating a Kubernetes cluster itself in vSphere. However, it is a good point you bring up here as this is an additional consideration. Rancher makes managing storage easy as well.

  • @Joy-vo4ne
    @Joy-vo4ne Жыл бұрын

    run "docker ps -a" then docker inspect rancher-container-id | grep "IPAddress"; ip does not load from the ubuntu VM on top of which the docker and rancher container are running. It looks like the vedio missed quite some of the steps you have done. Could you please help?

  • @cloudwerxs7080
    @cloudwerxs7080 Жыл бұрын

    great video! i followed your steps but after installing rancher on docker and image and running it I cannot access the rancher web console (logging in rancher for the fist time). rancher is on port 80 and 443. did you have to open up something in firewall of ubuntu server ( i am running 22.04 .1 LTS/jammy)? thanks!

  • @Joy-vo4ne

    @Joy-vo4ne

    Жыл бұрын

    have you got this figured out? I have had the same problem. I have made sure port 443, 80 enabled. the console webpage did not load.

  • @rafalkrawiec4875

    @rafalkrawiec4875

    Жыл бұрын

    @@Joy-vo4ne have you guys overcame that? Same problem here

  • @18Blackmamba18
    @18Blackmamba18 Жыл бұрын

    how do I create a persistent volume on my vsan datastore?

  • @VirtualizationHowto

    @VirtualizationHowto

    Жыл бұрын

    18Blackmamba18, Check out my post on how to create persistent volumes on vSAN cluster hosts here: www.virtualizationhowto.com/2022/08/vmware-vsan-direct-configuration-and-requirements/

  • @DukeofTech90
    @DukeofTech9028 күн бұрын

    Guys I have an interview and I was given task to do . I've done most of it but I'm having issues with Rancher cause I'm to use it for my kubernetes deployments. So the problem is that I can't find the add nodes button on the UI

  • @DNNRangeR
    @DNNRangeR2 жыл бұрын

    Do you have documentation or a walk through on how to properly create the template?

  • @VirtualizationHowto

    @VirtualizationHowto

    2 жыл бұрын

    Samuel, See my write up here: www.virtualizationhowto.com/2022/01/create-kubernetes-cluster-with-rancher-and-vmware-vsphere/

  • @AnandSingh-iy9dx
    @AnandSingh-iy9dx Жыл бұрын

    @9:27 -- Add network or you will get error: ["Error with pre-create check: "network 'VM Network' not found"]

  • @GregDePasse
    @GregDePasse2 жыл бұрын

    Any chance you could you go into a little more detail on how you creted the VMware template VM? For some reason I can't get this to work and it looks like the VM is the culprit.

  • @VirtualizationHowto

    @VirtualizationHowto

    2 жыл бұрын

    Greg, great question. It is actually fairly easy to create the VM template, but can be confusing at first. You just need to go here: cloud-images.ubuntu.com/. Click into the version of Ubuntu Server you want to use, 20.04, 21.10, etc, and there will be an OVA available for download. Download and then deploy the OVA. You don't have to power it on. Just immediately convert it to a template. Then, in Rancher, point to this template. Let me know if that helps. Brandon

  • @someone49

    @someone49

    Жыл бұрын

    @@VirtualizationHowto Curious if you had to set some ssh keys in the template for post deployment access ? Or does Rancher configure k8s via vmware tools or some other method?

  • @khisanthxanadu2192

    @khisanthxanadu2192

    Жыл бұрын

    @@VirtualizationHowto Hello, I use vsphere 8, with no vcenter and don't see an option for convert to template. Is this something only available with vCenter? Is there another way to get the template to where rancher can find it?

  • @AngelOfDeath943
    @AngelOfDeath943 Жыл бұрын

    What is the rancher username

  • @williammurray5121
    @williammurray51212 жыл бұрын

    Solid video, loved the detail. Please lose the music, huge distraction. Almost drove me away.

  • @VirtualizationHowto

    @VirtualizationHowto

    2 жыл бұрын

    Will do William. Still trying to figure out what works and doesn't on KZread. Thank you for your constructive feedback much appreciated!

  • @ericrcan

    @ericrcan

    2 жыл бұрын

    2nd this. I think I’ve only posted 3 other comments since 2009, but I felt like this needed a comment. Because of the background hum of the network stack and the music, I left the video. After watching a few more videos, I came back to yours because it was exactly what I was looking for. More people should see this, lose the music and I think that’ll happen.

  • @amosgiture

    @amosgiture

    Жыл бұрын

    Love the content, love the music too.

  • @RicoNinjaneer
    @RicoNinjaneer Жыл бұрын

    8:53 Add Node Template: Where do you set up your 1. Account Access? Mine is disabled, it doesn't look like your screen ;-)

  • @VirtualizationHowto

    @VirtualizationHowto

    Жыл бұрын

    Rich, thank you for your comment! This is setup in the Cluster Management > RKE1 Configuration > Node Templates menu. When you choose to setup a new vSphere configuration you will have the ability to configure your vSphere credentials.

  • @RicoNinjaneer

    @RicoNinjaneer

    Жыл бұрын

    @@VirtualizationHowto ok I see the menu. Now I have to setup a vSphere ?

  • @catatonicbug7522
    @catatonicbug7522 Жыл бұрын

    So, this isn't possible with free ESXi, since you can't create templates unless you have vCenter. Not so great for a home lab, since no one pays for vCenter for a home lab...

  • @paccciii
    @paccciii4 ай бұрын

    Can you please lower your voice, am not able to hear the music properly. Thank you.

  • @andrewgluck8740
    @andrewgluck87403 күн бұрын

    man, the background noise. Great video though.

  • @frankstefans3679
    @frankstefans367911 ай бұрын

    Sorry, but why are you polluting an already noisy recording environment with background music further? People with hearing limitations like me (tinnitus, ...) are having issues to follow your voice that btw could be recorded dryer (closer). Thx for considering this in the future as I head to leave your video unfortunately.

  • @VirtualizationHowto

    @VirtualizationHowto

    11 ай бұрын

    @frankstefans3679...thanks for the comment! Sorry about the audio quality in my earlier vids....things are better now and I have learned a lot since then with video creation :)

  • @adityajag4984
    @adityajag49846 ай бұрын

    Please stop the annoying background music!

  • @shellcasing1040
    @shellcasing10402 жыл бұрын

    Your video would have been better without that background "music"

  • @SysdefWonder
    @SysdefWonder Жыл бұрын

    Cannot listen. That distracting music and the sound sucks

Келесі