Learn Docker and Kubernetes from scratch | RapidDev Pro | Skillshare

Learn Docker and Kubernetes from scratch

RapidDev Pro, Full Stack Developer & Tech Entrepreneur

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
14 Lessons (1h 16m)
    • 1. Introduction

      2:56
    • 2. Docker Introduction

      6:58
    • 3. Docker Installation

      2:44
    • 4. Docker Images and Containers

      7:16
    • 5. Custom Docker image using Dockerfile

      13:51
    • 6. Getting inside of Docker Container

      3:26
    • 7. Pushing docker image to Docker Hub

      3:01
    • 8. Useful Docker Commands

      5:56
    • 9. Kubernetes Introduction

      5:11
    • 10. Install minikube, kubectl CLI and virtual box VM

      5:11
    • 11. Create Pods, Replicas, deployments and services in kubernetes

      12:30
    • 12. Kubernetes Dashboard

      2:46
    • 13. Deploy Nodejs app to local Kubernetes cluster

      4:12
    • 14. Source code

      0:24

About This Class

Welcome to course on Docker and Kubernetes Fundamentals from scratch.

What is Docker?

Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies and ship it all out as one package

What is Kubernetes?

Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications.

You will Learn the following things in this class:

♦ You will understand and feel confident with docker and Kubernetes. You will know ins and out of docker and Kubernetes.

♦ Install docker, local Kubernetes cluster ( Minikube ), Kubectl CLI tool, VirtualBox VM.

♦ Docker Hands-on: Create images, containers, push the image to docker hub.

♦ Kubernetes Hands-on: Create pods, replicas, deployment, service on local Kubernetes cluster.

♦ How to load balance between multiple containers running inside pods.

♦ Create pods, replicas, deployment, and services in Kubernetes.

♦ Kubectl CLI tools concepts.

♦ Kubernetes Dashboard.

Transcripts

