Kubernetes tutorial: How to install a cluster on Ubuntu with kubeadm?

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi I am searge I want to make several videos about kubernetes and start by creating a cluster for future experiments I'll do it with Cub adom so let's get started before installing your virtual machines read the requirements in the paragraph named before you begin here you can see minimal resources for virtual machines and so on I have already created three virtual machines one master and two Walkers besides I haven't disabled this swap yet so let's do it first of all we need to connect to our virtual machines and just copy and paste the command to disable the swap do it on each virtual machine okay I've done it the next step is the installation of a container runtime first we need to open this page and execute commands in this section let's do it just copy and paste them on each virtual machine I have done it on the first virtual machine do it on the others everything is done let's go ahead then we need to install a container runtime here they are I chose container d as my container runtime let's go to the page with instructions to install container D the operating system of my virtual machines is Ubuntu so let's open the instructions for this operating [Music] system the installation of container D is similar to the installation of Docker the main difference is the number of necessary packages that will be installed you just need to install container D and nothing else let's start the installation just copy and paste commands into your terminal again of course install container D on every virtual machine I have installed container D everywhere let's continue after the installation of container D we need to configure the crrp driver I want to point out these statements it's critical that the cuet and the container run time use the same cgroup driver and are configured the same the second one is cedm starting after version 1.22 has systemd as the default cgroup driver so we just need to set the cgroup driver in the configuration of container D I prepared the command you can see it on the screen I'll set the default config with two changed options system C group and sandbox uncore image after execution restart the container diservice and check its status do the same on the other virtual machines afterward go back to the page installing [Music] cedm our next step is installing cubm cuet and Cube C here are the commands to do it you don't have to do the fifth step repeat steps from one to four on other hosts okay cu cuet and cubc have been installed let's continue we are ready to initialize the control plane node let's go to the section with [Music] instructions here they are to initialize the control plane Noe run this command cued in it with arguments I have prepared the command with two arguments pod Network cidr and API server advertise address of course executed as a super user wait a few minutes while your control playe node is initializing the installation is completed the next instructions are on the screen to start using your cluster you need to run the following as a regular user let's do it and check our node the internal IP of my control plane node is 10.0.2 do15 but here it is the IP 192.168.1.5 why is it so I used wagr to prepare my virtual machines my virtual machines have two network interfaces one interface is used for connecting to the internet and another interface is used for connecting the virtual machines via an internal Network it was chosen wrong internal IP so I need to change it the correct internal IP is 19 2. 68150 to change the internal IP I need to add in cuet cubm arguments one more value node IP and restart cuet check the internal IP [Music] again now it's correct after the installation of our control plane node let's configure our workers to do it you just need to copy this command and paste it on your workers of course we need to change the internal IP addresses of Walkers 2 let's do it the IP address of Walker one ends with number 51 and the IP of Walker 2 ends with number 52 everything works fine lastly we need to install cni container network interface in this video I'm going to install flannel let's do it firstly go to the GitHub page to install flannel apply this kubernetes manifest if you use a custom p c IDR you need to download this manifest and change some values let's do it I've downloaded the Manifest firstly change the PO cidr value if it's necessary and secondly if you use background two you need to add the argument I faed to the flannel command to find the name of your internal network interface you can use the command IP address show here it is the name of our interface is the same on other virtual machines I am ready to install flannel copy this manifest to your master host I using the command SCP of course you can just copy and paste the content of the [Music] file apply it and check the creation of pods all of the ports are running our cluster is ready in the end I want to apply a manifest to check the working of our cluster it's a simple manifest with a deployment and service let's apply it containers are creating wait some time some of our containers are [Music] running use the command CBE Cil put forward to look at the main page of the engine X web server created by the [Music] deployment I'll connect to my master host from another tab using kill will get the content of the main page here you can see welcome to engine X so everything functions correctly thanks for watching I hope this video was helpful to you see you in the next video bye
Info
Channel: Learn DevOps with Serge
Views: 444
Rating: undefined out of 5
Keywords: kubernetes cluster, install 3 node kubernetes cluster, install real kubernetes cluster, How to install kubernetes cluster, kubernetes home lab, setup kubernetes cluster on home server, install kubernetes home lab, install cluster kubernetes on virtualbox, install kubernetes on ubuntu, install kubernetes cluster on ubuntu 20.04, install kuberntes cluster on ubuntu 22.04 with kubeadm, install kubernetes cluster on ubuntu 20.04 with kubeadm, install kubernetes cluster on ubuntu 22.04
Id: wIZamzt7MkM
Channel Id: undefined
Length: 10min 22sec (622 seconds)
Published: Mon Apr 15 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.