Install Minikube on Ubuntu 22.04 LTS AWS EC2 | Deploy an app on Minikube | Kubernetes Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
as we have discussed in the last session so there are different methods to set up the kubernetes cluster like mini cube using dcs using kubernetes cops then in your plus we have the awc case then gk then also we have the aks then cubes so mini cube we don't the regression yes which one will we learn because in details yes we will learn cops yes okay one two three four four meters okay okay so mini cube we can set up on this one inst we need only one instance and accept mini cube we need more than one instant tuition one instance to set up the kubernetes cluster one for master one for worker so let's start from setup kubernetes or install kubernetes using mini group install [Music] and here we'll select ubuntu is 22.04 fps so before setting up the mini cube let's go to the official documentation [Music] what is miniqueue and what are the prerequisite to shut up mini group so here they have explained mini cube in a single line mini cube is a local good one that is focusing on making it easy to learn and develop for kubernetes how you need just just we have to shut up docker or similarly compatible container or virtual machine environment and kubernetes is a single command away just mini group starts so there is a picture widget like cube ctl and docker so what system requirement we need we need minimum two cpu or more 2gb of free memory 20 gb free hard disk internet connection then we can select container or virtual machine manager like docker high quality hyper v kvm parallel sport man virtual box like this one here we are going to use docker as a container so mini cube support on three os linux macos windows if you select only linux we have here architecture type then the list type then installation type binary debian package rpm package then they have just overall explain how we can set up then if you want to know more about gcube you can browse our mini cube official site then basic control what is cubesating configuration then dashboard all they have mentioned here so as for the documentation so here what are the highlights here support latest kubernetes release plus six previous manner is latest version is 1.26 which is released on june 22 then it can support class per platform linux macos windows then deploy a vm container or bare metal then we need a multiple container on time like c r i o container and time then container d docker this we need drivers okay run time then direct api endpoint publishing cost image load and imagine then we can set up load balancer file system mount feature gate network policy then here we can add the add-on features mini cube support if you want to hire the features or any service then we can hire using many group add-ons then we can integrate mini cube with the ci servers also like the ci tool supports mini group then where we can integrate here you cannot integrate mini cube with a jenkin however we can integrate with the gitlab circle ci as your pipeline github pro okay so you can go through it so let's start setting up mini cube on aws easy to instance [Music] so here i have log to the awc console let's select ec2 then click on instance dashboard click on launch instance [Music] let's select latest version ubuntu server 22.04 click on select here we need a minimum 2 cp on 4gb ram so let's select t2 medium instance then click on configure instant details then we select the default setting then click on add storage then we need minimum 20 gb storage then click on hide tags then click on configure simply group then let's select existing security group i have open the port here then click on launch then click on launch select the key pair acknowledge it then click on launch instance then click on view instance and [Music] let's name it mini q so select the instance copy the public id then open the put take copy the public ip select your ppk file click on hot browse your apk file click on open accept it then default username is ubuntu let's change the font size okay so here we are logged into the awc story instance to check quest here i have the step to install mini cube on ubuntu ec2 instance and then here are troubleshooting back steps so first let's update system packages on aws one two command is pseudo equity update let's wait next first we have to install cube city so for every cluster we have to install this package cubesatel is a command and interface for kubernetes so here i have copied this command from the official kubernetes site let's download the cubesat on this minitube instance it is downloaded cubesat then give the executable permission to the future package then mode is published to the user local data so this is the instruction given by the openness official site to set up group city let's check cubesat version command is cube schedule version here we can see the version mentioned here container wheeler in your phone so let's install this prerequisite packages before installing blocker like what next so these are the step to install docker and docker ce cli and container d io and on docker compose plugin so these packages we have to install so these are the steps i have copied from the from github official site i will show you here so docker option site okay yeah if you search here now see here you can find these steps okay so those commands only i have copied here next as for the instruction let's make crepey [Music] next download key next next for automation use the calling command to set up the directory let's run it copy next after the package are optional but we are installing let's wait to finish install next we have to add a docker group and we have to give the user mode permission for this docker and docker user to current user already exist let's have this user in docker group next we have to enable dockerize systems okay let's check docker service is running or not system [Music] ctl docker is running next one more additional requirement is we have to for the new version of kubernetes we have to install cri blocker d in this package and this is the official github package deformation it will show error and it will give this github link to install crid package so here they have given instruction so default network plugin for sierra docker is set to cnn on linux like they have given instruction so they have given this github repo we have to clone it then this way no need we have the next question is that in the documentation you will share here just they have mentioned docker just definition how to set up this docker and nothing like this mini cube then is that in the documentation you will share yes okay yes this one so just they have mentioned here crm continuity here we need this one so if you start now it will give error and it will suggest follow this link okay so we don't want to wait for the error so we are directly installing this package okay so let's configure this one let's go there instruction permission [Music] [Music] package let's wait okay let's load the profile next we have to go to the github folder we have to make a directory bin run this go long package filters why don't you use the documentation we created because we are going to use that so that in case anything you miss you can you know update yes see here i have tried today and i am trying to okay just i set up the docker okay just i set up docker then i try to start a mini cube and here you can see whatever error yes this see this error mini cube start suggesting due to not found sierra docker d and suggestion you have to follow this instruction they have given me this error yeah why don't you give us a straight straight forward document and not for us to experience this error so that we will master yes yes so that's that's why i made all the step here see here step by step okay so we'll follow those ones yes only follow our step only okay so we don't want to have error because uh yes that's what i'm saying you you can straight forward follow this step and here i have mentioned link okay other troubleshooting step all step i have mentioned here okay so this one done um sorry i'm multitasking what i was saying is that the documentation you are going to share with us should not you know give us any error it should be a documentation that you have you know yes yes let's get that and it's working you know yes yes yeah so it start from where from where to where yes i will tell you we occur here we will make a step slow install then that's next command because the way i'm watching um i'm i'm feeling confused you pick something here you pick something here you pick something here you know so it makes me confused that's why this i was giving the reference how how many document i have followed from which link i have copied command okay this is done and same command i have copied here so here first step is i will mention here first step then third cri dr d if you get any error so here you can skip this one we just need a documentation that we will use sit down follow it one after the other copy press copy and paste and then everything is done and not the one setup i thought that was i thought that was uh we we already have a mini cube up there can you scroll up i'll scroll down a little bit if what about the first and the second i thought we have okay this is first okay okay all right okay god okay that's fine because i don't want era where i will be texting you back and forth back back and forth yes yeah but sometimes you have to also traverse it installation shouldn't shouldn't be an issue installation should be a straight through process where you just copy and paste copy and paste while you're pasting you are looking at what that particular command is doing by so doing you understand it's downloading then mini cube then give the executable permission then move to mini cube to the user local bay okay then to check mini cube version command is mini cube version here we can see the mini cube version that's output yes now now next we have to start mini cube and here we will select our none this is the command what about the wait for something false okay this is a word okay so let's run it okay here see this now we are getting this error existing due to missing contract so i type here error okay and here if you run here we will give the this error and here we have the solution this error okay solution is this we have to install this package okay okay now again we will go ahead and try to run mini cube start tower none let's see so if we start mini cube start so we should get there we should get this output okay then so here let's wait what step number what what what step is that the one you lost you didn't label them again this one i mean on the documentation you created yeah you didn't level okay after step number four we've already done this right to step number four i think step number four okay step number five okay now we are getting one more error sudo trick ctl command not found okay now we are getting this error i will give optional now we are getting the thing is full of arrow this one this one six now sixth era on a sixth step we are getting this error then we have to follow our table we have the solution this is the only last error okay maybe cube adm will not be like this here we have to install you here you hear what i'm saying shifters yes i said maybe cube adm will not be like this because a minute too much error it's only me okay yeah i don't like i don't like it i needed something that you just copy paste copy paste and just run the installation very straight forward not too much error this error that maybe i will not only only only two errors no you listed many errors and you said this is the last error yeah this is last year let's see now and we have to install click sequel package this now we will start mini cube okay get started [Music] see this mini cube [Music] so mini cube is starting so let's wait so it's a configuring cubesat cubelet cube idiom generating certificates and keys then setting up the control plane drivers booting up control plane configuring our back policy okay now our mini cube is ready okay then to check mini cube is running or not command is mini cube let's see here mini cube type is a control plane host is running cubelet running aps are running quantity configured okay so here we have completed how to install minicube on ubuntu ac to instance so ice for the mini cube gives error we have a solution okay next next if you want to use cluster events then command is cubicle get events here it will show the events what we have done so node got ready then when is all the comma we have entered command showing mr what iran in the background now next to you the our mini cube configuration command is cube cdl config view so all these commands is applicable for any installation method here we can see that we can see mini cube configuration so so here it is showing api version is that api server version then cluster the certificate is located in this location then who is the provider then cluster then server id then for 84.3 name is mini cube how this this one now next we are going to see in details so for now let's run the our first container is a pod on mini cube command is this is a manually command tube still run hello mini cube hello mini q basic image remaining we are giving the name hello mini q by the tag and it will we have to key image location it will pull from the google cloud repository that is this is images normal image and we are exposing to the 8 0 code so we can done create run any deployment or network using tube signal or using environment so here we are trying for just for testing we are trying using cube scale command or is created we put image to check for command is cube get pass is spending let's wait so this is job of scheduler so he scheduled the object into the cluster still is bending let's wait it's taking time uh we can check lock command is cube scale locks then nothing logistics impending let's describe this particular describe then describe them so let's try another one more for remember we had too many arrows too many arrows yes but it's not nothing is showing yeah so i wouldn't know we wouldn't know what is the cause that the body is not you know coming up that's why i i i was talking about clean installation yeah i will not install this mini cube because unless i have a straightforward installation procedure whereby there is no error so we have solved now so it's running it's running yes so maybe engines less time let's try image let's wait for some time and see if it's gonna start that's another image you see tail describe part then partner [Music] the process to install that miniature was too working for me so maybe i would when you go to other kind of given axis maybe i would know the one that i will install and use and learn because i always like installation to be straightforward not having issue trying to solve the issue having issue you don't know what is missing you know now sometimes we have to say now before it was straightforward but we are getting two errors that we have solved so with the new kubernetes version so let's see this error they got the same issue and this he saw this you see using this error okay insufficient not sufficient memory is our memory too low [Music] let's strike with aryan um let's see of the instance so try let's try to increase system [Music] let's stop it okay [Music] let's increase to instant setting [Music] then change instance type let's go to the t2 medium p3 notch let's start you [Music] um hmm okay let's start mini blue okay let's check port number also okay maybe that port number let's open the other port rule like http now our traffic then then click on save and then keep started just it's a rejected volume that contains injected data from multiple sources unknown is talent ready let's stick if anything is this is known as a percent memory with this question everything is ready i would suggest let's go to cryptem since it's just practicing purpose you understand instead of wasting time on mini cube yes yes let's go to the kubernetes that one might be straight straight forward no error during the setup yes we don't use uh we don't use mini cube in real time much time just time time say that again in the real time in real time we don't use money yeah i know i know even at my job uh we don't use mini cube what we use is that we use docker and we use ecs to orchestrate you know why i really need to learn kubernetes is because i just see it is very important for me to have knowledge of micro services not ready okay this is not ready okay okay so let's install the plugin let's go to kubernetes i would suggest instead of wasting time on yes yeah it's just for practicing purpose yeah let's go to mini cube you think network could cause that oh yes yes so one winter just give me five minutes maybe that network plugin will be issued uh when number was not ready that's why it's giving errors [Music] um first a reason container runtime network model okay like okay now it's ready here we have to install plugin step number um yes [Music] okay now our mini cube is ready you can see my screen right why was it taking too long what is what is it that you've done just i installed network plugin i have installed calico network plugin so we didn't do that previously they have not recommended for the newer version now they are recommending okay so many cubes ready let's check for what are running yes you can see yes yes running so here you got to troubleshoot how to troubleshoot if the node is not ready uh whatever we get so you can you can tell in interview or professor you can tell in interview note was not ready how you are troubleshooter part was in pending state so what are the troubleshooting step you have to check the logs using cubestyle logs then for codename or you can describe the board name then we can check you here so if the append if any resource are in pending state first we have to here we got to know that first we have to check your name kubernetes cluster is ready or not so command is cubital get nodes we have check that comma okay then it's ready then we can see the and we have troubleshoot why the node is not ready and then we have seen the error there was there was network plugin was missing so we have installed that plugin then our part is run yes now next so next is configure we have seen this part then we will create one more deployment so using cubesat for hello node let's create deployment deployment scatter to check deployment command is cube ctl gate deployment our short form short command is cube ctl get deployed a deployment is ready you can describe deployment you should describe deploy then this is just we are testing the images from the docker in the real-time scenario we have to write one we can describe deployment where we got deployed is 40 second replica setting [Music] so deployment then to export we can export this deployment on the port 8080 and type is no report so we have a diff separate topic uh service types in kubernetes and one more i have to show you open it is for range okay so compared to internally you just these ports so master node use this port for tcp inbound 644 this is the api server port number used by all this is the port number used by cube api server etc this port number api cubelet api self and control plan this is port number so we have to take care after setting up the cluster we have to open these ports then our worker node for node port here we have mentioned no report so note what is this type of service port from where we can expose our micro service to the internet so notepod service the port number range is 30 000 to 32 767 then cubelet is the common port and we already in introduction we have seen that cubelet is agent which runs on the both master and worker node it is the interface it is interface or communication agent between the master and worker node now next let's expose this deployment to check pod command is cube ctel get parts this one is running to check deployment command is pubel get deployed then to check service service using service only we can expose our service so here automatically is mapped the this port number range as we have seen in official documentation so if you not mention any port number the kubernetes assign from these range only so this assign 3288 map this port to the outside my internal port this is a internal port this is the outside port this is a hello node application then we can access our service so we have to access if you mention the node port type for our microservice we have to access our microservice from this port only so we can copy our master node and we can see our microservice on the browser copy the public id then port number what is the port number three zero eighty two three zero eight see this is an output so we are able to access our microservice over the internet using a service so service only the object in the kubernetes where we can expose our microservice or we can see our micro service on the internet so internally we can check using curl command to we have seen on the browser we would let mini cube to if you want to delete power department of this one we can use this one command suppose if you want to delete deployment you should get deploy if in this part the developer has changed code and again the redeploy and he want to restart his deployment then command is published rollout restart deploy and your deployment node deployment name like this you can do if you want to delete deployment data deploy then your deployment name so it will delete on the foreign deployment here we cannot see for cubicle to get bots [Music] if you want to delete service same like you should okay so we have seen installer and setup mini cube on the airbase history instance then we created power deployment service and we have access [Music] so here only we have to take care of the steps we have we have the sixth step to install mini okay so for every version what as per my experience i am working on the cubans from the last five years so for when the kubernetes changes the version so they change the command steps of this one so we have to we should be updated so that's about me [Music] it's just about the image if we want to run the image from the docker file we can just specify that image name not docker file just using docker file we have to build image and that image we have to push into the docker hub or any register [Music] mentioned so image get pushed into from the easy registry then on here we can pull images here and that image converted into the pod so as we have seen what is a part what is a wrapper for so we can see the part contains container so base cases for every micro survey there is a one part so that's about mini cube so let's do this instance now next step we have you'll be idiom but this is a very long step [Music] okay here we have the state one two three four five six seven eight nine ten eleven fourteen okay here we have the fourteen state to set up cube area can you try cuba that one there was no error right there was no error when you checked i will check three months back okay so i said you depend upon the version okay so every version they have a new requirement i have observed because same step i was [Music] doing practice before three months it was working but they now there in the newer version they want additionally three packets plus network plug-in so they have got required and also we have seen the news kubernetes depreciated docker means what they are not supporting docker driver directly they want you have seen news i would see your cd please so before kubuntu is directly supporting docker but not now that they are mentioned here so zoom is ending let's rejoin yep
Info
Channel: DevOps Hint
Views: 5,668
Rating: undefined out of 5
Keywords: minikube tutorial, minikube installation, How to Install Minikube on Ubuntu 22.04 LTS, Install cri-dockerd on Ubuntu, Install conntrack package on Ubuntu, Install crictl package on Ubuntu, Install calico network plugin on Minikube, Deploy an app on Minikube Cluster, Exiting due to NOT_FOUND_CRI_DOCKERD, Exiting due to GUEST_DRIVER_MISMATCH, Exiting due to HOST_JUJU_LOCK_PERMISSION, kubernetes tutorial, install minikube, what is minikube, kubernetes tutorial for beginners
Id: aLUn1hyyPZM
Channel Id: undefined
Length: 70min 13sec (4213 seconds)
Published: Sat Aug 27 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.