1. Introduction: Hello, everyone on. Welcome to my goals on Learned doctor and communities from scratch. My name is a reparative probe. I'm a full stack developer and I'm going to be instructor in the schools. So let's quickly have a look at the things that we're going to learn in this course. So, first of all, we will explore their doctor, so we'll understand what is broken. And why do we use stalking? Okay, so once we understand the purpose of the doctor, they will move one with the doctor in stylish. So we'll understand. How can you install the doctor on your local machine? And how can you properly set it up? So once we're done with that, we're going to explode around over containers and images. Okay, so we'll understand what this locker container border images And how do you run your doctor images inside of the doctor containers, OK, on ones, that is, that we are going to create our own Dockery me to get our own custom. Daugherty made using our custom Norges application. OK, so you will properly understand how can you create your own custom robbery meat? And how can you urinate inside of the docker container. Okay, Now, once you have created your own doctor, imagine grenade interrupted over 19 that we're going to understand. How can you get in several container? Because, remember, the container runs the whole application along with the operating system. So how can you explore the container operating system files using the doctor, See, like looking. So once we understand this, then we warned with pushing our doctor image to the local health which is a public repository for storing the Dockery meetings. Okay. And at last we're going to explore some of the useful doctor commands that will be very helpful whenever you work with your doctor. So once we learned the doctor, then we will move on with communities. So first we will understand what is Cuban. It is by the use communities. After understanding the purpose of the Cuban, it is we will move one with installing the local communities cluster OK, and we are going to install the Munich you, which is required for running the community's cluster on your local machine. They're also going to install the other tools such as Cube City LCL I don't and the watch box cubes detail is required for you, right? Ridiculous cluster and the world title box will be required by the minute tube total. Okay, so once the installation is completed will one day creating parts, replicas, two deployments and services. These are the building blocks of the communities, so that's very important to understand. Okay, So once we're done with that, we're going to mourn with the company this dashboard and they're going to understand what is it? And how can you work with communities? Dashboard Embroiders, a US based application that runs on your local machine. Very. You can interact with the Cuban. It is a social, such a sports replica services and you can infect more later everything over there in the sport itself, instead of fetching all the information using the cube CTL seal, I told from. So once you understand the community's dashboard, we'll also understand how can you deploy your own Abdo? The local communities cluster and you can even see your deployment in the community stash water as well. Okay, so that is these are all the things that you're going to learn. And I'm so excited to share all my knowledge and the learning city ways and I hope to see in my upcoming videos 2. Docker Introduction: Hello, everyone on in this really Soviet when you understand for the stalker and by you too bu stalker So doctor isn't doing that allows you do on your application Insert off the docker containers OK, on dinners is nothing but indulging in stents offer doctor image okay on containers also provide the isolated involvement to your application. Now let's understand what this doctor image. So, doctor images, a file that holds your court weighs on the libraries, all sort of other dependencies and even the operating system which is required for your application. Okay, so now that we had a look at the doctored image as we listed over dinner, let's understand, why did this need 40 docker container for creating isolated in warming? So let's as you must scenario, where you have one Lenexa and on this one Lennox server, you want to deploy five applications and let's assume that all of this five application are using Norges. The 1st 1 is using the Norges version seven the other one here 9 10 11 and so on. Okay. Now all of this application will only run on their specified version. For example, the Norges Version nine application cannot run on the eight. Okay, so we need to somehow create an isolated environment for each application to give them appropriate version off the libraries that they need to successfully run them. Right? So how would you solve this problem? So the one ways to speed up the five virtual machines using the hyper visor. But that's not an efficient solution, because it is going to take a lot off resources as well as their time. So this is the kind of situation where Dr plays a vital role because it solves this problem in a different approach, which we're going to see some so large first of all, have a fundamental architecture. Look at the virtual machine for sister doctor. So first of all, let's have a look at the architecture of the virtual machines. So now if we have a look at the architecture of virtual machine, you have your infrastructure at the bottom. Most layer. Okay, so your infrastructure is nothing but your hardware itself on on the top of which you have the hyper visor, which is required so spin up previous operating systems. So, for example, you have three hopefully application application, A BNC so If you want to create an isolated environment without doctor, I'm talk your truly isolated in bombing. So what you have to simply do is spin up all these three guests opening system. Right now, this takes a lot of resources and as well as their time because it takes time to put up the guest dropping system on your virtual machines required the dedicated resources as well. So it's not a very efficient solution in terms of resources as well as their time. So now that you had a look at the intermission architecture, let's have a look at the architecture of the doctor. So is against the in game of knockout again. You have the infrastructure to the bottom mostly, and your infrastructure is nothing but your PC. Laptop hardware. Okay, now, under top of which you have your host or being system. So, for example, if you're running Lennox, those are the Mac os. Okay? Now, instead of the hyper wiser to spin up the individual virtual machine, we have a doctor in general over here looking. Now, this doctor intern is responsible for creating isolated in moment for each and every applications. Okay, So, for example, you have a biggest on ABC. The NF okay. And you want Oh, run it in an isolated environment. So you basically done it inside of the container in the doctor using the doctor image. Okay. And the doctor image, as I told you before, holds everything that this record for their application Bhutan, including your court based the library's dependencies as well is the operating system okay ? And Dr Ingenuity, Dogger server is so smart that it can it can even share the common libraries between various containers. OK, Now, for example, if your application A and B are using some off the common Lebanese than poor doctor in general, do is it will share between those two container so it is efficiently utilizing the resources as well as the time. Okay, alerts have a located docker engine component itself against. So the doctor engine company basically compresses off three parts. The 1st 1 is to Dr See like the 2nd 1 is did a stadia. And the 3rd 1 is the doctor demon or it is also called a stalker silver. Okay, Now the Doctor Seelye is a command line tool that allows you doing directed the doctor sold over two rested. OK, so whatever doctors see like a Margie will run, it will basically first awful contact the rest tibia and rested cable for the coordinate with their doctor demon. And I definitely the doctor. Demon order Doctor Server is responsible for managing each and everything. Such as creating the image attending the Imagine several deacon dinner starting the container, stopping the container. Okay, so I definitely their tasks are performed by their daughter demon. What you basically do is you basically in Dr Winter Dr Server using the doctor, See, lie to less tibia. Okay, It's as simple. Is that okay? So that was it about their doctor engine components. Now, let's understand. How can you build a doctor image? Because I deem elites. Did Oconee means that it is running and start off taken dinner. Right? So how do you build it? So we are going toe practically do it in the upcoming videos. But let's have a brief look about how do you create one? Sort of create a broken image? What you have to do is you have to create a dr file. So there is no I said extension for this file. all you have to do is simply name the file a stalker fight. Okay, Now, instead of this doctor file, you specify everything that you need in sort of the doctor in major. Okay. So, for example, if you need some basic means that such as the AL finally knocks image or any sort of base image. So you hear specially various command that needs to be learned to start your replication. Okay, on. Once you build, these are doctored image using the doctor cilla using the doctor billed. Come on, it will generate a docker image that can be taken on any sort of machine which has a doctor on it. And your application is going to run successfully. So we will be doing everything practically in upcoming reduce. But I just wanted to give you a brief overview. Okay, Now, let's understand what this doctor helps. So hobbies in registry or the repository for the doctor Immediate. OK, so anyone can upload their image to the doctor, help on anyone can download any other person image from this particular doctor. Help. OK, so as you can see on the screen, there are various images available, such as the engine X, The oracle readies busy box Mongo strategy. You want dual buying pose grass north. OK, so these are all the images. They're not being applauded by the users. So what you been simply do is you can simply download this image and then it on your own system as well. Okay. And if you want, you can create a replication and created in Dr Image for this uploaded on the Doctor Hope and you can publicly distribute to anyone so anyone can download that particularly meets underneath on their machine. It's as simple a stack. Okay, So just like we have the repository for storing the court based which are get hope it lab and Big Bucket. Similarly, for storing the doctor images Broker has created a tune called the Stock Could help burying . You can simply upload your doctor images anyone you can simply explore other doctor images is well, which are being uploaded by 1/3 party. So you guys, this was all about the doctor introduction. I hope you were able to understand what the stalker and why do you stalker on the tank consumers for watching this video 3. Docker Installation: Hello, everyone on in this video, we're going to understand. How can you install talking on your machine? So does told you Don't put on your machine. You have to visit this website, which is hope Dark dr dot com. And once you visit this website, what you have to do is you have to click on this explored button over here. Then you have tow goto the global community addition tab. Okay, Just Agassi, which stands for community addition. And here you will find various insoluble file for different operating systems such as the Mac. And then you have for the same to us for daughter in those. Okay? And you can even choose it from here as well. Okay, so currently I'm on the windows, so I chose this one on here. You will see a place Logan poured on Warburton. Okay, So, first of all, you have to log in. That is, you have to create account, underdog help before you can download the executable file. So I have already created that. And if you haven't, you can simply sign up. Okay, You can click here on the great account, but I already have one. So I'm going to simply looking with my own. You can see we have this guy, Dr Burton, over here. You can simply click on this on it. Will. Basically don't order executable. If I have it, you can simply in started opportunity in machine. Okay, so I have already downloaded this particular executable file presidency were here in the file system. Here is the insoluble fight. Okay, so what you have to do is simply the weekly Congress and simply proceeded with the installation. Once we're done installing, you can simply stars for their doctor app, which is over here. Okay, simply click on this and it is going to start the doctor again and you can even see it. Over here is Well okay, So this is the doctor. Next stop on. Once you are done with this ones who have started the dogger, you can simply go with determinant on. If you're only windows, then make sure you're on the criminal as an administrator but looking on Brunnis adminstrator option if you're only Lena Authority Mac, make sure you use this Trudeau before the command that I'm going to tell you right now. Okay? So just run this stalker version. Check the doctor diversion. Okay. And as a side, if you're on the lyrics or the Mac, you go. You have to be applied to pseudo before this command. So the command will be Sordo Space dog A space version. Okay on. Once you heard this command, you will get the appropriate version. That is big. That is being in star loner machine. Okay, so in my system it is 18.9 dot toe. Ok, so here is the doctor claimed version. And here is the doctor said whatever generated over Indian version Okay, on India coming will use. We're going to understand what's the difference between the doctor claimed and the doctor Silver But for this video, we just wanted to in started or got on a machine on I hope you were able to follow along And thank you so much for watching this video 4. Docker Images and Containers: Hello, everyone on in this video, we're going to understand How can you work with the local Remigius as realistic and dinners ? Okay, so let's get started on. As you can see, I am here in my 10 minute. And if you're using windows, then make sure you're on this with the administrator on. If you are on the next on the Mac, make sure you use this sort of command for each and every doctor. Come on. I can show you in this video. Okay. So, first of all our list down all the images on your system, you can make use of this command. We just open images. 30 will show the images president in your system. But it is not going to show all the images. Okay, So if you want to see all the images, then you can simply say Dr Images and you're gonna plan. And we would call this a funny. Okay, so this attribute will is don't all the images. Okay on if you're wondering where this high finance a good came from, okay. And what are all of the redwoods available? So you can simply on this command, which is doctor images iPhone, iPhone help. So it will basically tell you what are the options that even passed. So this particular command Okay, which is this? So the high funnies for all okay, on Devon F is for friend that if you want to filter down some of the images using some condition and the hyphen, Q is for the quite against these other three flags available that you can pass on this topic Images. Come on. Okay. And the hyphen. Cuba Only short. The new medic ID's. OK, so as of now, there are no images. So once we have the image, I'll show you how the gun works. Okay, on. If you want to see containers than you condone this common Dr P s, guess what? Please don't only containers, OK? And if you want to see all the containers irrespective affords this status with very discreet it stopped or eliminated. You can run this government are gonna be a siphon here. Okay? On your tongue. Anyone done this common Dr P A Siphon FNL. So it will show you all the reports available for the candidness. Ok, so these are the reports that are available for the convenience as you can see we use the iPhone a flag. So we just present over here that stays. Show all containers. OK, so these are the basic amount. Police down the images and the containers. Now, since we don't have any major, we're here on the system. Let's try toe, pull some image from the doctor. Hopes so that we can start using the locker images as well listed over convener in the upcoming videos. We are going to create our own image as well. Okay, but just for the demonstration just for getting started, I just want to show basically, use the existing image from your doctor. Help for the demonstration. I'm going to make use off image, which is created by ordination. Auto user card is to do ok on the name of the images award. So if you feel so supported, as you can see here it is okay on. They have released ordering medicine, but I just want to use this particular limits for their demonstration. So, as you can see, it isn't symbol of web. It is. Hello world. Okay. And Nicholas, since on deport 80. So the way you can pull this particular images by running this command with the stalker. Pull to doom slash Hello, world Also do Mr User name which project this image on Hello world is there repository Name ? Okay, so combine it is an image name. Okay, so a few copies on simply go to the terminal on B street over here and hitting the so, as you can see, it is going to pull this particular image. Okay, Now, image also have the tax associated with it. Okay, So the's particular image, I think it only has this latest act, which is the default tag applied to any sort of image if it doesn't have a tag. Okay. Now, if you want Oh, pull a specific tag off, emit. Okay, then you can specify Over here we want to do things like that. But that should be president would here in their dog, Habas by looking So it is only going toe Pull those images with that particular tag. So no. Now you can simply than this command with this doctor gave me this. Ok, so as you can see now we have the image on our local machine. Okay, So they deposited. Name is totem slash the world tag is the leaders. Here is the immensity. Okay on here. Is this size or not? Okay, so I only see how can we were on this image inside of the container. Okay, So as you can see currently, we don't have any cadaver money. Okay, So the way human are Dundee made in sort of a container is by using the doctor on command. So again, you can simply say Doctor than on you can make yourself half Unefon help Attribute. If you want to understand, what are these special tags that you're gonna blow over here or get So as you can see that there are so many eggs available Okay, so now I'm going to simply run this image using the doctor and come inside here Simply said , Dr Run, I make use a happen Be at reboot for specifying deport. Okay, so here I'll say 3001 column 80. Okay, so if you're wondering, what is this? So the port that you are seeing on the left hand side is deport that you want to run on your host machine? Okay. On deport That you see on the right side is the port off the container. Okay, so the board of the host machine is going to map to deport off the container to basically on the application on. Then you can simply specify the name of Deem it. So here it is to do slash. Hello? Would Okay. And now you can simply it and that. Okay, so it is going to spend up deport. Now there are sometimes issue with the logs on the windows power sharing community. Okay, so I'm going to close this. And if I hadn't over Peace command, as you can see, the container is started. Okay? Andi, here are all the information such as the continual 80 theme. It's name which the container is running. Okay on before says when? So 3001 is mapping to the people. No, let Rosa on if I hit local host 3001. So, as you can see, this is a simple verb, which is a hello word on Dhere. It simply shows the container i d in which this particular images morning. Okay, so here the contemporary data shows is 21 seat will be OK so people will eternal on. As you can see here. Is that convenient ready. So simple. So I just wanted to demonstrate you. How do you run in the inside of their docker container? Okay, so this is how you basically run it, OK, now, let's understand. How can you stop and start the container? Explicitly. GOP. So what you can simply do is you can make yourself this command with this doctor. Stop and you can pass the container. Ready? Okay. So I'm going to copy this and be stirred over here and simply going to say hit. Enter. Okay, let's go to the browser. Fresh the app. So I think it shouldn't run. As you can see this, I cannot believe it's not money. And if you want to start, then you can simply make use off this. Come on again with this doctor. Start specifically condemn already. Quite simple. Deficient. So, as you can see, that started working. So these were the basic information about the doctor images as molested Docker containers. OK, so this was a just a brief for you. They are going to deal with the doctoring with this and they can't there more in the upcoming videos. We're going to create our own custom. Dockery meets on. We're going to push it. Put it over Baseball on. Well, spin it up in the container. That Let's see how everything works right from this bridge using the doctor fight. Okay, but for this video, that was it on. I hope you were able to follow along. And thank you so much for watching this video. 5. Custom Docker image using Dockerfile: Hello, everyone. So in this video, we're going to build the custom docker image. Okay. What? First of all, let's build custom application for which will be billing the customer robbery me took it. So I'm going toe be making a simple web app. Hello? Word using the Norges. Okay, so if you want to install didn't just on your machine, then you can simply had overtone or distort org. Then go with your download section on Install s put your operating system. We're here. OK? So you can choose any sort of installer operating system once you're done installing what you can simply do is you can head over to their terminal. Okay on, you can check the Norges version, but I think this command, which is north hyphen we give you the Norges version on the NDM also comes bundled with the Norges. So you can check the in members in as well by using this command, which is in my phone book. It because I know it's trained located northeast application. Okay, so here I'm going to create a direct record as nor just tap on. I simply go into this producer director so as you can see it is empty over here. On here. I'll say in B m and it on. I'll use the hyphen, my flag to keep everything as before. So as you can see, the baguette starches and file is created. So no one installed but gets Carter's express. Okay, which is Ah, Norges framework. Okay, on. We're going to simply create a very minimalistic framework. Just a lower message. Okay, so let me just open this files Indyk or did it? Okay, So since I'm using the escort, I can simply used the court space start open this current directory into the score. And here I am going to simply create a file which is indexed Georges. And in sort of this, I'll simply like the court to create in or just sour Cydsa. Const expressed equal ability. Quiet express. Okay, I I create a variable cord. Is that on a sign? It does express on here. I'm well, doesn't this appropriation okay, so you can take the board from the environment variable, but just for the demonstration, I'm goingto take a static board, which is 4000 on here. I'm going to simply say and here I say listening on board 4000. All right, on just about this, I'm going to add a listener gets, I'd say after use now for every part. What I'm going to simply do is I'll receive a request response object as well is the next function Okay, So it's uncalled back. And here I can simply say responds north saying, and here I'll send the message again. So I'd say hello Hello. From nor have their sick. Okay, so let me just say this and let's ride on this in the browser so I don't go over there. Okay. On Dhere. I'm going to see this in order index tortoise. So as you can see this saying app listening on poor 4000. So let's had ordered Deport 4000. Okay, so here, I would say local host call in 4000. On. As you can see, we have this message, which is hello from, nor that okay. And it is looking perfectly fine. Now just to make this my city look a little bit bigger, I can simply put this inside of here to attack. Okay, So since we are viewing this popular response in an browser, so yeah, let's let's right door on this several again. Well, within browser's refresh the absolute against you have the skill, dear Mrs Now, which is help from north. Okay, so no one application is ready. OK, so now what we want to do is we want to create a custom made for this particular application. OK? So as I mentioned you before for creating the custom, you made your little daughter file very new specific water, the things that is required by the application. OK, so first of all, here I created all the file. So all you have to do is create a docker file, Okay? There is no extension required, just a Dr file itself. And here you have to simply specify what do you need for this application? So you obviously need the Norges for this particular application. Okay, So what I'm going to do is I'm going to head over to the doctor, help Okay on here, and search for the Lord image. Okay. On just simply opened this base for the doctor officially means often, Lord. Okay. So, as you can see, these are the ladies versions available okay in various flavours such as the Alpine again. So if you're wondering what is all panel? Pine is the smallest Lennox distribution. OK, so the size off that particular institution is around just five MB. Okay, so in five MB, you can get the minimalistic Lennox operating system. The complete opening system with the Norden story Les Belles. So is ended a missing right. So I'm going to big. This produced a little buying version. Okay, you can choose it as per unit. Okay, There are various other flavor as well. For example, you can even choose the defect women. So or the fact remains is the one wearing you don't specify this past week flavored off demons. So we just specify the water here is, but OK, so as you can see, if you just especially with the North Pole inversion extend defector image. Okay. And if you're using the hyphen slim or the high final point, then you're trying to basically use this specific type off that nor image. Okay, so we're going with the Taliban. As you can see, it is eternal over here. So, as you can see this mention over here that the size is only around five. Maybe because the I bine version of the Knox is quite small. OK, so yeah, let's head over to the core base on. Tried to use this particular as a base image. Okay, so your doctor basically bears on the some some of the basic image. Okay, So some of the things that you basically need for your application to them, so don't be include this image you can make use off this from entry. Good. And you here, you have to specify the basing its OK, so the basic means that we're going to use is north colon, a darts, extra Nord zero hyphen, Alpine. Okay, so now we have this basic miss ready. So this will. This will give us the holy next opening system along with the nor just version. It started as by looking now under top of which you need to continue building on application. OK, so first of all, I'm going to say the working directory. Okay, So the working directories the folder wherein you want to basically paste your application core base. Right. So there you basically want to work with your application. Okay, So just for demonstration, I'm going toe Name some random direct premium, for example, slash Sandbox Okay. It's last test. Okay, So this is the directory in this whole Lenexa operating system? Very. And I want to work. OK, so this is this basically side stick and text folder for all the upcoming docker commands. Okay. Okay. So now I'll basically copied this. Like it's gorgeous and file. Okay, so I said it is not just and final destination for the So this is how you basically make use of the copy command. Okay, So you specially for doing it to copy that. If I lower folder, okay. And then you specially target directory. Okay. Now, since as I told you before the work directory, say said stick and text directory for all upcoming commands. Hence, I have used your daughter. Otherwise, I had to specify the old part. So that particular four Okay, so this dark, they notes this popular directory. Okay, because the working directory sites, they can text as well for all the upcoming commands. Okay, so now I also need to copy the packets Law, Jason as well. Okay, So he writes it. I get iPhone lock door. Jason and I invested in the test for literally. Now I'll make you loved it on. Come on. Okay. So their own commanders used whenever you're building, leave it. Okay, so they want to around this common, which is an install. So what did we lose? It will install on the picket specified in the package store. Jason, file. Okay. So you can live your using expects. So it is going to install the express in this pursuit. Dockery Mrs. With Okay, Now, after this, whatever simply want to do is I need to copy the whole or business. Well, okay, so as often as we only have the next case file. But if you have liver files, then those will be copied. So this particular for that? Okay, Since they target folder that were specified the start, which is the current context directory. We just slash sandbox. Last test. Now, what you have to do is, whenever you're done, the inmates inside of the container you need to make use off the semi cmd command because this is this is for the country melons. Basically. Okay, so this is not executed at the time off billing limit instead, this is executed at the time off running the container. Okay, so here, You specifying the farm off. So here I want to exhibit and then start again. So and start is going to go to the back of starches and fight, and it is going to have a look at this start strip. So I let me read it over here on in this Starscream, I say simply say nor indexed Ortiz. Okay on. Yes, it is going to simply start, Dino. Just what? And the financing there you want to do is expose Deport. OK, so I'm going to simply expose 4000 board because so that the application can be run on this particular port. Okay, Now let's go to their terminal on try to build the meat on first. All I'm going to stop this. Okay? So first of all, I basically see the existing with this. So, as you can see, we have this pretty used images that we used in the previous video over just to doom slash . Hello word. Now we want to be a lot of enemies, so let's see, How can we do that now? Basically, your custom made support to have to do is you have to do in this command. But this doctor Bill and you have to especially the part off the doctor. If I Wherever you have placed detoxify looking since we're running this Come on in the same directory there are Dr Felice Place. I'll simply here so dark that always you have to specify the full part again on simply hit Enter. So it is going to perform each and everything step by step. The first step it is doing is pulling the door checks in Georgia O Donnell penny meat from their dog help. So as you can see, it is doing this on it is further going toe Perform other steps as well, which we have spread specificity here in your doctor fight. So if you observe carefully, the second step it perform is what can be said, citing the work and get a tree that third step waas to show you that scroll a bit. Okay, so the first step was to copy the packages and the four towards Deepak is locked, Isn't okay, so it is in the same sequence that were specified here in the doctor fight itself. Okay, then it basically then the and be installed. Okay. On finally basically corporate. This source scored on Bay Street in the psychedelic pre on. Basically, they start this combined with the CMD and start. Okay, So as you can see, I just successfully been doctoring it. Now if I simply dudar images So as you can see, this is the new mix that has been created. So we haven't yet applied the back as well is we haven't named Image answered is showing none. So here is the majority. Here is the time it was created And here is the sites. So as you can see, this protective immunity is having the full fledged UNIX operating system. Still, the sizes seven day amid the reason being is that we're using the Alpine version. If you were if you were using the defect awash in without using the Alpine over here, your investors would have gone around 706 100 MB something OK, but there are also some corns associated to the Alpine person. So some of the basic things that as the gate and everything doesn't come stall with the openly next OK, so basically reduced the size, they don't on some extra libraries and the features okay, so it comes with the minimalistic libraries for running really next operating system. So, as you can see, we have basically Gordon image. Let's understand how can you run this image inside of the container? Okay, so we have already basically land this image just two times less shallow, well inside of the container. Now, let's understand. How can you do on your own custom made inside of the condiment? So two run lead image you consider, Please that Dr Run. Then you can do deport mapping, using the hyphen beef like so here You have to specify the host much import and the container port. So, for example, or for the host machine port, I want to run this app on 3004 port. Okay. And the container port is the 4000 because our application is running on the 4000. So what I'm simply going to do is I at the 4000 over here on Dhere. You have to either specified the Miss name or the image I d. So since we don't have any amazing name side, I'm going to specify demons Idea that and simply had entered. Now, as you can see, this'll has started running the container itself. So if I run this command with stalker PS so as you can see here is our container running. Okay, So if I know nobody poured 3004 we should have ah application running. Okay, so you find a fresh this. This was an older version of the North. Just at that was, in any case, I'm closing this I find with the local host 3000 four. Then, as you can see now, replication is running on insert off their docker container. Okay, So this is how you basically it on your doctor image instead of the docker container. And as I told you before, if you want to stop your container, then you can make yourself this Stop. Come on. Ok, okay. So now if I go to the pros on and fresh, it is going toe, simply stop the Okay. So, young guys, that's how you basically ballooning meat on. That's how you need instead of the continent. So unless this was all about creating the custom images for your custom application on how do you run it inside of the container? Yes. I hope you were able to follow along. And thank you so much for watching this video 6. Getting inside of Docker Container: everyone. So in this video, we're going to understand how can we get in sort of chicken dinners and see all the system file present inside of the convenient. Right? So in the previous Udobi created our own custom docker image and ran it in sort of the container. Okay, so this time we will simply try to get into the container and see what what are the things that are present over there? Okay, so first of all, I'm going to speed up the container. So if I had a friend, Dr Pierce, As you can see, there is no container running as of now. So here I am going to simply spend a bigger deal but an income earned doctor hyphen B for port mapping. And, for example, if I want to run this application on 3004 pork okay on you and the continuing port is 4000 and here I just simply specify the image I d. And if I hear dented, let's go to the browser. Onda fresh the page presidency. The application is running on the 3004 and this is actually turning in sort of the country . Afraid so. This time you fired your doctor Bs. So, as you can see here is thicker generality that has been running as of now. Okay, so let's see, How can you get inside of this container and see all the system finds? So to get inside of the container? What you can do is you can simply on this command with stalker execute. You can ah, blair flag, which is I d. They saw this stands for in directing more. Okay, then you can pass on the continual rating with this president over here. Okay. And here you can say slash bin slash message. So as you can see no beer instead of the gondola, Okay. Now, if I go to the world for that, you will see that we have all these fights. OK, so this is basically the alpine distribution off Lenox. Okay, so the size off this pretty troubling system is very small, and we can see that all the operating system Pfizer present over here just like you find it on the next. Basically. Okay, on as you can see, here is the sandbox folder that is created. So if you remember in Indian provincial gov specified this working directory as slash sandbox slash Stressed. So as you can see this producer for the risk created in sort of the doctor image. Okay, so now if I simply go into this predator folder, you will see another folder. Korda's test. Because this is what we specified. Hearing your doctor fight. Okay, so now if I go into the past Fuller, I'll see all the file that I simply cooperated. Okay, on. They're not even generated on their own time, but an Indian BIMST, all sisters, nor models and everything. Okay, so we have the doctor file itself. We have the index, Jace North bottles. Forget to lock Justin and the packages. Okay. On the interesting part is that fire on the north version over here. So if I said Lord hyphen B, as you can see, Theodore's extend or zero is already in stored inside off this base image. It isn't a fine he made for this particular lord specific version. Okay, on, if I simply get out off this stalker container and if I don't go north, happen v. So, as you can see on my system, it is a door 11 or three. But instead of the doctor continued. It was eight or $16 0 Okay, so, you know, clearly understand how this immediate basically holds the specific version of the libraries that is required by the application to one. Okay, so this was all about getting in several, Doctor. Okay, so I just wanted to give you, but if information about the same on I hope you were able to follow along. And thank you so much for watching this video. 7. Pushing docker image to Docker Hub: Hello, everyone. So in this really? We're going to understand How can you push your doctor images? Period? Oh, God! Help! OK, so we have created our own custom docker image. And now we want to do is now we want to push this image to the dog. Help! Okay, so now, before pushing their your name, mr Dot will help make sure you haven't accounted over up. OK, so I already have one. So once you create the corner near Dhaka have first of all, I tried to log in before pushing the mystery dog. So you can basically looking into the doctor by you using this combined with stalker logging. Okay, so you have to interview using him as well as the password. So you can see the Logan is sexist. Now, what you have to do is before pushing your mission. Don't help. You have to attack that image. Okay? And in that case, the midges north tagged as of now. So let's see, How can you die getting it and then push it to the local hope. So the way you can tag early meat is by running this command just stalker tag The *** unspecified which image you wonder back. OK? And then you can finally passed the name, so I call it as a big bro slash Uh, Norges. Uh Okay, So now if I return doctor images So as you can see, theme name off the meat is pretty gross national. Just. And if you do in space for a specific tap than their default tag that that will be given to the media will believe this. Okay. OK, so, Noel, post this image to the doctor. Help, and it should appear over here, So I will go to their terminal on the way. You can push your image. Your doctor help is burning this commander with the stalker. Push on. Your name is named. Basically get child copies and pasted over here on click. And that on it should start pushing our dog help. And as soon as it is done, it will be reflected over here only. Okay, so they just wait until it is done pushing to the doctor. So, as you can see, it is done pushing good or could help lead scorpion it or could help. Now I fairly fresh my profile page underdog hub. I should have another image. So as you can see, it is over here. We just pushed just few seconds ago, citizen, or just happen at Okay on. If I simply opened this, then you would see all the information regarding the image itself. That is their diet and everything. So, as you can see, here is the bag. So by default display just Okay, So you're against this Waas all about pushing your remission, Dr Hub. Now this image is publicly available for anyone on you can simply pull it. Using this particular name on you will simply get your get this particular image on your local machine of it. So there is. This was all about pushing on the twister dog. Help on. I hope you were able to follow along. And thank you so much for watching this for you. 8. Useful Docker Commands: Hello, everyone. So in this quick video, we're going to see some of the useful commands off the doctor. Okay, So since we have had a look at most of the commands in the previous videos, let's just try to wind up and we get all of the components that we have learned. Okay? So, for example, if you want to see the containers, you can make it off the dog GPS case where it is going to show on the air and inconvenience . Now, if you want to see all the containers, even if they're not running, you can make yourself have any attribute. Okay, on. If you want to remove the dinner, then you can make use off this commander. Bitches talk are removed, and you can pass the container ready, for example, this one. Okay, Someone took over this Bay Street over here on my firing Dogger Bs. I funny. We should have only one condition. As you can see now, if you want to remove their luck and Devon as well, you can simply your doctor. They move on basically at the ready. Okay. Now you won't get some other, such as you cannot remove the continually, Fritz. Funny. So what you can do is you can make use often iPhone f attribute. Okay. So if if that also doesn't work, then you need to stop the continent and then remove it. Okay? But you can forcefully removing and embarrassment. OK, so as you can see now, we have forcefully removed the container. Okay? My final doctor Tapia's hyphenate. There is no content left. Okay, because annoying federal doctor is happening. There are no country nous left. Okay, now, let's understand. How can you are telling my people containers all at once without having toe individually Delete them with the idea. Okay, so let me, first of all, try to spin up the conditions quickly. So I First of all, thank you for giving me this. And here I am, going toe spin up. Took and dinners get the 1st 1 is for our application itself. So let's say, for example, $3000. 4000 uh, Bruce slash Nor just happened, and I'll be running another candidate. Okay, so I answered All girl, I found me on, for example, I want dude on this condition alone for 3001. Okay. On the container port will, Baby, let's say I'm running this for the good image. Okay? All right. Hopefully that makes sense. 95 ward off PS I funny. OK, so as you can see, I have these two containers running. Okay? Now, what if I want to deal it all off this condition at once instead, off individual it there being the ideas. OK, so you know that we can get the content already using this command with this doctor Tapia's high. Funny, I think you. So I think you stands for the quite flag, which only returns the I d. Nothing else. Okay, so even if you have 50 grand dinners, it will return all the 50 idea off those containers so you can simply What you can do is now what you have to do is they did all those 50 containers with just one commands are actually How can you do that? So you can hear simply there a doctor removes. Then what you can do is you can pass the various ideas by using this common talker. Yes, I funny. I think you booking. So this particular part is going to do it on all the 80 off your African dinners on the doctor removed will remove each and every doctor convenience. Okay, let me illustrate this on again. It is saying that you cannot simply removed it on Incan dinner so you can make yourself hyphen f flag so forcefully remove them. I find a locker ps haIf on a. Then, as you can see, there are no good Dennis left on this. Seem a place for the images is when so ordered. So you want to remove all the this one at once? So start off taking each and every society. What you been simply do is you can say that, but I am. I OK, so in gets off image, you have to specify in case of cardinal it was him. And here you've been simply say, Dr Images. I funny for all I found Q for quite and simply hit. End of says, you can see everything is deleted from the medias. Okay, so if you now run doctoring medias or even didn't agree minutes, iPhone A. There are no images left on this producer system. So this is how you basically deal with the images and the containers. Let's see some other commands as Well, So for example, if you want Oh, understand. Working off legs are present on each and every. Come on, the Children. You can always make use off the help Tribute. Okay, so that will give you order the flags like you can use. Okay. And you can use it on any sort off. Doctor, Come on. OK, on. If you want to understand what's there? Disc? Use it done by the darker than you can simply there. Doctor system 90 f again. So it is going toe give you the disc uses of the rubber on here. Also, you can simply turn dogger system if I never, never so basically understand what are they had to Good that you can pass. As you can see, we just use their DF, which shows that excuse it. You can make yourself other attribute as well. That is the events in foreign. The proof. Okay, So the broom common is basically used to remove the unused data, or in some cases, it is also quarters dangling him in this. Okay, so they're dangling images are the images that are not having the tank and the name associated to them. OK, so if you want to? Simply the move on the and use data order dangling me This What you can simply do is you can make this command with this doctor system through. Okay, so it will give you a warning. Like whether do you want to remove these all these dangling mages on North. Okay, so if you say yes, then it is simply going to removing, since we don't have any with this on our system that over brutally claim spaces, you know? Wait. Otherwise it would have shown some sort off space that it cleared up by the moving the dangling, which is because dangling because I'm not actually used again. Those are mostly the limited images that does under dead while building the doctor image. Okay, So what is this world? The basic command that you need to basically understand on you guys? I hope you were able to follow along. And thank you so much for watching this value 9. Kubernetes Introduction: Hello, everyone. And in this video, we're going to understand what this Cuban it is. And why do we use communities by There is need for communities. Okay, so capabilities is orchestration bull that allows you to deploy, manage and scale containerized application. OK, so let's understand why do we need to communities? Okay, so let's consider an example where you created 10 to 15 micro services using the doctor on you containerized all of those containers, and you basically deplored that Convenient. Right? Now let's suppose that you get some of the high traffic on some specific micro services. For example, if it's an e commerce website, then your order Micro service is getting a lot off traffic, right? Because the user of placing the Lord of Orders. Right? So what you need to do is you need to scale those containers at the right time. Okay, So, how to use? Decide how many containers do you want to done? And how much do you want to scale and return the containers that you want to scale down? Okay. So things like this requires a lot off manual effort. Okay, So, the Cuban it is priced twos or commit all of this process. Okay, on it basically reduced the burden from the Lobstein. Okay, so let's understand words The architecture of the communities on how each and every core component works in the Cuban. A disc, Lester. Okay, so if we have a look at the architecture of the communities, you have the master and you also have the worker nodes. Okay, You can have one or more master inside of the communities cluster. OK, so the master holds the core competence off Dick Avery, Disc Lester. Okay, so some of the core components are Controller E Bay Sever Shader and the key Value store. So let's understand, each and every competent step by step. So the main component and the central point off attraction here is the basis of what? Okay, so everything in the Cuban a disc Lester is done through the air base of Okay, So So the best. Always their top most core component inside. Articulate this cluster, OK? And if you talk about the controller which is also known as the application controller, replication controller is responsible for managing the replicas off your working nords. Okay? For example, if you want oh, deploy five instance, off your application. So it is the responsibility off the replication controller to check whether all your five instances off your application are running properly or not. Okay, then you also have the shareholder. So whenever you deploy the application ridiculously disc Lester the base ever communicates with the shuttler. So the shareholder decide on which Nord our does this application. It's stupid, the blood. Okay. And if you talk about the key Value Store, it is also one of the most core components inside off the court kubernetes cluster. So the key value store holds the state off the kubernetes cluster. Okay, so everything related to dick abilities is stored in the ski village store. If this does lost, then all these state off the committee discussed ability lost because the base over takes the request and started Indicate Valley store okay, and it price to come continuously updated key value store as part that in just industry it off the application. OK, Now remove that the worker nor the American nor has three main components. The 1st 1 is depart this ignominy. Stick your proxy and the 3rd 1 is the Cuban It Now, if you talk about Depart The your party is the smallest deployable unit in the Cuban. A disc lister on insert off part. You can have a Republican donors funding. Okay, so your application done insert off this part only, Okay. No. If you talk about the Q proxy, it basically holds the I'd be table. OK, so it manages water the i B on which your application or your convenient is running. OK, And if we talk about the cube lit, Cuba is one of the most core component instead of the vertical. Nor Okay, so just like we have this pace over here on the master, the two great is one of the most important competent here on the work in order because the Cuban it continuously indirect with the base over, and it tries to give the Oblate like what is this state off the Lord's, whether they're running or not. Okay, things like that. Surprise to come conveniently communicated with the base over. Okay, so these are the basic competence off the unit disk Lester on. Let's have a look at how the affliction is the blurred and Gwen's. So, for example, user makes her deployment using the cube city. Elsie Lytle. So that request is entertained by the base of the base level stores that request in the key value store. Okay, then it tries to communicate with this regular tow, ask for the appropriate for cornered, available toe. Deplored that particular application. Okay, on. Once the deployment is made than the basis of what updates the value for the request in the key value store and the replication condone, make sure that the desired number off instances off your applications are running in sort of the worker notes. Okay. And the cubic continuously gave the information to the base over the lighting, The state off the worker nodes. Okay, on if one off your lord basically shut downs are crashes than it is the responsibility of the replication controller to make sure that the desired number off the replica sets are running inside of the worker notes. Okay, So you think this was the basic components off the Cuban disc? Lester on? I hope you will able dough understand some basics regarding decouple natives clustered on. Thank you so much for watching this video 10. Install minikube, kubectl CLI and virtual box VM: Hello, everyone on in this video, we will, I don't know. The necessary tools required toe the community's blister on your local machine. Okay, So don't on the community's last on the local vision, you can make use off a cool car. Less many killed. So many girls, they're going that allows your daughter on the kubernetes cluster on the local fishing. As I said on its testing the Lord comedic sister that mean there can be only one work ignored. And the minute you also requires the virtual machine to run. Okay, so I personally like to use it with a little box. But there are other varias worker machines that the medical support on here is the list of them on. One more thing. I would like to use that if you're running this mini cube on your windows machine, then remember that since we're using the word toolbox with minute job, they were toolbox, and the hyper V cannot run together. Okay, So since we're in in the Mini cube with virtual box, you have to disable the hyper V. So do disabled. It happened. You went head over to the control panel, okay. And here you can simply search for done with those feature on off. Okay, so you can go to this party corruption. And if you school down over here, you will see that Here it is. Here it is a hyper V. So we should be unchecked. Okay, so in my system, I have already disabled the hyper V. OK, so make sure this particular option is unchecked if you're using windows. Okay, on. Remember that once you on take this high part of the option from here, you won't be able to use the doctor because the doctor for Windows software actually depends on the hyper V. OK, so it requires the hyperbole to one. Now, if you're wondering, kind of used the doctor of individual box so that we can use the Munich you and the doctor together. Well, if you want to use the doctor the D virtual box instead of hyper V unit to install a very old version off Dakar software, which is called a stalker toolbox. Okay, now, this stalker toolbox used to be there for the very old over General David does in the back . But I really don't recommend you to use that particular software because it is outdated, OK, and even the official documentation of the doctor suggest you used in your washing. So I just wanted to let you know that you won't be able to use the doctor once you disable this hyper V. But you need to do it so that you can use the Munich you. So if you want to install the with virtual box, you can simply had a word with the Google ends and such fortune walks away with the force link in the desert. So here is the caption for the water box. You can hear the work of you Download section on, download the water books s party operating system. My system, it is already installed. Let me just show you. So, as you can see, here is the executable files that I start on my system on what's already installing. You can simply search for the virtual box at. Okay, so it should look something like this. You might not see this many job over here, if you're install is completely fresh, Okay. But that's okay. All you need to do is make sure that your wardrobe boxes running. Okay, So once you are done installing the virtual box many toe installed Emily us. Well, okay, so if you search for a stock medical and you can head over to the gate a page of the minute You okay? So on this get up. Eight. You have the down lord links for videos offering systems. Just dilly Knox in there with those so you can simply condense and are normally medical as well. So let me show you. I already have done ordered this. Okay, So if I search for Munich, Ill here is the executable file. All you have to do is simply double click and install it on your machine. And one certain installing you can head or body terminal. And simply on this command system et tube. So it will show you the version that is in stolen in machine. Okay, now, once we're done installing the medic, you we need to install one more. Pull Carl s cubes deal. Okay, so the Q Trivial Bowl is used to interact with the Cuban Aidas question. OK, so it's basically a command line interface. So to install the cubes, you tell you been simply serves the cute little install on. Just click on the force Ling in the desert on you can download or installed the cubes ideal as per your operating system. Okay. On this executable file off cubes. A deal not to be done on your machine. Okay, So what you have to do is simply at this two year part. Very well. Let me show you. Currently, I'm on the windows. So if I go to the environment variables, let me show you how I have a depart for the que to deal so that it works properly. So is against he. Here is the part for the Cube City download section. So it is in my daughter's fuller and then the cute little executable file. So make sure you are dick. You chortle in your apart, basically, to make it work properly. Okay? And once you have sort of the moment available probably for the cubes a day, you should be able to access this culture deal from anywhere in the system. So if you lundy cubes Vivian on your terminal so as you can see, it should give this tradition that wins. The cube cereal is properly configured on your system. So as you can see, you're destroying the group's retail description along with the comments that you condone with the Cube City. OK, so if you see the output like this, that means that cute retailers probably configured on your machine. Okay, So is I. Hope you were able to follow along and install the tools such as the virtual box. Okay, Minnick, you as well is the cubes reveal. So thank you so much for watching this video. 11. Create Pods, Replicas, deployments and services in kubernetes: Hello, everyone. So in this video, we are going do on the community's cluster locally using the minute you and we're going to create the part the biggest deployment and the services on their local communities cluster . So let's see, How can we do that? So before we proceed further, let festival start the local communities clustered using the minute you So to start the medical begin simplicity many cube stock on before I simply start I want to show you what are the trigger? Study can pass to this particular command. So they won a table that I want to show you is called as the M driver. Okay, so let me assure you it is over here. Okay? So if you're using the any of the water machine other than the watch box, then unit Don't make sure that you need to pass that particular value to disappear. And I drive with two. Good. Okay. But if you're using the virtual box that no Nieto pass because the default value for this attribute is the little box itself looking so since we are using the Watcher box, I'm not going to pass this value to the hyphen infant bm driver attribute. But even if you barter, then it won't be a major issue. And they realize that the right to boot that you can pass. Then you can have a look over here as well. So they're just clear the mill on start the minute your child's in Munich, you start. And who didn't the So it is going to take some time to start the Munich. You okay on? If you're running this command for the first time than it might download the Mini Cube I also file Okay, that this approximately 150 be so that might take some more time. Israeli further in English for the first time. I already have the profile. Don't read it on my water box. The reason is that I already then this command previously answered holiday downloaded. So yeah, it might take some time on your machine, but that's OK on. I'll get back to you as soon as it is done starting in Munich. You so as you can see the minute Cuba's started successfully No, If I run this command with just meaning que status. So as you can see, we have this proper status off each and everything, but that things have running or not. Okay, on now, since our local communities closest running professor cubes it, he'll get deployments to get deployments from the local communities list as a concert says no, this is fun because there are naughty parents. If I say get parts so again knows this is his phone. And if I say get services, then you would find only one service, which is the community service. Okay, so you guys, let's see, how can you be create our own custom the Brahmins and departs in the local community discussed. So let's just head over to the court base. And here, if you see properly, I have credited the parliamentary amplify reason I'm name. This file is too damn high friend diplomacy. Gargamel is because they miss. That we're going to use is they don't slash Hello, world against which is a shame is that we used in the talker lectures. So just understand it over concepts. Okay, there is no such compunction to name the file. You can name it whatever you want. It just has to be a Yemen, okay? And in fact, your deployment file again BDs and file is well, okay on, even if you create your contribution, filing the Yemen when it is saying to the Cuban it is a place of what it ultimately gets converted to digest. But the Emel file is more human, readable hands. People prefer to write the confirmation in the file in sort of the gist. So let's understand what is presenting. Dizzy Amplified. Okay, so first of all, understand that each and every Cuban it is resource can be created. Using the confrontation specified in the Yemen file are digits and find okay on either the case, whether it is a Yemeni file or digits and five unit to specified three things for any kind off communities resource. Over there it is a service order deployment or a part of the Peter said. You have to find these three things which are the kind of division and limited, the kind of specify what kind off resource it is. Residency. This resource defines this office on this resource defines redeployment. So that's that's what kind of person A B version is. The communities the pay wasn't that you want to use. Okay, So if you're confused about where this Cuban. It is a p A than you can head over to this documentation. Okay, so if you think research for the Cuban, it is April documentation on the Google. You will find this over here on. You can simply read regarding the same. Okay, so they're obvious even points available, such as the slightly baseless everyone or the extinction Slash, even with Okay. So you can read more about the Babel joining A with you. Okay, on the last thing is the metadata. OK, so these are the three things that are required in Madrid is nothing. Just a name that is given to your Cuban. It is a social now for the service I have given, The name is to doom. Haven't hello World happens of its OK, so there is no compulsion to write this service over here in this office kind of resource. Have just named it so that it is easier for us to understand what we created. Deployment. Okay. So whenever we I interact with accumulated Lester using the Cube CPL command line interface , you will see that. But you will see this soon that it will be easier for you to understand what kindof logs are printed in the terminal. Okay, so just for the proper naming, I've named the hyphen service over here. Okay, so let's understand each in everything when weapon. Okay, so let's start with the deployment. So if you're wondering, where are the parts? And the replica shirts also always remember that the diploma itself creates the plague aside with itself creates t parts. Okay, so you don't need to explicitly create departs your diploma. These are timidly creating the part itself. So if you go here in this back configuration off this deployment type of resource, so here you first of all specify the replicas. So, for example, if you want to run the five instance off this particular container or or this particular application, then you have to specify this. We're here until this backs. And if you have a look at the temperate than here are the various thing that you can pass on to the temperate, such as the label on the label that we want to give to this producer application is to do my friend hello world. So this is the label by which you can uniquely identify the application from various at the replication in sort of the question. Okay. On inside of this bag, under the template. A key you can specify. The container says, Well, okay, so here I have named the continuous to do my phone. Hello, world hyphen Cortina. The images that will be using is their toe slash. Hello, word. Okay, so this image, if not found on the local, will be pulled from their doctor. Help on deport. That I want to run this container on is 80. Okay, The reason I have specialty container port is 80 because this image is built on the board 80 itself. Okay, so on this particular image exposes the port city. So we have to use the content. Borgetti. Okay, so this is all over the department's. Now, let's understand what this service so service is a kind off Cuban. It is resource that allows you to access the reports even in sort of the Christian and also authored all the question. Okay, So let's understand. How can you access the parts from videos perspective such as instead of the Kristen outside of the cluster? So, first of all, if you have a look, a tip at this office selector properly. We have named this characterised to Tom Special Award. So what this will do is it will simply try to pick up all the boards having this particular label. OK, so as you can see, here we have the here we have already labeled as to do my phone. Hello, world. So this service is going to target this particular parts. Okay, Now, if you have a look at the ports So here there are three kinds of force available. 1st 1 is reported self. The 2nd 1 is their target poor. And the 3rd 1 is did Northport. Okay, so the pork is deport that is accessible instead of the question target Port is the board where we need to forward the request in sort of depart on the North Pole is deport that is available outside of the cluster. So deserve the main tree kind of support that you have available inside of this office. OK on. We have kept these of this type is Lord will answer. So it is going to lord balance between this five replica set off your application, OK? We don't have to handle the load balancing it is done ridicule when it is itself. So if you're wondering why the nor port is 20,003. So the Northport rains can only be between 20,000 and 32,767. Okay, So make sure you I didn't know what we're doing. This range only. So now let's see. How can you basically deploy the application for thinking with this cluster using the group's hotel? Come on. So first of all, I had over to the directory. Okay? On Dhere. I can simply say oops. Ordeal, create high for Neff. Then you can pass. Did the polonium modified? Okay, on Here. Take that. So, as you can see, that's created this office. So it says service created then it also says the deployment created the reason it is telling in the sequences. Because forced, we have this service in our family. Fine. And second, we have redeployment. Okay, so now you find on this government is cubes ordeal, good deployment presidency. We had this to do happen. Hello. Will have only plummet. And this names come from this particular matter. Ok, 9500 jobs. It he'll get bards. Okay. So as you can see through the communities has already created the five running instance off this particular application. And if I, for example, run Cube City, it get services. So now we have another service running, which is to do hyphen handle iPhone service again? No, there do is by which you can simply get to the application in the browser Force units to first will grab the Munich your baby. So here you can save your baby. Simply copies. Okay, go any closer over here on now, if you go to the diplomacy a modified you'll have after carefully that be especially in Northport as the 30,003 on this is deport that is excitable of our 30 cluster so very currently accessing the application outside of the customs so convenient to accept this port at Mrs Go over here on enter this sport, OK, And so as you can see, other pictures deployed with the local communities Crestor. Now let's also have a look at how can you access this particular application using the second way? So here you can run this command with just many cube service. Then again, spaces by the name of this office. Okay on, then you can say hi Fun If you are so it will give you the exact you well, by Richman Simply heard over on access your application. OK, so it is the same. You are rendered. We just heard previously. As you can see so deserving basically two ways by which even access your application running in sort of the communities Question. And I will have to show you one more thing. Which is the Lord balancing, which will be done by our service. So if you would have up to carefully in our diploma nimal file, the kind of service we have is off type. Horrible answer. Okay, so it is going to Lord well, in spite of in the five replica set off our parts. Okay, so let me first of all show you departs. That application is having. So if I think you CDL get parts so there's every five parts there. Everything OK on that? Let's go to the president. Let's see what body is currently running. So it is this one. Okay, bitten ending value off a double. Have HR. So, as you can see, this is the part that has been currently displayed in the browser. Not just observed that if I try to hold on this application in and calling it a board Okay , it is going to use some different parts. Okay, so this is done. Maybe service. And it is load balancing the traffic on various different parts. So destroying the part that is used, is it? 862 x t. OK, so actually, the idea is completely this one. But I'm just picking up some ending because it is easier for us to map. Okay, so this time, in incognito more the part that Rand was this one. Ok, so as you can see how this service is lowered balancing between this five replica set off our parts. Okay, So this is all about the Lord balancing done by this service. So you have this. This was all about creating the parts producers deployment as a business services in the community is listed. Andi, I hope you will able to follow along. And thank you so much for watching this video 12. Kubernetes Dashboard: Hello. Everyone on in this movie are going to have a look at the tremendous discord. Let's see how can be accepted on how can we use it to perform video submissions. So communities dashboard is an app that allows you to and drag ridicule in a daze. Cluster components such as the bar, the plumage services and much more on you can simply perform their tasks which even perform from the terminal on you can perform it from. The application is so Let's see, how can you open the Cuban natives dashboard? So since we are currently learning the local communities cluster using the minute you you can simply here Same Munich, you dashboard. Okay, so it is simply going to open up the That's what Over here. So, as you can see here is the community's dashboard on it basically shows everything right from the diplomas. Tow bar, toe the big asides. Okay, eating everything along with the status off everything like how is everything working? So, for example, if we go to the deployments, so as you can see here, we have to do hello world deployment. Okay, so here you have all of the information about this particular deployment. Now, if you want to The services residency here is thes office that is running with Strydom Hello, World service. And now if you go to depart So as you can see, these are the five parts they're turning that we specified in the confirmation fight. So here, a departing on Let me demonstrate to you how the community is automatically maintains district of the application. So, for example, if I remove any of the bar Okay, so let's get this party basically crash. OK, so that was dilated. So as you can see again, the communities creating the five parts. Okay, so what it is doing is it is basically creating the new part to maintain the fives. The biggest aid that were defined over here. Okay, So, for example, if I did fresh this particular page, you will see that again. We have this five part running forward. The earlier ones on this one is just created a few seconds ago because one of the parts basically crashed and the same information can be fed from the terminal is well, so you can simply security guard boards. So here also, you will see that all of these parts were here. But this is this 3rd 1 part was just created Few seconds. OK, And it's straight. Does this morning looking So I just wanted to give you a brief or you regarding the community's dashboard. Okay, So existence and collapse so that even in practice it Okay, so you is that it wasn't about the meaning, your dashboard, you can do and number of things over here. Okay. But I just wanted to give you a brief overview about this application, so Yeah, I hope you were able to follow along. And thank you so much for watching this video. 13. Deploy Nodejs app to local Kubernetes cluster: and everyone. So in this really love, you're going to deploy our custom nordeste application that we made a year in the previous videos on we're going to do blow this application to think you will notice clusters. Okay, so you remember that we also made it over filed for the same on. We even applauded the doctor image, which is this one reparative go slash, nor just happen. So what I'm simply gonna do is I'm going to create a deployment just similar toe there. You don't have any polonium if I okay on, I'm just going to replace the image president over here with my own image. Okay, on most of the confirmation, William in the same. So let me, first of all, make off. I lower here. So here I just call your dad's nor just have fun. Have fun deployment body Emily. Okay, I'm going to paste all the configuration from this file on Bay Street over here. Start off too. Damn high phone. Hello world. I just want to call it as Norges. So I'm going to replace all the existing differences off on this file on let's instead of five Arab leaders. We want to run 10 replicas often or this obligation on one more thing. That unit to operate is the image name over here. So in sort off Judum, it will be the probes slash, nor just iPhone app. And the container port will be 4000 because our replication bones on this port, if you remember. Okay, on dhere also, they're not a good board. Should be 4000 a lady on instead of the Northport. Let me just pretending. Or pork poultry 30,004 instead of the 30,003 It is used over here in this particular deployment. Okay, Always I think we're good to go. So let me just go with your terminal on Simply created deployments. So here and say cubes appeal. Deviate from that on here. Elsie North Jay's iPhone at high friendly, prominent Auriemma. And if I hit end up residency, it has created service as well as the deployment. So here, if I said cubes ideal get deployment. Okay, So here is the new government they discredited on. It also shows that that the how many parts already eso we wanted the 10 instances off replication or the fish only one is ready okay on it. It might take some time to basically get all the parts ready. OK, so as you can see, no five already. And now if I see you still get parts will see that the communities is creating departs for the application of a So for the Norges, it escalated the 10 ports on. We have this five parts for a earlier application. Now you can see it off this thing in the communities that sport is went. So let me this simply open of the Cuban it stands for Okay, So if I say Munich applies border, it will open up the Cuban. It is die sport. So, as you can see, here are the 100% deployment done on it say's 100% off departs at all. Turning on D replica sets are also money. Okay, Now, if you go to the elements, as you can see here is the north just plummet that we just brought right now. And if you go to depart, then as you can see here, the 10 parts static created for application. Because this is what we specifically here in the replicas. Okay. On Here are the previous application five replicas. Okay, so, no. Since that application is running, our ports are running. So begin. Simply exist, this particular application. So the way we can exist. This is by running this command, which is first of all, let me just get this office so I'd cubes. It'll get service on the way you even get the u r l for the replication is. But I mean this command, which is meaning you. I remember this committee's only applicable for the local communities cluster. So here you can say Munich, you then you can say service and you can base this off his name on. Then you can see place a hyphen effort you wanted. So you can see Here is the U. N. For application. Tremendous copies already. Browser on. Hopefully true work If I hit enter. So as you can see, it says hello from Wardak. So this is how you deploy your own custom application to the Cuban. A disc, Lester. So you guys, I hope you were able to follow along on. Thank you so much for watching this for you. 14. Source code: