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
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).
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 👍
Thank for your video, I was able to run a K8s cluster in just a few minuts like your title said ;)
Another Excellent video. Feels great that you're ahead on the same track that i'm following.
@VirtualizationHowto
Жыл бұрын
Thank you Angry Bird! So glad the videos are on track!
awesome video! the point and lesson came across clear as day!
Excellent video, thank you so much !
Hiya, I gave your 100th Thumbsup :) Thanks for the video. great video on Rancher.
@VirtualizationHowto
2 жыл бұрын
Thank you Balamurugan!
Great video!
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
Жыл бұрын
Felipe, thanks so much for the comment and so glad the video was helpful! Definitely will have more Rancher, vSphere, etc, etc, coming soon :)
Excellent topic. thanks
@VirtualizationHowto
Жыл бұрын
Glad you liked it! Thanks Ronaldo.
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?
Great video.
@VirtualizationHowto
2 жыл бұрын
Thanks for the visit
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.
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.
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?!
thanks
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
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
Great video.. I am still testing your Ansible video.... Could you do one setting up Ansible Tower?
@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.
All great work. Just the back ground music volume down a bit.
any chance for an updated verison, this was quiet different to me when I was following along, its been updated quiet substantially since
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
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.
Is it opensource or is it billable?
i rely like it , no need to create EC2 service to run K8 cluster on AMAZAN practice K8
thank you for your video, is there any way we can use static IP for the VMs?
@Joy-vo4ne
Жыл бұрын
I'm wondering the same thing.
When you install the rancher docker image shouldn’t you be adding persistent volumes?
@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.
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?
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
Жыл бұрын
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
Жыл бұрын
@@Joy-vo4ne have you guys overcame that? Same problem here
how do I create a persistent volume on my vsan datastore?
@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/
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
Do you have documentation or a walk through on how to properly create the template?
@VirtualizationHowto
2 жыл бұрын
Samuel, See my write up here: www.virtualizationhowto.com/2022/01/create-kubernetes-cluster-with-rancher-and-vmware-vsphere/
@9:27 -- Add network or you will get error: ["Error with pre-create check: "network 'VM Network' not found"]
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
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
Жыл бұрын
@@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
Жыл бұрын
@@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?
What is the rancher username
Solid video, loved the detail. Please lose the music, huge distraction. Almost drove me away.
@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
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
Жыл бұрын
Love the content, love the music too.
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
Жыл бұрын
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
Жыл бұрын
@@VirtualizationHowto ok I see the menu. Now I have to setup a vSphere ?
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...
Can you please lower your voice, am not able to hear the music properly. Thank you.
man, the background noise. Great video though.
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
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 :)
Please stop the annoying background music!
Your video would have been better without that background "music"
Cannot listen. That distracting music and the sound sucks