How to deploy application to Azure Kubernetes | Azure Kubernetes tutorial for beginners | AKS

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone welcome to my channel and in this video I will show you how to deploy application into azure kubernetes now before we proceed let's first understand the sample application so this is a perfect sample application having a multi-container application and it is a distributed application running across the multiple container now let's understand the architecture diagram of this application so here we are having a six containers first one is a voting app it is a front-end web app built in a python and which will give which give you the option uh to option uh after that uh there is a radius database which which is collecting a data from this voting app here we are using the dotnet worker which consumed the vote and stored into the post create DB and we are using this node.js which is node.js is a web app which is show the result uh about your board now here we are we are using a multiple uh you can say languages to build this entire architecture so here we are using a python node.js for storing a data postgraddb you we are using a dotnet for uh getting fetching the data from radius DB so it is a perfect example now uh what I will do here first I will deploy this entire application into my Docker desktop and I will show you how the application looks like and after that we are going to deploy into the azure kubernetes so for that I have downloaded this entire code into my local machine so quickly I will show you so this is a entire application I have downloaded and I'm going to deploy it into the docker desktop so for that let me copy the code Docker compose up open the terminal and paste it so it will create the containers okay great now quickly open the Docker desktop and we can see here okay so all the containers are deployed let's quickly check okay so this is a voting page where we you have a two option either you like a cat or dog and this is a result page where you will give a live result So currently the dogs 100 let me change cat and here you can see get fifty percent of 50 let me change it to log about 100 percent so it's just a simple application okay now I hope you understand this application now we are going to deploy this application into the azure kubernetes so in the last video we have created one kubernetes cluster AKs demo and you know that how to create it so in inside this Akash demo if we I'm using a lens to just visualize the entire cluster so if you can see here the Pod so that is right now there is no application deployed inside this kubernetes so now we are going to deploy it so for that let me again copy the command so so the command is Cube CTL create minus F and the folder name so here what I did I copy all the yaml file into this demo application okay and you will get this yaml file inside this folder K8 specification so inside this folder we have all the yaml file so now I am going to use this yaml file and create a application inside the azure kubernetes so if you see here so this yaml file contain let's quickly check so the first one is a vote application so here you can see wood deployment.yaml okay and here we are going to create a container name is vote and it is taking the image from Docker sample example word dot app okay and the second one is a release so release deployment so it is deployment so again the same we are taking the image directly from the radius uh postgrad DB while here so we are directly taking the image from the postgrad we are using the 15 a version of the PostScript and the node.js so where is it where is it yes the result service dot deployment so we are taking the image from the docker samples okay and the worker node we are taking from again the docker sample now how to create this yaml file and what is a deployment what that we are going to discuss in the next video where we are going to give I am going to give the complete detail about the kubernetes objectives but right now we are just deploying the application so I will show you how you can deploy the application into the azure kubernetes so we are going to use this yaml file so in the real-time scenario developers are doing the coding and they push the code into the git Repository once once the the code into the git repository the build cycle or maybe using the build pipeline we are going to create the image and we are going to store into the Container registry here the container registry will be any for you can use the GitHub Docker container registry or Azure container registry so it's totally up to you and after that once we have a image inside the container registry we are go we are going to use this image and deploy it into the kubernetes now this image right now right now this image for the sample application it is available in the docker sample registry okay now let's use this container registry and we are going to deploy the application into the kubernetes so as we as I said the all the yaml file I have copied into the demo application folder and now I am going to use this CML file to deploy my application so for that group Cube CTL create and the folder name demo application now it will use this yaml file and create the application now here there is some error so let me first clean all the kubernetes existing kubernetes object okay now let me again create the applications yeah so now you can see our application is deployed successfully so let's quickly check open the lens and here you can see there are six container so as per the architecture there are sorry expert architecture there are five container first one is a vote container so let me quickly open the application so here you can see so now this wood application deployed the kubernetes so here we have a two option cat and dog and there is a result container is there so let me quickly open it okay now you can see dog cat so you'll get hundred percent let me remove this oh it's let me reload click it get so now this simple application is deployed Into the kubernetes Now [Music] here just for your reference these all are the kubernetes objects support deployment demand set State full set and replica set that all the kubernetes objective objects I will explain in the next video as well as if you see here so when we deploy the application in the background it is creating the services now what is the use of service we can use the service to expose our application outside the kubernetes okay so there are three types of service cluster IP node port and load balancing this service is also we are going to I am going to explain into the into the next video so I hope you like this video see you in the next video
Info
Channel: Nirav Gandhi
Views: 27,575
Rating: undefined out of 5
Keywords: azure kubernetes service, azure kubernetes tutorial, azure kubernetes, azure aks, how to deploy application to azure kubernetes, aks, microsoft azure, azure devops, kubernetes in azure, azure container registry, Nirav Gandhi, azure kubernetes service for beginners, azure kubernetes service tutorial, azure kubernetes service (aks) tutorial, azure kubernetes service tutorial step by step, deploy a web application in azure kubernetes service, azure app service vs kubernetes
Id: LVJzjKwQpPc
Channel Id: undefined
Length: 10min 36sec (636 seconds)
Published: Thu Jan 19 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.