Multi-Rag / data /transcript_XaSdKR2fOU4.txt
VashuTheGreat2's picture
Upload folder using huggingface_hub
a76db1d verified
Raw History Blame Contribute Delete
257 kB
If you want to learn Junkin in a single video and want to become a devops engineer You have come to the right channel because today's In the video we are going to see that In one shot Jahan Pe Hum Log introduction to Junkin and CICD are the ones to watch. How to Setup Kinect on Virtual Machines Where we are at A W Eat Instance Jenkins is going to set up Jenkins. How the UI Dashboard looks like on Uspe Jobs How to make a freestyle project How to write decelerator pipelines Like in production, multi Agent Multi Node Jenki Agent That Also View These are for people with some experience. How to write shared libraries And if you want to become a devops engineer If you want, you can have role based access. Authorization: All these things are required by the user. Management seems to be watching them too. And if you've stopped here in the video So take projects to the end where you We are going to do the CICD project. There are Kuber Niti's on Argo CD and its Dave Seck will monitor Prometheus. Ops which is an aspect of security Junkin' that's also going to be covered in this where we are going to meet TV Sonar Cube All the things you'll do if your pipeline fails If it happens, you will also receive an email notification. If you come then all these things will be seen in today's video. It is going to happen in 2019 friends if you have watched the channel If you haven't subscribed yet, do so immediately. Two, because there are so many deps I'm going to bring it in the videos and if you If you look carefully, I have written a lot of Debs has also created tutorials. Prepare engineering projects There have been so many that you are very If you can avail the benefit then subscribe immediately. Do it too, let's get started What is Jenkins? Understanding Jenkins First you should understand what CICD is. Let's see how each one is doing. There is a project in the organization Okay, let's create a project on GitHub. What is Git Hup? It is a tool where You can store your projects It is now used for code management. The project that remains on Git Hub If the developer writes the project, then who Developer writes Now developer this project Code push Lets build this project now That happens on Docker for builds. We use Docker, so this is on Docker. The build takes place and then an ECT Instance Pay or any AW Pay We are deploying this Kuber Nits cluster. People can use this on ec2. Diploidy Do we monitor Applause? What do we do? We monitor. let's use Prometheus okay Prometheus monitors now next Time whenever the developer pushed the code again It will be built again If it is deployed then this thing will not be continuous. what should be what should be Continuous Continuous means one after the other This thing should happen again and again and this thing What happens if your build from let's If he fails, he will not be able to get further deployed. There will be no problem but if your build passes Done, you can immediately take it to production. If you want to deliver it, whatever is the time to market time to Market, it has to reduce its market has to be reduced and who reduces it? The DevOps Engineer You Want to Be What is the work of a devops engineer? Now to complete the process in minimum time All these things like code build, deploy etc. You can automate this, right? You can automate this using a tool called Jens, what is Jenki's job? Jenki The job of is to automate this whole thing So, if your code comes, it will be built. That will be the test, that will be The monitor will be built back and tested. If it is deployed then the symbol of Deps would be If you have looked carefully, a Infinity is infinity where your The code happens Build Test End One of the deploy build test and deploy It is a very popular symbol and because such a There's a tool that lets you do that because There is a tool that gives you a CI CD CI means Continuous Integration. Your code has arrived and is being tested. That code is also being built, so Continuous Integration: If you have done it in Computer Science You must have seen integration tests and unit tests. If all this testing happens then what is your code performing that thing in a way Code that does Continuous Integration whether you are passing or failing, then once Continuous integration should be done and then its Continuous deployment or delivery Hey brother, what is continuous delivery and this What is Continuous Integration then CI means Continuous Integration where Your test cases are run using the CD. it means Continuous Delivery Bhaiya Meaning of Delivery What is it and why is it not deployed here? Used friends delivery slush deployed How can you do it when you So that thing is delivered to you right means You manually go and click on the order. So when you want something Deployment should happen automatically where you are a Delivering that thing at the press of a button Ho That Time You Use Continuous Delivery Okay, so this is my phone and on this phone I wish there was an app that updated If I go, I can go to the app on this phone and click on it. I click on update to click Later it is getting updated meaning delivery but What happens sometimes Instagram2 gets updated occasionally It must be that a new feature, a new reel, has arrived overnight. It is being uploaded so basically all that If it is deployed then if you complete the entire process Automate it where you can do anything manually If you are not doing it then that is continuous Deployed butt where you have a little button Have to press or trigger If you need that automation then it should be there I hope the delivery is okay You must have understood that because such a Tool that allows you to use CICD in devops Helps and what is CICD I have explained that to you, so this much part So you can understand it very easily. I will not tell you much about its theory. Everything will be practical together, come on, Jenkins. Now that I'm on the VM If I talk about VM then you can do it on Azure also. You can also do it on AWS. You can also do it on GC, you can do it on your virtual You can do it in Box as well as in Docker. You can do it in your own system also. If possible, we will do it on AW today. So let's go to AW In a flash, we came to AW. Hope everyone has an AW account. If you don't have it, then have it with you. You should have a server, because it The entire tutorial is going to be on the nut. There is a GI tool, GI means whatever work you do If it remains on a web browser then it It doesn't matter if you are using Wiz. Yes, you are using Mac, you are using Nut. Are you using this tutorial on anyone? For this we are going to use AW Pay Okay, let's go now, I'll go to my Now I need a server here at AWS. If you want to make it, then making a server is very easy e2 I will click on it and on e2 I will click on it. I'm going to create a server, so come down a little bit. Go here and go to Launch Instance Go to Launch Instance and click on End Go to the launch instance and name the server two like jenkins master ok jenkins Master name given now here dew imagine Images Which images do I want to use? I want to use nuts because It looks great and the nut is very accurate and Out of that also your x64 bit x86 means Type this now if you are doing this tutorial Yes, you can get the T2 Micro with the free tier. Yes, but I found a lot of things in this tutorial. Things to do: Create servers, agents There are a lot of things to be done, that's why I'm going to take t2 medium which is t2 medium He would have had a little more rum. Look, I have 4GB RAM and two CPUs, so I I am making a lot of tutorials. I have to tell you things so I'm t2 I am taking medium, you can also take T2 micro You can do it in the free tier or you can do it on your You can also use it on your computer, it is very easy. I will tell you the whole story, now it's over. You will have to create a key pair so that you If you can connect to that brick instance I will go to Create New Key Pair. I will give the name of Jenkins One Shot Okay Jenki One Shot Ye Ki Ka The name is that you can give anything and here After going to Pay, you can see the format of the private key. Save it by dot pay and create a pair do it So your jenkins-cli.jar If it happens then take 15GB to be on the safe side Can you say that work can be done even with 8GB? There is no problem but for the future We are also going to look at Docker in the tutorial. So I would carry 15GB to be on the safe side. Okay, let's just keep it that way now. Yes, I have taken 15GB and I can get up to 30GB free. It happens okay, free tier eligible up to 30gb so I have given you everything for free Things have been done taking the e2 t2 micro and here But take 15GB, okay, that's it, just one Instances are about to connect to the nut. Launch Kar Do and Within in a Few Minutes Your instance will be launched. Successfully Initiative UC try refreshing it a bit I made it quite big, maybe that's why it looked so good He is not running, yes yours Instance is running now, keep it incremented It's great because you understand everything. OK running now I want to close this instance Now let's connect How to connect it? Go to Connect. Click and connect to the instance. Whatever is the method, through this you can directly You can connect it on your browser. is the public IP address and this is your user If your name is Nut, then with this Nut username you You can connect as you would connect A browser window will open and your EC2 Instance, which is a VM, is your virtual machine. It must have been spun up, look here If you go, please clear it, it's going well. This is one way, I will tell you another way also. So the other way is you go into it. Click on Connect and or SSA Select Client SSA Client Meaning Is this terminal so this terminal This is our SSA client, so that's why Go to the SSA terminal near you and look for it. SSA, try writing that SSA sends such a message If it is coming or not then SSA client will be able to Pass must be installed to use this method To do this, you can also use this method. You can do EC to Instance Connect with This method can also work, okay, so SSA You can open the client with the complete steps given below. SSA client so I opened the terminal I have done it brother, open terminal, locate your The private file is yours, which is private. The file is I placed jenkins.war in the download folder If so, you need to go to the download folder. If you want to locate it, then it is very difficult to locate it. It is easy, you can either find it or ls filename what was the file name Commodities #pm yes it is visible, if it is correct then Download is complete, run this command if Necessary to insure if your key is not Whatever is to be publicly viewable is ours. No, it should be read only, so if you If you are on, then there is no problem if you Go and score, okay, let me tell you this first. The command I am running is Shubham@Shubham MBP this is my local system so I Connect the local instance to your AW instance I am connecting so CMO 400 to this what happened it became read only and its After connecting to another instance using is Public DNS, so this is public DNS. I will use the SSA command, SSA hyphen aa Jenkins Key I I means he is giving path Where is your key located? If I am inside the download folder then So I directly named it Key. hai what is ubuntu is my username and @ What is ec2? It is my DNA and I will copy it. I will do it and go here and just throw it down. I pressed enter and he asked, "Do you want?" To continue, yes brother, I have to continue. Okay yes it's done, so this is Ubuntu @p 172 What is this? This is our e2 instance of AA. where we are Can you install it for me? You can do it in any hat, okay. The minimum you need is 256 lbs. t2 micro also has that 1gb off Dry space so t2 micro would have that too What is recommended is 4gb rum and 50gb dry space is what was recommended I have used the minimum that you can You can use it too, it won't cost you any money. Okay, now you have to go to DBN Natu. Because we have selected Natu, this is it Commands To install Jenk, this is the tool A GI based tool is what the tool is made of In the Java programming language, Java Pay developers created Genki which allows you to Can automate CICD which builds Test was deployed to automate that This tool was created in Java, so that's why we Install Java before installing Jinx. If you have to do it then Jenk Requires Java to run ok so install it how will you install it First, run the sudo at update command. It happens, I will tell you its explanation I am Sudo means as a super user, that is we People can't run as administrator in Windows. Let's do it, we get permission, AT means Application Package Manager And what will be the next step after updating? The steps after updating are very easy. sudo att install funcconf jedi k17 GRE TO OPEN JDK MEANS JAVA The development kit is fine, install it. Java Run Time Environment will also do everything And this font Confide and go here and throw it here I went and threw it, okay it's done, now he says I need 500 rupees now, okay brother, take it brother. 500 more and this will be yours in a while. It will install, look at the progress bar. This is going to be your complete 100% Java. Once Java is installed After that you have to insure that Whether you have Java or not, it is for The command is java high fun version so copy this Do it and this progress bar will end. After that, go and slam him too, that's fine. Slammed Jawa Han Version of Open Jedi If the run time of version 17 OpenJD is correct This means you now have Java installed. We can setup Jenkins. Now we will go and see two types There are releases, one is long term View support releases and a weekly release There is something or the other every week in the weekly release. If you keep doing something new then there are chances of bugs. If the chances are very high then long term What does support mean that once it is made He kept it aside, he is going away, he is going away If it is good then it is very good So you should take the one with long term support. If yes then type the entire command in sudo dbo get Let me explain it to you: sudo w Get sudo means again super user permissions W Get means get something from the internet Hi Funo means one path, on which path you Which path are you taking from the internet? Pe Store Hoga To USR Sher Keyring I'm bringing one of the junkin's so junkin' Whatever it is, it is an open source tool, so no put an installation of it anywhere and may harm your system. It is authentic and good, absolutely official Jenki If there is a key to use it, then that You are installing the key, first of all Let's copy the key and go here If you throw it then sad w gate this location Pay store it and get the key from this URL Come on, the dot has come, what should we do now? Take the key and print the echo echo meaning what dab said by is key to is key to Sign and install your packages There is a list of it, right? There is a source list in that source list Add Jenkins with this command will take it and add Jenkins so here I'll run this command and it will work for me. Add Jenkins to your sources list Now you can add it to the source list and do it. After that, you have to update your system. The same command as I mentioned earlier, which Han Gate is what happens to the internet Things come up okay so sudo at get Updates will kill my system. Updates: Check out the Jenkins package junkinwali now. Things are starting to get updated, okay, now I I will install Jenkins directly. So sudo etiquette install jks enter that's it That'll take a couple of minutes and your junkin' Will be setup so setup junkin It is not too difficult for you Initially, run a few commands and mands. Then there will be no problem now Jenkins has been installed on your system. I'm junkin' or not. If you have to see it, how will you see the system? CTL Status What is Jenkins System CTL? There is a controller that tells the status. Start can tell the status of Jenki It can stop it, it can restart it All things so if you look at the status then junkin Continuous Integration Server is active and running so let's get this going now we What we want Jenkins to do If my system is restarted then also sudo for automatic restart System CTL is enabled because doing this Your junking is your start The generator starts automatically as soon as the system starts. If it happens then I also want it to happen Enabled junkin now that is my Jenkins It will be running on port number 8080, so I I'll go to my instance, here's mine. Instance and the IP address of this instance If I extract the IP address, this is it. My instance will go into details of this Go here to AW S2 and In details, this is the public IP address and It will be running on port number 8080 but As I drive, this wheel keeps turning He is roaming around and saying Kant Why does B. Reese know because Jenkins is What's up for now is his Joe Port The number is 808 and it is currently blocked by the firewall. So they go to the firewall and we have to open it. Go to security if you have to. After going to security, you can go to security Go to the group, security group means fire There is a wall, okay, and go into the fire wall. By editing these rules, i.e., incoming traffic I've made two edits, now add a new rule. Add a new rule to port number 8080 Custom TCP on 8080 means custom Transmission Control Protocol Anywhere and IPV means anyone So if you want, someone can access You can also give me access or give me my IP If possible, just your IP address That's where you'll have access to Jenkins, and so on. As soon as you save it, you saved it. And if you go back to port number 8080 You'll go and hit refresh, okay side. Can't provide okay never mind again Hit refresh what's going on fix it Let's open a new one and see don't do http s do http ok Enter is run and your Jenkins is in front of you. So unlock junkin So first time junkin If it starts like this then it remains locked. If it is there then no one can take it out because it is locked. If the person cannot open it then the one who has Only those people will have access to the server. Joe Junkin's initials The password remains here, where the lib junkin Secret initials kept in the admin password And this initial admin password remains Where does it live? It's in your system. What to do if sudo remains Cat and this path, this path from here Got it, cat it, cat means inside it Show the things and hit enter. Look, the password has arrived, copy it. And go here and throw the administrator Password is there and continue like If you continue, never save it now. Do it, yes, so the junkin tool is very All plugins exist because of those plugins Jenkins Gets More Powerful From Let's You have to connect Git to Git Hub If you want to connect then there is a plugin for git Docker has to connect to Docker's plugin Happens if AW is to be connected If there is a plugin for AW then it is like this If there are plugins then we will use them now. Just click on it and install it. You select Install Suggested Plugins You can do whatever you want, but you probably know. It will not be possible to decide which one you want. It is suggesting that you click on it. Then go to Install Suggested Plugins So look what he is doing. The folder name plugin he's installing Build timed out credential binding These are all the plugins that I will be using in the future. I'll let you know in the tutorial. So he's installing all this. There is also a dark theme available brother, I I will also tell you about Blue Ocean, there are many such There will be many topics which are not written here. Yes, but I will tell you in the video. Stay tuned and like the video Please do it because there are such long A lot of effort goes into videos, so the user I will enter the name admin OK, I will enter the password as admin now. Don't hack me, I confirm my password. I will enter admin, my full name is Shubham. ladde ok email address is mine train V If you do shub.in then you will become an admin user. OK, this is the URL of your instance. If you go to this URL then your junking Once it opens, save and finish it. It's junkin' is ready so your Jenkins' If the setup on the VM is done then how much is it now 25 It's been a minute, we've just covered two points. I think while covering all these you Junkin will take six to seven hours comfortably Reading will be covered completely, let's go, this junkin is Ready start using junkin so when in 2018 I first saw Junkin in my office I was shocked, brother, what is this? What is this new item, what is build? What happens to history, I don't know How will I manage this view, who is this cue? what is this all about so this is Jenkins This is the UI of Jenkins where you If you can do all the work of Jenkins then this The UI runs in the browser so what I I told you about the installation here. This is the base system, okay, now zoom it a little bit. Let's do it so that you can enjoy it more. This is the page where your junkin' jobs will be Display all your jobs here So when you are looking for junk food then click on such If you do this, this dashboard opens up. Junkin has a dashboard where you can view jobs. You can create an agent. You can do cloud conferencing and many more. If you can do things then you will understand one by one that Let us first understand what these things are. What is a job, because you understand it like this Suppose you want to automate anything like If you want to create a CI CD pipeline, then this What happened to the pipeline, you got a job. If you want to clone your code, what should it be? That one job has been automated and you have been done. If you want to run a Python script, then What if you have a job, so if you Look carefully at the Jenkins logo I mean, what's the best part about it? This is the butler, butler means this man is waiting. You just give us the order and we do the work. If we do junking then generally we do jobs Let's create, okay, so we are the best First click on a job and then create it. Click on A job, now we are here These items make the item with the song No item means something box type Think about the folder type where we People are going to do an automation now on this item write the name of first job okay first job as you You will get pro pr by the end of this video and Your first job will be in Deps, by the way Jenkins' first job is to do everything Now I have given the name of this job to do. Diya First Job Now Its Item Types Freestyle projects mean you You can do anything in this, you clone the code You have to run Docker and you have to do some automation. You can do everything you have to do, one after the other. Steps have to be given in free style In the project pipeline you will find the decelerator I will also tell you how to build pipelines. In multiconfine, like if you have multiple Dave Staging Production in Environment If you want to do it then I will tell you that too and Folder means your simple folder. You can do whatever you want inside it. Multi branch means like here in the group Git has many branches. Master Branch Dave Branch Production Branch, you will get some automation on that branch. If you want to do it, you can do it and if you Created an organization folder Inside the organization folder, you can find many If you can keep jobs, then many such items You can make it for now, we are free. Click on the style project and ok I will do it ok simple free style We clicked on the project and clicked OK. Now this form opens what is this form This is your confession form that you are not eligible for the job. Put what you want to do in the description. This is a simple job, okay, simple job. Discard Old Build means what build It happens when Junkin says that this is the man who Once the entire automation is done, a build If you do it a second time, then you get another build. It is possible that whether she fails or passes, it makes no difference. If it has to be built, it will be built, so let's So I created a job in which I had to pay some If you want to get it printed then it is printed for the first time. So create a job okay and build that job build okay build what do I want now Do I need old builds that are my old If there are builds, it has to be discarded. If you want to save storage, you can do this. If you don't want to save, leave it as log rotation What happens, how many days should you keep the build? If you want, this can also happen, not just 3 days If there is an old build, it will be automatically deleted. If you do it, write three days in Days to Keep. Two more maximum builds to keep in two Write days, that means write two builds, so that Whatever builds happen in the last 3 days, It will delete everything and maximum two of yours. I will keep my build but I don't have that much brain. I want to install it, close it, okay, git hup project so yes I will give you a git hup If I get the project done then my son Shubham 153 First, it should go to the repositories. If you go and check, there's a notes app here. Jango Notes Pap Ek This I Project Karna I am going to give you and the other project that I I am going to get it done, that is your three tier Application Blogging to Wanderlust Karke Project Hai Wanderlust here's this mega project this is also me If I get you to do both these projects, you You can fork, fork means make a copy. If you can make your own copy, here We are going to do the project right now. If we leave it as is, the GitHub project For now, keep it as it is, parameterized. Meaning you are passing any parameters right now Throttle build means you bike You drive it, you give it a ring throttle You might think that if you turn it around like this then it will be 100-150 It will reach 50, it will not stop after a time. The throttle goes down, meaning you click repeatedly. If you do it, it will still stop at one build. That is why it is called throttle Concurrent build means in parallel if you If you want to run the build then there is a source for it. Code management means if you need help with Git Hub If you want to take up a project, use this. You can, but don't lift it for now. Build triggers means when to run this build For if you want to run it from a script So trigger build remote if you are using any one job want to run it after it ends So build after this project periodic Meaning you want this to happen every morning at 6:00 Once the job is running, you can create a cron job here. Can you also write what this cron is? I will tell you further about the Git Hub hooks you You want the developer to push to Git Hub And if Jenki's job starts then Git for him You can also put hub hook and similarly pole SCM can also do all these things now. There is an environment in which if you Even if you add a secret environment variable You can put what is most important to you. Build Steps Go Here for Free in the style project and add build step You have to do it and click on the execute shell here. Click on it and in the execute shell you will get a The box will open, inside which whatever you want to shell will appear. You will enter the command and it will run for example echo hello friends okay and echo Subscribe and see why. I am saying this again and again and please like this Why am I saying this and please share this also. Why am I saying this because these videos would have been Isn't it the more people it reaches? That project will be added to his resume. They will become good devops engineers and will India will move forward plus our channel Train V Shubham Channel Us Pare Abhi Currenty There are almost 97000 subscribers which is very I'm close to being 100, so I am Hopefully giving steps that my work I I want it to be automated and such things should happen and I also want that What should be created in the last, it should become a folder So m kd i r hine P Deps So what is M KDR a creates a folder okay hein p means If the deps folder is present, do not Make it if it's not present, then make it so. MK Dir Han Pa Deps and it's done Deps and make it to the deps folder Given some steps to do automation To Junkin and I told Junkin brother Save So what does your job do? Hello. Gets friends to print, like and share begs for subscriptions then his What it does next is create a folder And it echoes that folder CreatedDocumentsFragment here What will you do if DCD Continuous Delivery? I will click on delivery and deliver it. Two brothers, the build schedule will be done. The build has been scheduled, now that build is so It was so small that it was not visible here. Click on the first job, you will find it there Look here it is here so what is this one this This indicates that your build is successful. This tick means successful, now this The build is complete, you can see its output. that what actually happened, what we wanted to print hello friends Then we wanted the folder to be created so that He is making everything so it is started by users. Shubham boy, I started running Edge system running as a system user Building In Workspace Ver Lib Junkin Workspace: First job, whatever your job may be The name of the folder will be created with that name. gives this location on your system then This is your system, if you Go to cd swer lib genqi workspace First job, here your folder is this path If it becomes automatic then it has become so now what is he saying to this hello friends so He printed Hello Friends Echo Like, Share, Subscribe, so he said all this Printed by MK DI R Han P Dave To He might have created a folder as well, so let's see. There is also a folder named lo deps by doing ls So this is automation that you did freestyle ok and des folder CreatedDocumentsFragment But how are things at the basic level? Only if you learn will you be able to move forward, now understand What are decelerator pipelines or Then what are pipelines, pipelines like this understand that this is your tap okay this is the tap cool now this is the tap and this is the garden okay this what is this garden now in this garden tap water what will you do you a pipe You will put a bun pipe in it, this pipe is fine You will plant it and it will water the garden now. You want this garden to remain watered. What will you do if the place goes away? There is a hole in the pipe. You put a sprinkler on and it will water everywhere. Now this pipe will spray it nicely. You want my water in this, right? Maybe the water should become a little purer It can also get spoiled, so you are here in the middle If you apply a filter, what are you doing? a source You are going to a destination from using a In pipeline and b you are creating stages So in the same way, Jenki also CI CD Builds pipelines where you can Through pipe does not actually mean pipe. There are stages like stage one Stage Two, Stage Three, Stage Four, Such The pipeline is built, what could be stage one? What could be the code clone stage two What could be code build stage three What could be the stage four test? Deploy build test deploy pipeline If you can make it, let me show you. How do you make it, so how do you make it free style? The project is done, let's leave it. Come to the dashboard and click on a new item If you click, click on New Item Now I want a CI CD I named it Pipeline Construction. CICD is ok or demo CICD why I'm demoing it for you freestyle Then I went and that was it, command dhad dhar dhad Just write it down and you will get the pipeline, just click on it. Pipeline P and click OK. Now put it in the description, this is a Demo CI CD Pipeline Done Discard Old builds Old builds if you want You can discard it if you don't want it. Okay, it's the same, completely fine, completely. Same is build triggers, if you want then like this Build all that is completely the same as you What is important is this definition pipeline. Script Here you will find a script You have to write it which is very simple. What can you do? Try samples. Pipeline do hello world a hello world Pipeline is simple, he wrote pipeline I turned on these curly brackets, curly Brackets off, agent, any agent I'll tell you what happens next, just watch it. The topic of agent will also come, okay, this agent I will tell you further and he will give me more stages. given stages means that in that pipeline what are the things that are going to happen then stage Hello, there is a stage called J Steps. will replace hello world with hello Friends, I want to get it done, okay, hello friends, name Now you have multi stage There could also be a pipeline, such as this one There are stages, add another stage inside it. I put hello, then you put something else like Enter a stage named Create Folder and Like it is written echo hello friends, you can also say h can s means shell command and in that You can see M K D I R Han P Deps To A folder named deps will make this simple So what you were doing in freestyle You can do the same thing in pipelines also. What is the benefit to you stage by stage You will keep getting the output that the first stage has passed The second stage passed and the third stage failed. If it happens then he will not go to the fourth stage. So it's very easy for such staging. If I minimize this, it will be yours. The pipeline is if I minimize the stages If I do it, these are your stages and these two Your stage is a stage what does a Stage prints Hello and another Stage creates folder if you want You can also create multiple stages with lettuce. I made another stage, let's say bye And here something called bye friends, that I will get it printed, okay, it's done simple now. This syntax is called grooviest kiss what do you say Groovy lives here and save it here Do it, then save it in the sandbox now. When you build it, see how it turns out. Look, this build will come out perfectly. It is running here ok build has run It's done, now click on it and build one. Started by Shubham Launde, run-went for 16 milliseconds then look at the console output What was the console output Started by User Shubham Launde R Ankans this is yours like free Folder is made in style, it is also made in Hello friends, the devs folder has been printed. It was done, bye friends, and it became a success. Meaning, like you did LS, first job I created the folder of deps in cd dot dot Will you see the demo CICD folder created CD Go to the demo CICD and also the devops in it If the folder is created then you are automating now Using decelerator pipelines but bhaiya what We need to create such folders in the industry. There are no friends, there are no folders in the industry Actual projects in the developing industry If it is possible then let's move on to the actual projects. I work but one more thing in the industry What happens in the industry is this We wrote Agent Annie here so junkin It operates on master-slave architecture. So one remains the master and the other nodes or Then there are other servers where If the work is actually done then it is the master's work. What is scheduling jobs? Then distributor to agents now here It's written Agent Annie, so it's also built. Jenkins is also running on the same server. How is this industry built on servers? It happens to be your If Jenkins is on a master server then it Jenkins server remains then your There are nodes, your nodes are these which Nodes reside here and are called agents. Such agents live and work as agents What remains is that Jenkins will give them work and Here the job will actually run so that Memory issues in Jenkins To be safe, I want to setup this agent. I'll teach you right now, okay, so first of all. What I would do first is create an instance of I'll go, look, you'll go to Junkin too, right? Go to Dashboard and then Manage If you get junked, I will write you a warning. will come Building on the built in node can be a Security Issues You Should Set Up Distributor builds then built in node Meaning where you installed Jenkins. that's what your built in node is, so if If you are building a job there then it Not a good idea, so best is to set up N Agent then click on Set Up N Agent Now to create an agent you need a second You will need a server just like this demo. This is your server, become this one. If it is gone then let me create this server also. Let's name it agent Vinod, okay, if you name him Agent Vinod Go to Instances, Launch Instances I will click on a jackpot agent or jackpot. You can name the worker anything like agent I will do that which nut uses and instance I will keep the type t2 micro because I don't have to do a lot of work on this, just If you want to run jobs then t2 micro is fine ok t2 micro kept the pair same Let's take it because one shot jack one shot Done Now turn on SSA in the network settings. is very important and HTTP If you want, you can enable HTTPS. 8GB of storage is fine, so what should I do? After I launch the instance, this What I'm doing I'm junkin' agent I am making an agent, what is it, you can do it with your Built-in nodes generally don't run builds Yes, you place an order on the built-in node and Where does that order get executed? Agent Pay which is a separate server so a separate I created the server here. So if you look at this, Jenkins here Master and Genie Agent both running Is Now Jenkins should be installed on the Jenkins master. But the agent who is there, because No need to install but Jenkins is built on which tool? It is built on Java. So you must have Java in the agent. If you want, let's connect the agent. and install Java in the agent So this junkin agent came connect Go to it and connect it with the SSA key. If you do it, I have used the same SSA. I'll go to another tab, my local And I'll go here and paste it, so I If I connect then why this what why I am doing this because I am from an agent I want to connect so this is what I've done. The agent would have named it here. This is called agent oh agent give it some orange color Which color should I give it orange and this should be it gone is mine master What color will you give to Master and Master? I will give you the blue, okay, give the blue to the master. I will give you this orange and I will give you this orange, okay, so this I am done with my master and this is mine. What do I need in an agent? If you want to install then install Java So here is my best command here You'll go down a little bit to Junkin's installation. So with these two commands your Java will be installed If it happens then I will go and find an agent. I will install it ok Simple, now how will this agent connect brother? Because neither agent knows each other's name Do you know anything about Plus Agent? How to connect even if there is security If you do, I will give you a method for that. Let me tell you because we connect through SSA. What will SSA do, brother, you are a connect from computer to another computer You can connect using SSHS simply. You can do it, how will you do it using Public and Private key pair so that it remains private key He will be near the computer to which he is connected. to be done from some other server and which is to be done from some other server. The server you want to connect to He will have the public's first What we have to do is to tell our Master Have to connect to agent ok then master But what will I do? cd isse dar sd ssa to dot ssa name There is a folder where all your SSA keys are kept right there I key I will generate a public private key pair How will I generate SSA's population? I will generate the SSA key from the Jan and enter it. He is saying that brother please tell me the name of the file. This is the default name that I will keep. I give pass face no one and same If the password is correct then your key has been created. If the ID is ED 25519 then this is a private key and id 2 25519 pub this is public key so What I did was public and private. I have made it, now I should keep it private. I want to keep more public on the master server. Private Master Server on your agent It is already there which is public, so that cat ID and pub, where do I have to put this? If I want to put it on the agent then I will put it on the agent I will go where he is asking me to go. To install or not to install Yes brother, it's fine and I will go to the agent I'll add the public key. Okay, let's do this. It'll keep happening let me tell you in junkin What to do in case of new node node Give it a name Agent Vinod so Agent Vinod name I'm making a node of this permanent Being an agent is fine, someone can call it an internship or Permanent not during probation period Directly create two agents now Description This is an agent Ubuntu machine Agent became number of executor meaning How many jobs will run in it at a time? I am one job one executor at a time I would like to run the remote root directory meaning What is the name of the directory of the server? If so, I will write sl home sl ubuntu All my work is in the one-to folder. There will be a label, this is very important brother, label Whatever happens, all the work is done through this. The agent Annie that was written in the pipeline So we will put a label in front of the agent. We will label it Vinod, okay Vinod. Now tell me whatever you think is funny in the comments. Shout out to them for free like this now use use This node as much as possible Make the node use the latch method by the latch agent Connecting it to the controller doesn't help. It has to be done through SSA, okay through SSA. Through host means the IP of your agent What is the address so go to your instances now But Go here go to instances and whatever your If he is an agent, find out his IP address. How to find it, here is the IP address, you got it. Copy this and go here and host it. I go and throw it away, the credential is done. Credentials What are the credentials of the agent who It is done to connect, isn't it? If you want it, I need it first. So I will come to my master and this If it is private then whatever is my CAT ID This is private property, I have to give it to you. Why the Jenkins master because this Master of Jenki with this host If you want to connect, I will go to Add. Click on Jenkins Now I don't have a username with password. What is SSA Username with Private Key If so, I enter the SSA username in the drop down. I will select with private ID I will put Ubuntu Key I'll put that in the description as well. I put this in Natu's name, what is the username? So my second instance of Ubuntu What is the username and private key? Enter Add it directly, then add it and Go over here and knock him down, this is not What is private, I told you like It was told in the explanation that Junkin's The master needs to connect to the rest of the servers. So Junkin will come to the private key and the rest The public will come to that and then I will do this. I copied the private one and my Because I went and threw it, money is a phrase Not only this, I have added it and it is done now. that I will use as a credential Nonce in the host's verification strategy I will do the verification verification strategy There is a lot of strategy involved in this. Host Manually Trusted Non Verifying This It is best to do it, it is done. But but I added a private key to Jenkins. I have given it but did I make the public pay the agent? Have you added me or not? If you have added me then connect. What should not happen? Let's connect. try it Okay, that's it, save it, saved it. So this Agent Vinod NN is coming I mean If nothing has happened yet, then Agent Vint P Click two clicked The Agent is offline Because Junkin failed to latch the process onto it Because the poor guy failed, why look at the log Take a look at the logs and you will understand. So it is saying that SSA authentication failed. Done means Jenkins has what private I used it to do that SMS. But the agent had the public's Otherwise let's go cat id dot pub it Who will they give this which belongs to the public? I would give it to the agent, so I went to the agent and CD went into the SSA folder which would be LS Kiya will be inside the SSA folder Authorized Keys is in VIM Authorized Keys I'll go and here I'll put my key I will do it, I will press it, ok no, what have you got? I pressed it and came to insert mode and here At the end, you will add this key, brother. How much time is it taking? Is it a shortcut? Maybe I just shifted. I tried it, it was not working but it doesn't matter Never mind, take a look at this one too How do I think shifts work? yes but it Fine, I'll edit it, just kidding. This video will not be edited why Because the error I am getting is You should also come, so no editing. This video might be of 6 hours. I don't know if it will be done in an hour, okay and What will I do in this, add my key I will give you authorization, once the authorization comes, then this I will take a copy of it from here. what did you do oh friend did you close it oh god will be That's why you got me close. YouTube2 exists because such incidents happen. It goes that the edit is in progress and you close it. Given window then instance went to master node Went there and connected it, it worked It happens quickly, no problem connect it to Liya OK CD D SSA Cut Id pub and copied this And where did I go and hit my agent? Given that the public has access to the agent Went and what I did Agent naming it master of it and here was its color Blue Now re-establish this connection. Go to Agent Vinod and Latch back to Agent Click on Latch Agent Click on Watch Now Checking Java Version This Is It Agent Agent Successfully Connected End If the agent is connected online then Basically you understand that built in how to create agent other than node ok If you understand the agent, tick next to the agent. put it on Where did the friend go, Jenkins Agent, you understand? I have come how to make it by doing SSA, now this The decelerator pipeline is to be operated by this agent. If I want to run it, I'll go to my dashboard. Pay and demo CICD will go to Confil Pay I'll go now to this agent here. I have to label it, okay, what kind of label? What Vinod is labeled Agent Vinod, now this label This is the syntax of this pipeline. I again added everything to my repository If it is inserted then you can go to the junk file Yes, and this is such a label, you can see it completely. I've put everything together for you Okay, this is done, so Agent Label Vinod What is Vinod Vinod is the label of that agent Done Stages Hello Create M KDR Deps is basically your agent. There are no folders there yet. remoting.jar folder, there is a A folder will be created and a folder named deps will be created I need to know if my automation is correct. If it is running from then I will click on build And here it should be built. Successful and if I do it here, can If the UC workspace is created, the CD Workspace Demo CI CD Becomes Demo CI became CD and inside became devops so Deploy a job from the master to another server You have also learned how to run, come on. That's great, now I'll give you this Declarative Pipeline Demo How do you create a decelerator pipeline? You can create a new pipeline. New Items named after Jango Ci I will do CD Jango in CICD I click on the pipeline and click OK. So there is one Decelerator A Jango P Okay for Jango P I will make CICD whatever this project will be. If that is a Git Up project, then the Git Up The URL of the project is this URL. Jango Notes P To Copy This URL All links are available in your description. You will go, you don't need to worry. So I can use the Django CICD project URL I put this project URL on it, if your This private repository should be accessed in advance. Or go to credentials and select credentials You can also add a scene if not I will put it in the display name Jungo Notes P So this is just for display, okay now. Speed ​​bead is not a problem brother. Build Trigger Poll SCM Git Hub Hook I want a trigger for SCM polling. that when commit is done on git hupp then this pipeline I want it to be automatically built. So I'll select this and go to Git. Hub Hook Trigger for HCM Polling so I I will just do it, okay, advance project. Let's see the option brother, display name hum Have you done this before? Let's run the pipeline script Right now in the pipeline you will get it completely well Let me teach you how to build a simple pipeline. How will you make it, then first you will write pipeline okay pipeline wrote now this The pipeline must run on an agent. Write down what the label will be, so what will the label be? Vinod is our Agent Vinod, We'll move on to Agent, then Stages. There will be stages, you will have many stages inside the stages. All stages will come stage for example code This is the code stage. Then you will have a stage Is the build okay? It has reached some stage. Build then your stage will come After doing tests and tests, the stage will come What Deployed Build Test Deployed will also end now for every stage What are the steps inside? Steps, so each stage in these steps puts it in Let's make it a little full screen. If I put the steps, what will it look like basically? Vinod Agent who is my pipeline Code build test Deploy two for amp echo Dis or Echo if you want to do it directly echo can you this is cloning the code this Cloning the code then following its steps what will happen to This is Building the Code is why I'm doing it. I am doing this so that you can have a After we get the place holder, we Code bill test in actual also Diploidy Palang The Code Diple The code is finished now it's mine The pipeline has been built. The simple pipeline has been built. Yes, I will save this Saved this is a cicid for janggo p Okay, now build it, build it. Diya ok no builds why yes done Brother, I want such that there is not one here It feels cool to see such a pipeline. If he sees it, what happens to him? If there are plugins then you can manage them. Go and go to plugins here. Go to plugins and you can find cool plugins If you can, go to available plugins. And you need a pipeline, right? Named Pipeline View, yes, so here it is. A plugin called Pipeline Stage View If it remains, install it, it's okay. Pipeline stage view for you It is installing very nicely, it looks very beautiful Now restart junk when the Installation is complete now that you can restart ok your browser will Reload automatic when junkin is ready to her Once you install a plugin Junkin' once it starts again so when Till this restart is happening, we will also do a little gets refreshed Okay, I'm done junking, restart now. You go to the dashboard and open your demo CICD was that click beyond and made two Now watch your code build tests Now I understand it is visible in deployed view I learned how to install plugins and How to show it in pipeline view So your code became Build Test Deployed Now we have to put the actual masala in it. How will you put me in the confinement now? Enter the code in the stage with the code from Let's So what I'll do is this code of mine. This is the stage of this code, what should I do at this stage? I want my code cloned from Git Hub I will give you the complete project. Let me explain my project What is Git? My code is stored on Http. Ok, here is my code on git. I will build this code using Docker. ok i will build it through docker then i I would also like to add that Docker Hub is where our The images repository is Docker Hub ok This code should also be pushed to Docker Hub. I would like to and then I would like to on your instance at If you want to git clone it from here git clone then docker build from here Docker push and deploy go here and I want all these things from Jenkins. All right, all this stuff junkin' through If I want to, let's get to work. First I have to clone git, so I What you need is this URL. I need this URL and its branch name. okay now I'll go here echo In This Is Cloning the Code I will write Get OK URL Now I will give the URL here, this My URL is done what is my URL Where I want to git clone now After this what branch do I need? Which directory of this Git Hub repository do I need? If I want a branch, I want the main branch. Okay, so the Gut URL is this URL and its Branch man, first of all, I just ran this much Check if my code is being cloned Okay this is coding cloning the code one What do I care if the barcode gets cloned? to do To clone the code successfully, write it like this ok code Cloning I just have to make it this successful. I'll save this, okay, I've saved it. Now I click on Build Now. Click on OK Build See what the code is doing by going to the logs Let's see, look, are you looking at the logs? See Vinod, you are showing us all these things. is cloning the code and cloning your code too If it's done then I'll go to my agent. P So this is my agent and agent P is going to Later I went to my Jango CICD folder. I go to Jungo CICD and do LS So look at my Docker File API Manage Pava All the code that was here was in the API Docker file. The code has been cloned, how did you do it? Go to Build and go to Console Output You can see it by going to the console output. Look at what happened, look at the whole thing. speaking this is cloning the code and See Cloning the Git Repository Repository Ho Gaya And Its The commit message also came after code cloning If you were successful, your first stage was the code. The clone thing is over, this is it. Building the Code Testing the Code Deployed If the code is successful then this is the remaining stages. understanding how you can help someone You can also pick up the code from anywhere via Git Hub. Yes, okay, I have picked it up now, next build now. I will need Docker for this so I What will I do if I install Docker? Here I came to my agent and the agent I did sudo at get install dcker Come on, here I am installing Docker. So that I can use Docker which is my image If I can build it then I will use Docker I am installing it here, it is very important Okay, because if there's no Docker, How do you build? Installing Docker The command was very simple, S AT Gaol docker.io done, try docker ps Permission denied means your user What do I do if I don't have permission to sudo User mode han a capital g means user Modify it and add it to the group. The name of the group is Docker Who to add I have to add my current user and If you refresh the group then New GRP Docker, reset the Docker group Do two refreshes, do two basic ones if I Now I will do docker ps means list the running Containers so I did not get an error so that's it. showing okay now here I am on my What I have is my docker file So what makes a Docker file a Docker image If it is built then I am here this is building the After the code I will put a shell command which will say I will speak docker build hine t nati meaning tag de I am being him Notes p latest and where is this location docker file that is in this place so docker build nutty notes P latest so this is the name of the image this image is the tag and what is this dot that That file is kept at the location, so simple this Why am I building this? I am building it because Because at the time of build, what The application will be built and you can by testing Let's see the deployed kernel build stage. Do it after driving it or it doesn't work? Now it's saved, click on Save and Build. I clicked on the build button and the code is Build failed, let's check by logging in. What is the problem and what is he saying? Permission Denied to connect to Docker De man socket at this permission denied to friend I have given permission, still why? Denied is coming so let's see what our Which user is the pass user then need to show it to the user Ninja technique is a very simple technique. So s h hum i so I see that Which user does not have permission? Save it and try building it and it will work The fourth one in build history Check its console output to see who I am. I am Ubuntu so I have Ubuntu So added It was okay so what are you saying permission Denied or connecting to Docker socket Oh Nattu, it is not working here, whom am I talking to? I'm checking on the agent. Yes, we should go, okay, so if If this doesn't work, there may be another way. That may be restarting your Jenkins or restart the system We should go, okay, no problem. Here's to Jenkins and the system. Try restarting and then sudo reboot You can restart the system by Let the system reboot normally. This problem does not occur but if it does occur then If there is a solution to that, let's find a solution. Yes, okay, reboot normally for one or two minutes. If he takes it, he still understands what is happening. So I'm going to do a Docker build and it says Who is denied permission to Ubuntu? Permission is being denied, it's okay. Let's try it, let's try it Are The server with this Jenkins is called a Jenkins worker. We connect to the node will connect the agent It's the same, maybe it's okay Now what am I supposed to do here? Docker PS, it's working fine, friend. run it again If you want to see, I will come here once. I also hit restart sudo system ctl Restart chains just to make sure If there is no problem then why Hit restart once too, ok Where is the master, so I said to the master I've hit restart on Jenk, okay? I mean what it will be like is logging back in. It may be necessary, okay, no, let's do it, okay. Django CICD has failed on your end Let's try building it now because right now Once the permission is granted, click on Build. Tax Gave ok can you see this now it is very It is more likely that you have given permission but If that permission is not being reflected then a Restarting the bar is a good option. Code cloning who am I step one come see It is possible that your Docker is being pulled. It is running completely and is being verified. Everything is happening, okay, so this step Tha git code clone this one step is yours The Docker build step is complete. So I will tell you what its steps are. I am here so this is the step of the code Build step if you have a developer So you can also get it tested here. There is also a push step which I will discuss further. I'll tell you how to do it, okay? here Diploidy If the unlock was successful then we cried. Poor thing, it was a red pipeline. It's finally green and if I'm here I'll go to my agent and look for Docker By creating images, my image was also built. Hogi entered, see notes pap became 44 Seconds ago, now by running this application Let's see what I do next. I will go to Confill my pipeline I will keep doing this until I reach the final pipeline I don't make it, I go to the camp and end up here. I went and built it in testing if If there are any test cases here, please write them. By the way, there are no test cases here, developer It depends on the pay, okay Diploidy Palaikompu What happens to h docker run command remains ok then docker run Hyin D means run in detached mode Give port 8000 to the container background Map it to 8000 brother, why only 8000 wrote and why not wrote because here The Docker file of our project Your own application runs on Rs 8000 runs on 8000 and which uses the code for its The image name is that is Jango Notes Latest So here I click on Notes Latest I will give it to you, it's done, now by doing this I Application And click on Build Now. Clicked, look, it failed, it's not good. The old one is showing that build here It is happening and Deployed Key IP Address and its Port If I open number 8000 then my P will start. Need But Security Group Firewall 8000 The port is not open so I will go first. On the instance and on its security group Where will I go? I will go to security. I will go to the security group and here Which is bound by rules for incoming traffic I will add a rule named 8000 to it. Added a rule named 8000 and set it as Anyway I have given the IP because the application is any The rule should be saved and run from anywhere. And I went here and waited, but I tried to go but it didn't work. So kill it and open it again on another tab. Do it and you can see your Application Diploidy Palaikompu Tell me something better, I'll tell you I am the most First, you can read the Ducker Compose Dull here So you can also do this via Docker Compose To deploy Curr Compose, you simply need to enter your agent If you want to install it then type sudo at get Install Docker Compose v2 This is Docker Compose v2 which you can use You can install it and great, you can install Docker Create your application through Compose as well To deploy, you will have to go to the confill See why Docker Compost is needed Because you will build it again, don't you see? I will show you now that I have fought I got the CICD and rebuilt it. I did a build again, okay? See what problem will arise for you. Why is it deployed because the port number Things are already running at 8000, right? If your things fail, docker run We don't use this command in production. So go to config and where docker run command It is written, just do it instead. Docker compose up hine d what will happen if If the container is running, it will do nothing. If the container is not running, it will do so now. So save it and build it now. Do it now and see you er will not come okay look show two seconds The error will not come, you will be fine now. What is Docker Compose Docker Compose Basically there is a file where your Docker build and docker run commands are the same. They write it in the same place, it is okay Run the file on port number 8000. I have written it done, hey still running Because the port number is already 8000. If it is allocated then docker ps and the port No. 8000 P for already running containers kill it then Docker stop container and docker rm meaning What will happen if you remove the container? The already running container will be removed. will go and run the container with Docker Compose If I think so, these are all the errors that I am getting. If you are having problems then you can also get the solution. I'm telling you, okay, now what have I done? Just build it back here and that's it. It will start running, there will be no problem with me Guaranteed, okay, let's go here now. You go, it's great, your notes will be working. The application is running, it's done now. Bhaiya, what can we do next and what What else can you do better with it? It is good that you can do this What do they call this, this build? You can see this image of Notes Pop which has been made. You can push to Docker Hub, you can do this. How can you do that for him brother? You need to login to Docker and install Docker You need credentials to log in What do I do if this happens to Docker Hub? I'll create an account on Docker Hub. The account is already created, it must be yours. So if it's not good, then make it okay. And what am I going to do here? Sign in No Yes Sign in Train V Shubham P I will sign in okay and Sign in and my Doc Hub is open. Great, now I need to push this image to Docker Hub. If I want to do it, what do I have to do here? Will Deployed come in place of this test? would write I am pushing Is push to docker hub ok? Push to docker up this is pushing The Image Two Docker Hub will then push the image to Docker Hub How will most First and Docker login What will he do then, with his image? The name and tag of the image will be changed. So Docker Image tag which will be the old image like Notes p latest old wali image name wah Will replace your Docker Hub username But how is it when you are from your local If you push to Docker Hub, the image It contains your user account of Docker Hub. The name remains that username slash image The name has such a format, so that's why I re-tag the image. Notes: What will happen in place of this train? with Shubham Sl Notes App Latest Isse Kya Ho Your image will be on Docker Hub now. Accordingly, the name has been changed and this is what you should do. What will I do after SH Docker Push Train with Shubham Notes Pup Latest Co I will push it brother, why should I do this? Why am I doing this because What happens when your code comes into production? It is built and then stored in a repository. Push is pushed to an image repository It could be Docker, it could be Nexus. It could be a lot of things ok what also happens maybe what a Y Repository Query is one where You can put your images on it, so many ECS ECR Elastic Containers across the board If the registry is also of AWS then You can also push there Docker Hub is the Best thing that works easily or something Noticed Docker login to log in I need a username and password, how do I get it? If I put my username here, train With Shubham, should I put it, okay, I am my user Name me hain u username train daal do aur password me jo test re 123 mera jo If I enter the password, everyone will know mine. I will see the password, right? That's why Credential binding is required What is credential binding? Do not hide your credentials If it is in the environment variable then it is credential binding so I can put the password here I will not put the credential binder So let's do credential binding I'll teach you how to do it Save it okay save it fails will be gone because you are not logged in go to dashboard okay dashboard I went to Manage Junkin now go to Manage Junkin I'm gone, dismiss him. ok now what you have to do is enter the credentials I have to go to OK Credentials and Add one global credential OK Where did the credentials on Manage Jn Case go? Go to Pay and add a global credential Now here I enter username with password. I will add which one is my Docker Hub's so What is my username? Train to Docker Hub With Shubham, now what is the password, if I tell you If I tell you my password, my account will be There can be a compromise, so I am here to Once I create the token I can install it on my Docker Hub. Gaya account on this train vs Shubham I went to settings and here I created a token. I will create a personal access token and this I access my account through the token. So I will token look here on token Went and generated new token and used two tokens. Put description junkin one shot video I am creating a token for this. I don't need read, write, delete access You need full access, read and write if you want. You can also give it because we are just bridges. and pushing images Read and write is fine, generate it so Got your token Here is the Docker PAT Gone, copy it, I have copied it, now you Go and paste that token into the password Once done, enter your username and enter your token. Put fear in the given ID Hub Cred Docker Hub Cred means Docker Hub Enter the same in the credential description. Enter two Docker Hub credentials and click Create Do it, then docker hub is a software called cred Id is inside which this is my username And this is my password so username and Password me Docker Hub cred name ID Now I can get this thing from my If I use it in the pipeline then I will Jango CICD on the pipeline I will go into the camp and be very careful watch very carefully who push To Docker Hub, I need my username in it. And if you want a very secure password then I'm going to do credential binding. How am I here with credentials I will use it with credentials If you need syntax, I have one. Repository created in Node to do CI CD here I have a complete CD of it I have given it completely If so with credentials, this is an inbuilt There is a function inside which you can enter the username and You can remove the password from the environment You just have to provide the credential ID and from that The password variable will come and that password Your password will appear in the variable user The name variable will appear, in which your user will be present. The name will come, it is simple, so I will show it to you. I'll show you how to operate it, okay, here it is. Watch Your Syntax to Remember Syntax Don't Need It But Good To Have It With credential written with credential written now Inside this there will be an array pass so square bracket square bracket passed her Inside there will be another function username password Which is the username from the credential ID If you remove the password, I will be here. I will enter the username and password which is a It's a function, it's a function, what will it do? Credentials ID I Capital D Small Credential ID Now it will remove the username and password from what is my credential id my The credential ID is Docker Hub Cred so this I extracted my username and password from the ID. Was Now what should I say to him, brother? My password variable and username variable You can put it in your own way. What should I name the password variable? Docker Hub pass so this is my password variable and I have a username in the same way What happens to the variable is the username variable in which I will put Docker Hub User put this now this function is something like this It looks like this, okay, it looks something like this. It's been, let's be okay with credentials username password Remove credential ID from Docker Hub Password from the ID named Cred and remove the variable and remove the password Docker Hub Pass Username Retrieve Docker In the hub user and its scope will be Whatever scope remains, it will just be cancelled. No, and within its scope. Your password and username will remain accessible So I have also defined its scope. If you want, you can do this on separate lines also. You can do it so that it is readable properly. Yes, you can do this on separate lines as well. So that it is easy for you to read You're done with ok it's done echo with Credentials If yes then with credential username credential ID turned password variable This is done, login now instead of username I will Can I directly enter my Environment variable this dollar Navi jo dollar Isn't it Navi? it dollar bud bracket in navi dot now which is mine The username is his environment variable now. I want to enter the password here. Dollar navi dot docker hp pass docker hp password Entered the password, it's done, now this is it The environment is the docker up user that I want So I can use it here as well so that I I should not even expose my username now that There is an environment variable in it, this variable The values ​​will come and the subset will be absolutely fine. So far everything seems fine Let me run this and see if Docker Logging in with my credentials from the user Can he tag the image using name and password? He is also pushing it, you should save it and see. Yes, let's click on Build Now. If it doesn't work then debug it and fix it. Okay, look, push to Docker fails now. It's okay, let's see why it failed. What happened, what is the problem with it? Go to the console output and see what fails. Done, it's done, okay, build, build is done. Pushing the Code what is he saying with Creedence, hey friend, don't make any spelling mistakes. It's okay, I made a spelling mistake. Then I put this to copy it. If we copy this then the spelling Don't mistake it's okay with credentials I may have misspelled it, so with Creedence done T I A ​​L's hota Save it and click on Build Now. Look, okay It's okay if it fails again. We will see again why brother failed. and I will do it in the pipeline console No, what is he saying, that train V Shubham slush push is not a docker command o I did some So again syntax mistake what did you do What come, look, something has gone wrong, right? docker push this is the command and navi docker up user Notes P This is my image name Tag Name S It was a bit messy, no problem now. It will come, okay now click on build now. Give me your 12th build and whatever it is, go ahead. Now look at its console output. Logs in or not Clone Successful Building the Code Gets Built Pushing To Image Image to Docker Hub Login Successful Very good ok docker image tag tag also done Docker push o push also got pushed, what's the matter hai push success oh great success so basically Your build is done, Docker push is also done and I will go to my Docker Hub to deploy it. And what if I get my repositories? I can see my notes page. Yes, notes page. Pushed less than a minute ago means Jenki ne Automating your code in such a way that Clone and build and push to Docker Hub It is happening and What do you want to deploy, brother, this train? V Shubham is on notes, he has to run now Do you know what's going on, I'll show you. Now your code is this war, it is back Build and run, so here If the image comes, I will edit it. I will give it to you, okay, should I do something so that I can get rid of it? and this build will run automatically Have I added this to the agenda? Agenda, friend, you should understand it like this that whatever I told you I was reading more than that. I am fine Declarators give web Hook and bhuk knot and bhuk so knot and bhuk what If it happens, I would tell you, this is your git. hup okay this is your git hup and this is Yours Jenkins this is your Git Hub this is your Jenkins now wants you to commit to Git Hub. If so, Jenkins should know and Jenkins Complete automation by cloning code to Git Hub Keep it running, meaning you also need to click No, how will you do that, you will do it on the web Hook First open the web hook. If you give then go to security groups My instances are like masters Why do I open the security? Because I need Git Hub to be connected as well. do it to him I go to the security group and My port number is 8080 where Jenkins is where is the port number 808 running But junk is going on, I would have done it anyway. so that git hop can also connect to it I'll save the rules now, ideally. What should happen if anything is pushed on the girth A web hook should be triggered which Junkin Pay Git Hub Send some requests Git Now what is the url of the hub dot whatever its The IP address is 8080 Git Hub Jenkins has a hit on this URL If he kills then Jenki will know something good. has happened and Jenkins then triggers further bill He will do it, okay, now whoever hits it will be us. If people confiscate Okay, here is our Jenkins URL. 8080 is your IP address and your URL. Now I'm going to go to my Git Hub. After this is my repository of Jungo Nuts You fork it and the same thing with your To sideload, go to Settings now. After going to settings, you will see zoom here and there. I will demonstrate this on the settings. Settings means you don't need to access the settings of Git Hub. Go to your repository settings If you want to go then go to settings and here web Click on two webcams and click on add a Click on the web and add the book now. He is asking for it, okay, take my thumb. This is getting printed Now what Karo Application Payload URL Then Payload In the URL you put Your Jenkins URL is just ahead of it. Write a Git Hub web hook like this, what will happen with it Jenkins will know this, which is at this location But my Jenkins is running right look at this I'm junking at this address Jenkins will understand that from Git Hub Web Hook has come, what is Web Hook online A Request Response for Communication They send request response and they eat it. Jenkins should understand that He is hungry, that's why it is not SSL I want it brother, yes I understand, okay No SSL required, no secret There is nothing like this event you would like to Trigger This Web Book Send Me Everything Joe This active ad webcam should be used for this. What I did was I went to the website and added Jenkins in the payload URL done in Webc Enter the URL of the Git Hub web hook as Endpoint given content type A it kept disabled SSL why Because we have the certificate for now. No, and by doing this on Send Me Everything Booked and as soon as you book the DWAY yes, where do you say Was this what happened? 109 It was not the one from 19, where did the one from 19 go? So refresh it and see until It won't work until the tick comes here. Last delivery was unsuccessful, invalid ATTP response 302 OK Edit this try it git up try webc and json ok and update try web browsing Take Update Way Go to Bhuk Recent Deliveries and check it out. It did not happen a Why is the last delivery not happening? Not Successful 302 so git now And Bhok, try something like this and see why not go It's been okay, just gut hit by the same issue It appears that you are using the URL here when Key Aa Slash Missing No problem, there are big tutorials. If such small things keep happening, Put a slash in front of V Bhuk and see Did Jason Wesson use that application? Is this what that yes application Jason yes this is right and update it by clicking on the link given below and recent Still not in deliveries Why is its HTTP not working? Run the webcam Look, there is no connection. I am not using secure ATTP S I Git Hub Web ok no problem This won't work, what do you do for now? We will send a post request to the URL below you can also switch Let's try updating the data using this web app. Hook Recent Deliveries are failing, what does 302 mean? Would Hai Non Sniff Friday 848 Oh deliver Oh I re-delivered this time so it's on What has happened Well, this tick has come, which means everything is fine. I did not edit the video anywhere. Yes, keep this in mind that in case your delivery fails If this is happening then you have to use these things Your URL Your Content Type x w form URL Encoded Disable Verification Send Me Everything Active Bus and It Got Worked Last delivery was successful, come on brother, this So it's going on, I mean, I can do anything on my git. then my Jenkins will know Let's tell Jenki right now that brother Git If something comes from the hub, you should take a look. What to do is go to Build Triggers and Git Hub Hook Trigger for SCM Polling I have to keep it active, that's all I have to do. Now look at the funny thing I'm going to start with CICD. I will go to the last build now when is 843 I mean, it happened a while ago, okay? Now I will change to git hub ok jango I am going to share the Docker Git Hub of Notes. It is composed, I don't want to build it. I want it to go from one image to the next. what is the name of the train vi Shubham Notes Pap to ye jo train vi Shubham notes this is from this My image is latest, that is also fine. Train with Shubham Notes Pap Latest Commit Change I want if this is committed So my pipeline should run automatically. I'll take it out here And if this is committed then this pipeline It should run automatically here. Let's see if the commit works or not. She left so can you see that I committed there Did And bill number 13 is automatically triggered brother Sir, what a wonderful thing, Jenkins, what a wonderful thing It means it has been completely automated, this is called Continuous Deployed that I am not checking manually I pushed the code and built that code. doing, testing, pushing Docker on Hup It's the right thing, if you think it's right then comment. Write amazing so that When I tell you this, your What you wrote completely what stages code build how much It looks dirty now, I have filled it up so much. I'll have to write another pipeline tomorrow. I'll write all this hard work back to you tomorrow. something to What is a deployed library Jenkins in that you have a repository okay There is a repository inside which You can reuse Groovys code in your Pipeline is so cool, isn't it? You can reuse the code in Let me show you the shade library, then understand it like this Take that this is your pipeline, this is what you have with credentials and so on are written in full No, if you want to reuse it then Create a shared library, I'll show you. How to make it, go to your GitHup OK, go to git and create a new repository. Create OK New Repository Create it and write its name. Junkin shared Libraries like shared libraries What is the meaning of libraries, such small Code Spats that you can reuse okay junkin Shared library has now been made public Keep the report, everyone can use it, you can also use it. Do it and just create it, now whatever you want Add a file to this repository. Okay, now the shared libraries It has a folder named What is vers, vers means variable So create a folder called variables. How to create a folder, you go to write a file Name your file just a folder named Wares Add a slash and the folder will be created. I want my Joe Hello friends I print a shared card with that name. Once the library is ready, I'll put it in. Name Hello That Gavi Hellod Gavi what will I do inside this Let me show you what I'm doing inside this function. I will create a def function which I will call I will call and add a parameter open parameter close now whatever I write there I will write it here like I echo Hello friends, I write that here. I will give it, I wrote it down and it was done, a shed was built. A library was created called Hello Friends. Commit it okay so hello dot gavi dot Gavi is very important now it is from Git Hub How will I reach my junkin so what I will do it in my Jenki I'll go to the dashboard, okay. Now click on Manage Commodities in the dashboard. I'll give it to you, okay, click on Manage Zinc. I will now go into the system because I To use system wide library Now what to scroll in the system to reuse Keep scrolling and keep scrolling Keep doing more school when you get tired. Type in search while scrolling shared or Libraries OK So Global Trusted Pipeline libraries are the name of those Shared Library: We kept going like this Let's say his real name is Global. Trusted Pipeline Libraries Sharable Libraries available to any pipeline running On the system this library will be Trusted means without any restrictions. You will do it, just add the name of the library now. What is it, can you give it a name? Like I named it shared shared I have placed the default version of the library here. But your branch name will appear So its branch name is main so I am here But I will write Now where can you find this library of retrieve method If you are bringing it from then select Modern SCM I am fetching the project from Git Hub. Get the repository here go here this Those who go into the code and clone the code, right? HTTPS or copy this and go and post it Now if you have a private repository then Here you add credentials like no Enter your Git Hub username and password. Add the credentials of the public repository So let the behavior remain as it is. Library path is optional, leave that as well. And if you save it, then basically whatever you shared This is the library repository, Junkin. Shared Library Add it to your Jenki I have done it but I have not added it to your pipeline. Kiya to Jango CICD me jao gaye cuffing Now what you have to do is go into the pipeline. I went in and then I got up and started on it The library should be written like this and in brackets put whatever your pip library name is If it was there then I had put shared, so put shared Now, as you come forward, what will he say? Tell me he will say there is an error, it is okay, he will say The error is "Look, unexpected token pipeline" Bh err how I put just a little bit in it is that it is put a space after the shade and put a dash put a lion space put a dash And what will happen with this, that error is a little bit It will go away after some time, this is the syntax brother. What can be done about it? Shared Library So the stage code is what I'll do is stage I'll do a hello before the code. Let's put a stage in which I say hello friends I will get it printed but actually printed I will not call the shared library I will do it, see how I will do it step by step or okay Steps script okay script and script I'll call hello inside hello what is it brother hello hello about your gavi file If there is a name then whatever is written in front of the dot Gavi It happened, right, hello, that's it, okay, so step Script Hello, just confirm me once Let me do it, if I don't write the steps then Joe's wonder It is a lace project, yes, it has steps. right step script right let's go Stages Hello to Hello is the stage in which The script comes from a shared library. If it is there then say hello and save it now. Look at the funny thing I built this If I do this, a new stage will be created which The name will be hello, now this is the log Hello friends, the thing that is printed Look, that will be printed on the locks. Go to Gaya Locks Par Gaya Hello Friends Printed But I said hello somewhere in the whole pipeline Friends, I did not write how this got printed. So it got printed because hello friends You have written here in hello.gr Let me change this to hello. Friends, if you like the video then brother Why subscribe because it delivers 100% Commit yourself to end it like You have committed here and you have Pipeline built here which hello who was coming earlier by writing hello friends What will happen after that change, hello friends If you like the video then subscribe bro How accurate is that you mean the shared library? Changing is disturbing your pipeline. You are not even doing it, you enjoyed it, what should you do now? You can go to the camp and get as much as you want. Things you wrote here like this Script hello this is cloning the code And clone successful, this is what it is. and put it in the shared library By the way, I created another shared library. What name will you put in it and file it? Name will be git or clone. Gavi okay clone D Gavi now here I am What will I do now here? I will pass the parameter as a string what URL so I will pass the URL and what if I pass the string branch I will pass in the branch and URL and this What I copied to this is cloning the code This is cloning, all this is written here, right? go here and paste it Give Now I want that if any URL is passed Yes, he should come here so that every time in the wars The person who passes the URL will not be able to read the notes. If it comes here, I'll URL it. And I will put a branch in the branch that is there. Do you know what the benefits of this are? The advantage is that tomorrow when you clone the code Whatever URL you enter in it, He will clone it, whichever branch you put, it will be there. will clone it now here I have my One of the repositories And shared is shared Junkin shed lib yes this is it now you go in it If you look, I have typed code everywhere. If the url is in the git url The URL is entered in the branch, this is you As it is, you can use this also and whatever I have written that, you can do that too, just do it. Here you just need to keep the syntax in mind. This is because of double codes Inside, if you pass the URL here So this will be the URL and inside the double quotes You have to pass this branch within the dollar So this is cloning the code clone code Cloning is successful, you can keep it if you want. Or remove it, no problem. Okay, I understand how to create a shade library. Have to make a commit Two clones were dug and what will you do there? Eliminate all this in your pipeline right now. Went What you have to do is write it here. Script inside script and script Remove this git URL from your git. What is the code of your shared library? Was In clone you passed the url first And then you passed the branch and enjoyed it. what is that script clone clone Where is the script kept here clone d what is happening inside him in Gavi a You pass the URL and you pass the branch So I passed a URL to the clone And passed a branch similarly i docker Can also create your own group for builds So here's a group of Docker builds as well. If it is made then it If I remained, I went to Vers and created an add file. New file docker build dot Gavi ok and went here and slammed it so Project Name If you need to know the project name If you want to put a name, you can do so. no need ok and users Name Image Tag Yes OK Project Name means whatever is the name of your image and The image tag is yes done commit Give me what I am doing, this is my gr I'm reusing the Docker build. All this remove docker build what is this build of mine The script is Script ok in which I have no idea Tell me what to do, I have to pass my Image Name What was the name of the image Notes P This is my image name for Notes P What else had to be passed, image tag passed Had to do the right image tag Latest Latest and User Name Mera Train with Shubham Train V Shubham is done, this is also done Similarly, push to Docker Hub is also completed. Push to Docker Hub if you can automate it Also see Jenkins Grue of Docker Push here it is So copy this, how is this all this I will give you the links and it will be for you. Add to shared library Two Docker pushes so that was messy looking code You are cleaning what is in it Project name means the name of your image Image tag and Docker Hub username Docker Viewing Credential ID Hub Cred This must be the same as your ID I've passed it into the password variable I think I had something like this near Docker Hub Docker Hub user, this thing, once Make sure you have installed Docker. hub cred so docker hub cred is correct docker hub pass docker hub pass is true docker hub user docker Hub user is correctly logged in Docker now user and docker now closes ok did docker push Done with the image tag to the user is correct and what is its name docker push na very nice If you commit this, your y which is so big sa was written this cut hoke kitna ho Just this much script will go What docker push needs to docker Push your project name The name of the project is Notes pap, what else do you want brother, tell me quickly. I need an image tag Tell me what else you need about the latest Docker Up Username is the username of docker up train With Shubham and similarly with Docker Compose Up also for You can also write a nice group syntax. You can Docker Compose's simple Docker Even if you keep it composed down like this ok it's done, saved it, let's go Let's build that with Groovys. with shared libraries Decelerator two let's C ok it burst brother It doesn't matter if something explodes, you should No, if you are going to tell him again then he will be silenced. You can also do that but if you realise that brother is T then If you accidentally tear something like this Can you fix it? Okay, where did it burst? oh oh did not close the double quote okay so Basically yours Grooviest not closed Small mistakes again, no problem now. commit this Do ok slowly how do you know basic Where we are developing MK DI R Now how to use shared libraries? You will see it in the next video. God knows if you'll make a Prometheus dashboard If you are going to do something then like the video Make sure to subscribe to the channel as well I have to get it to 100, okay, let's go. It's completely done, okay, done, very Great, now I want this to be my This is the pipeline, this pipeline is in Git Hub itself If kept, I will copy the pipeline Copied it and go to my project. where did my Project My Notes Read this project and here is the Jenkins file It's already fine, I'll update it. Look at what has been shared. If the library is not there, please update it. And look here after Shared Library How neat the shared library looks Label Agent Vinod Our Hello Ye Clone did docker build did push did up Gone committed now you have a cool thing I will show you because you have to view the file again and again. No need to go to the UI of Jenki and make changes No, you can also change it on GitHub. And here is the pipeline script Do it by doing pipeline script from SCM Pressed two enter now what is SCM is git git repository url so this is the repository Please give me its URL, I have copied it and given it to you. Done Credential Public URL Public repository is not a problem Yes, give me the branch, see if the branch is here Do it here, you know what will happen with this. This will cause the script to be named after the file. what is the name of the script here Just save the file and see it I know what will happen, I will show you this. You may never need to go to the Confirm button. You won't need your pipeline. It will automatically run from Git Hub. Look, I went to this git hub and found this Let me make it short to show you a demo. feels good no how do I show this okay this This happened now what should I do in the Jenkins file Should I tell you what changes should I make? Yes, a small change. From the lettuce I want to Docker Docker compose down before compose up So what happens is my latest code I get that first the container stops and then If it happens then I am like this then see what happens now This is what will happen now I changed the genki file I've done it, okay, I'll commit the change. Committed changes as soon as I commit My pipeline gets triggered there You should know, look, this has been triggered now. Which pipeline is triggered? pipeline, you know, it's this pipeline that We have seen it on Get Up, so I I'll add it here if you like it Dekho Ho Ga Decelerator Checkout in Stages SCM then hello then code then build then Push to Docker Hub again Deployed Action Level Declarator Check Out Docker Hub Push Deploy Library Sub you can do it now here you go your Application is still running where agent Vinod is running on and your Joe Jenkins It is running on one master server now. Bhaiya, I taught you something which is one of the Jenkins An intermediate should come at the basic level Shared libraries have also been increased at the level I told you, it's not much at the production level. There are all the users to manage. If it happens then how will I do it role based Let me show you a demo of this, okay? I will go to the dashboard. Now go to the dashboard. After that I will click on Manage Services now. I want to add users, how to add them If I do it, I'll go to users. Go to Users and create a new user. What is the name of this user, Shubham? If you don't give it to Shubham, you will keep something else, okay? Let's keep Shubham as the username, no problem. Shubham Password Shubham Confirm Password Shubham Full name Deps Wale Bhaiya OK email Address: Shubham Nath 5@gmail.com so this is my alternate email Create user done, now it's fun Show me the thing, so this is my Jenkins URL I opened it in an incognito tab. Done, I entered the username Shubham and the password I put Shubham now who is this Shubham, this new one He is a recruit, he is new to our team. I got him signed in, now brother, tomorrow's The boy who came gave him all the plumbing He has access to manage Jenki as well. I have access to everything, brother. This is a messed up thing, isn't it, role base? Authorization is required if Shubham has admin He can do all these things only if he has the role of If he has a read-only role, then only If he can read then he can access role base Let me teach you how to do it, user. If you want to learn management, you have to go In the dashboard, you have to go to Manage Genius. Now after going to Jenkins you have to go to If yes, you can see the roll base here. If it is not there then you go to plugins Go to Plugins and Available Plugins Roll Where did the role go based on, it had just arrived, yes Plugins with role-based authorization strategy Install it, what happens with this Your users are role based You get access, you created the role. The viewer will only be able to see it. You created the role of editor, so he can edit it. If you can, I will teach you that. This is a next level thing, okay please wait. while junkin i'm restarting okay brother do Lose weight, drink water and roam around at that time. Fira Come on, like and share something in the comments. Subscribe to Come on brother, it's a restart now for you. Manage back on junkin' okay Manage You've just got on the bus and you'll see something new. Where it was said, I can't see it Where is the system not there? Gaya Security At Gaya Security you A roll base will be visible, where did you see it? Yes. Here are the authorizations Yes, these users can do anything. Security was found in the manager's junk and he said is logged in user can do anything means this Shubham is a user, this is the brother from Deps and this What kind of admin is our Shubham, he can do this Hey brother, this brother from Deps is ours The user cannot do anything with it. role base strategy two okay role base Give the strategy and save it as you role base strategy will give you a The new tool can be found here under Manage and A new option will be available under Manage Assign Role. And assign the role, just click on it. clicked it Now role to add now add a new role here Two Viewer Viewer added now with admin Overall administrator access is Sara Jo The viewer will have access to what he Tell me brother, what will happen to the agent? Build the job not to create or delete it No to doing it, yes to reading the job and Discover karne ka ya mab wahi reed ho Got access to run but not to view Access yes read access it has only Matrix yes that's it that's it that's it and that to do Afterwards I just I'll assign this and I've saved it. I saved my role and now I have my viewer role. Now I will assign it to my user by going to assign role. If I assign it to Shubham boy right now I have got the admin role, what should I do with it? I will make him a viewer and admin. I will delete it, so what have I done? I first went into the management role and played that role. I put in what I should give. Then that role which is the viewer role, that role I told Shubham Shubham was a boy No no no no no Shubham not a boy Authentic Shubham boy needs an admin, friend. I authenticated users Who is a user? Let's try D user. Authenticated user means these people with DAS Brother, the one who authenticated him was called a viewer. Who is Shubham Launde, that admin, who is Shubham Launde? This one is admin, okay, I saved it. done saved done now if I refresh it If I hit you, I will authenticate you, Shubham And Shubham went and signed in, now watch the fun Shubham is missing the overall read Permission means my user role base access Authorization Lore Based Access Control So if I call this Shubham, this is my Shubham What else can anyone give to this viewer? Where did the dashboard go overall? Go and give him read. Give him overall read access. Give it and save it so that overall it Read-only access is available and Hit refresh, hit refresh, now that I am able to read it I am able to read it I understand that the deployed is not showing up. What a fun thing role base access is. How many people understood the control, if If it goes, tell me quickly User Management In junkin role based now jo next segment There we have a CICD Will project with three tier pup Three Tier Pap Kh Jahan Pe Kuber Nities Argo Sea Sadie Prometheus will see all these things Dave will create a pipeline of cops where Ovas TV Sonar Cube: Use these three things and you will also receive email notifications. Friends, this is the complete Jenki and One Shot. This is a tutorial, brother. Just a glimpse of what I do in my live classes I teach, I teach like this Have fun and take your technology with you If you learn then the live classes are not Shubham's continues to run now currently Enrollment is going on for batch 8 which has started. It's going to happen from the fifth of October, okay you You can join and if you don't want to join It won't work, there will be no scene if you join If you want to do this, you can click on Join Now. Yes, and you can enjoy it better now. In the next segment, we are CICD Project DevSeps and Email Notifications We are going to see this, so this is today's project. It is going to happen friends, wherever there is one Developer pushes code to Git Up on Jenkins But that code is a bridge of that code CICD This from Dev Sec Ops Practices where dependencies are checked The quality of the code is analyzed through gates. All these things happen and then that image is scanned. Scanning the code of that file system and then push to Docker Hub. Once the image is pushed to Docker Hub, then from there that itself will trigger a job that will cd The job will be continuous delivery and that thing when Your code will also change, change its image and upload it to Git Hub and from Git Ops Argo CD will pull that code and create an e on the KS cluster Once this Deploy monitoring and logging of that pup Things that will happen if your pup fails during this time You will receive an email if it passes. If it goes then how many people will get the email In these shorts, I understood that till now we People used all the tools they read about. This project has been created by How Many of you are excited for this project Super Amaze How many of you are really excited to Build Something Like This Where Everything Is is getting Automated Superb Amazing Amazing Amazing Very good, very good, now Let's see how excited I can make you. I'll give you some patience brother, like I say hype would have created This is your CI pipeline where you Whatever you do, you do it through parameters. Do you do it if you have to update something? Git will run things through parameters Code check out here on Dev Sec Ops If you are looking at these four things, Ho tivi ovas sonar cube here Security aspect has been added Environment variables will be setup in Docker The images will be built, pushed, and then There will be a CD pipeline build that will again Kuber will verify your Docker tax will update the manifest of NITIES and Also push your updated code to Git Hub After doing all this, it will email you. How many people will go to see how this page looks? How many of you want to see the p Wow, my heart is happy, okay that's great. So this is your page where all your posts are Whatever you create, it is blogging. Application where you can click here like this By doing Let's Test Test Devs Brother, can you pick any image like this? Bali is the image where I went on adventure I love your blog here, nice taste It will be created on August 31, you can get its back. You can also check the end where the back end is Accessibility and even more features of this application I have a CD where I can update it. If I do, then this application here EKS cluster gets updated automatically But whatever Kuber Niti on that EKS cluster Whatever resources there are, they Added all targets via Prometheus and those targets are displayed on the dashboard. It has been shown through where there What service is causing the problem? What is happening in which service every moment The thing is, let's give you the back end. If you want to see the deployed then back end key Deployed, you can see whatever you want to see. Which network is lagging the most? Everything in One Project Now How Many of You are excited for this project. Tell me quickly in chat because we are Gonna learn some new things like argo cd git ops can we do it Not side by side, you can't do it side by side By the way, I mean obviously if you are different from me If you go a little faster, you might even be able to do it. But I would highly recommend not touching your Laptop and not touch your keyboard you can use a pen Take the paper and do as I say. Just try to understand because I I am telling you this thing, you will You can do it well, I have posted it here on my One The repository is where everything is stored. You can do great things, you can do them comfortably Yes, but before that you will have to understand the right side. You will enjoy it a lot if you do it by the side. that wow they are doing this side by side Then you will get an error in between then you You will say, brother, please repeat, and then I will tell you If I ignore you then this will happen to you. No, so I'll tell you, I'll tell you I'll tell you exactly what to do, okay? I will tell you exactly what to do Many of you want to listen to that brother exactly Tell me what to do in this, look good. What to do in this, first of all First of all you have to tell yourself how many of you will be taking this challenge of Completing this project yes per git docker Jenkins OVAS Sonar Argo Redis ES Helm Grafana Terraform Everything Evolved Let me know in the chat let me know yer so that Il know that brother this is our batch seven and today A lot of crazy things are going to happen, okay, let's go. very very nice Fabulous Superb Now brother, how will we add this? Okay, how do we do this thing, I mean, side by side? Please tell me how to practice the side. So if you want, you can take screenshots. of this, these are all the things we have to do These are all the things we have to do if You want you can take a screenshot of This is OK. Okay, so are you guys ready, everyone? Have you taken a screenshot of today's project? What services are going to be provided and how? how things are going to go Are Once everyone is done, only then will I move ahead. I will get it because today's project has a lot of There are small things that if missed If it happens then it is missed, if it is gone then all this Things are ok done superb just take a Screenshot and Try It Understand ok you project You will implement it at some point of time. I guarantee you will do it. I want you to come today at 9:00 am. So how do such projects get made? You should know that you can only This project is not like any other in the world. Through Project DevOps Practices Deployed the idea of ​​today's session it's not Just someone gave me a mega project or No, no, I want you to understand. What is Deps in this Why Deps in this Okay, when you go into the depths, then things will become clearer ok Let us first understand what this application is. What is it I hope my screen is showing All these things are visible First of all let us understand what is an application? So this is a three tier application in which this The front end tier is in React ok I hope Do you all understand these people, this front? There is the end tier which is in React which is the back end That's written in Nut JS, okay, Nut. as it is written and which is its database That's MongoDB's database now. A lot of people will be making transactions in Input/output operations will continue to be performed, hence There is a caching mechanism, what is Caching is if you want to use a server for the same thing. If you are repeatedly querying then that It gets messed up because there is load in it. If it increases then for the same thing it You can store it in a cache which can be saved in Redis Also called cache, Redis is a key value. Payer Cache Storage Service allows you to Get the data document you want Based on key, retrieve key value So this is the complete application which looks something like this ok something like this this application is great you can do things on this right now this How did the application come, where did it come from, why did it come First of all, This is the first episode which will give you I want to understand exactly what this application does. Whenever you run any application of devops What Deploy does is only then you can find its errors. Issues can be further deep-dived into services Okay, so this is our first component. How many people understand the first component right now? If you want, I'll show you something Else this is its code ok this is the code of this where back and front And this is the complete code which is the back end Tell me in the chat what language it is written in In which language is black written? back end node okay means you have a lot here All JavaScript files can be found here If you go here But it was said that this is ok you will go here you I'll get a file with a lot of notes, okay? If you go to the root, you will find JS files. This has nothing to do with you at all The developer will do it, you have nothing to do with it. If you go to the front end, you React GS type thing will be available React GS what react GS if you see home The whole thing in Page TS x OK React Jas It is written ok so about this thing Understanding is very important and How Many of Your Databases in MongoDB You are clear with one just drop one in the Chat that it is an application that was developed by a developer The name of that developer is Krishna. Okay, he wrote this application. Mast Krishna is an open source application. Let me give you a shout out so this is him The application is ok, it is a good application ok everyone fine now Next, we will get a machine that will take us through all the Things will drive a cluster of Kuber Nits And your junkin master will make all this If we make things then for this we need a We need a master machine, okay, what do we need? If you want a master machine, this is the master machine. what will happen in this master machine i2 instance that will provide some security Some with pairs, some with groups With IM Rolls Confers that all or all of our output If all this can be deployed correctly then master How can we make a machine to make it There are many ways to directly here go to terraform go to e2f and a Make a great C to instance how many of You think they can make an EC to instance How many people are using Terraform? You will definitely create an E2 instance with the help Just let me know in the chat that you will make it Because I did this thing live. Now this is what was in the Terraform session Terraform instance will be created in it Because I have to drive, okay, because I have to drive now Bhaiya, two things can happen, either you Master, run the entire Jenkins on this. Run the entire master on this or just one Create a worker node and do things on the worker node Let's go, this is also ok, so both things Possible is ok best practice j worker Create a node but if you want it in a single machine only Everything has to be run because if we If you use it, it will be of no use. If there is an under-utilized machine, then everything will be in it. You can operate it, okay, but this machine Junkin will be inside it and Docker will be from here If your case is about to become a cluster then this The size of the machine and the type of instance can we keep this thing tad micro Because we have to build Zinc, build Docker There are a lot of things to be made, otherwise we This T dot I will have to keep it large brother, in t2d large It will cost a lot, that's absolutely right. There will be a lot of expenditure in KS cluster also. This is absolutely correct, so just understand. This Project and When Ever You Think You R You guys are ready for this Deployed Large is the instance size which You will need to pay for this project on a masternode. Meaning this will be installed on your master machine, okay? On this master machine, we're junking setup. and from there all these things will be created Okay, from there, all of this stuff. Banegi How Many of You Understood Point Number two, the second part of this project Where we need to configure a master machine I have to configure it, that means all the ports Whatever ports are required to be kept open I have to give permission whatever is required If we want to create this cluster from here then Awww a seal I need is understand It is coming that whatever I have learnt till now is from All that relates to us in this master machine I have to do it, ok now master confirm it once Then we have to configure Jenkins. Which is your Dev Sec Ops Jenkins needs to be confederate Jenkins needs to be confederate To do this we will have to use tv for image Scanning is the images we create or If our code is scanned then Tree will also be used for image scanning Then there is a dependency check, sometimes how many people know that in the middle there is a log named 4h There was a library, that library of Java Because of this, many systems have bugs. went and dealt with the same thing There are many such libraries in Owas. If there are problems in the ova Vulnerable Scan Dependency Check Here If he goes, he will also have to set himself up. It will have to be done, okay, then we will code. Quality check the quality of the code Is it good or bad or what it is? If we look through the sonar cube, then these three Here are the things you need to set on your master node: Have to do it up and then through Docker Things will be built, all the images will be pushed. If it is made then we will need Docker also, okay? I understand how many of you are Getting this, that you also need Docker, same He will run everything from here and then consider himself here. If you want to send an email through this then send an email Integration is also required and you can do all these things. Will do it through Jenkins on your master machine Now brother, you can do this on workers also. But Just to Save Cost Just to Save Time I am the one and only Master Deploy I'm going to show you okay worker deploy. You will do it because I did Jenki's session I have got this one done, I just and I will only show it on master. Just to save. Time should not go forward or backward, you people should have it only once Everything will be fine in Now once you have your Def Seps, I mean Bakan Once setup, we'll set it up again. Apna ES Cluster Okay Kuber Niti's cluster watch is your this is your third tha ch is Your Fourth, we call this cluster a particular will set up in the region whatever its Whatever things are required, they will provide everything. Minimum 20 minutes for cluster formation should have been If it takes 20 minutes, then it takes 20 minutes. that we will keep the time with us until we People will take a break or whatever, we saw that. I will go or I will explain something else. Your cluster will be ready with two notes. Again, these notes also have security group. It happens if you don't forget these notes too Security group hota hai how many of you Realize that these notes also have security There is a group and we have to port it also. You may have to get access, okay, I understand. Fourth Point is coming The fourth point is understanding yourself How to create an EKS cluster and The cluster has to be managed and that manages If the master machine is from the cube then the cube will be of Seattle. The commands will run on the master machine which will The cluster will now access this cluster In this we have to set up Argo CD. Setting us up Argo CD in a cluster Argo CD updates this cluster Will do ok will update this cluster how Many of you understood this well before Let me explain what an Argo CD is. Argo CD is a Continuous Delivery Tool Which is specially for Kuber Niti Designed where you can find Kuber Niti You can sync whatever services there are. They Deploy to whatever your repository is You can connect so that directly Your Kubernetes from your repository The manifest files will come and they will be on your server. Sorry Cluster Pay What does DeployD do with a Git repository? Kuber takes the Nity's manifest file and Goes to your cluster and updates it How many of you get the understanding of Argo CD Simple Tool OK a simple tool Okay, what that does is get your from Git Hub. Kubernetes manifest file like from let's Here if you go to Kuber Niti's Wala So this will see Kuber Niti's here The manifest file is frontal back Andel MangoDB is the deployment of MongoDB. All these files are a service of MangoDB. On a cluster of Kuber Nitus Deployed CD Works How Many of You Group what were we doing just now we What were we doing Cube CTL Apply Online for Deployment Apply Online F service, so that automation is not needed right now. We need to automate it end to end. In the gig of the Using Argo CD, he Have a manifest file which we can update How many updates should arrive on your cluster? Of you understood this, do you manually I don't want to write anything, I need five reps. Go to the Hub and repair two Argo CDs. Simple will make it five Understanding How Many of You Gut It Now the last part is monitoring, here we People will use Helm, here we will use Helm Bhaiya Helmet Files Remains Persin Volume R Packages for bank or service accounts It's a package manager Simply through that package manager we Graphador is about to do it, not single click There will be four or five commands, but only four or five. will remain Here in connecting the observational I do the same thing with automation through Helm. I'm going to do it in about a minute, okay. That's why you should understand that Helm what happens ok helm is a package manager Where you can see the manifesto of Kuber Niti Installing files using Helm Package and deploy it directly to Right code would automate everything Now how many people understand six Components of our project The project has six components, work hard six Today we will learn six components of Today we will learn all six components of Wale Everyone Ready everybody ready during this some of the lettuce If a step is missed, some steps may happen next. If you step back, we will solve it in front of you. Okay, six steps of super six to everyone. It's clear, all done, superb, what a thing Come on, let's get started first. what would I have done My Wunderlist Mega Project I make this repository my Why clone locally? Why clone locally? Why Bhaiya, because I am sorry for Kuber Niti via Terraform We have to create a cluster, not our own. Was the master machine to be made or before that? I need you to explain the code Not there. Right No need to explain the OK code. No because the code developer will give it anyway It is of no use to people when Bugs will appear at that time you will need the help of the developer. You have to listen to these things to understand them. and so on but still I love you I will explain it to you, okay, do it a little. I have said it enough, so Ganpati Bappa Morya Let's get in the name of Ganpati Bappa Started, let's just do what I did, local Pay Git clone your project CD Mega Any project on my wander list I cloned this project of mine. I have received all my files What will I do now, I have to go I'll go to Terraform ok this is my e2f terraform variable Everything is ready near me at AW S Pay I AM Okay I AM I will create a user I'll create a user okay how many this thing People know I'm a Terraform admin. I will create a user named and give it admin access. I will then provide its security credentials. I'll go and add the access keys. many of you know Go to this and here in your local I will run AWS Confil, how many people to know That's how AWS configures It's fine locally or on any machine. Great, now here I go and VIM. Tati here's what I'll do Terra Automate This is where users Shubham Document Work Train vs Shubham Terra Form Practice Ra Keyed Pub is a public key ok There is a public key that I used. It's done, okay, now I can do what I want. How can I make that here too? SSH ki jan a main ki bana di jisa I have named it Terra, I have named it Terra Dia and I have Terra's Dot Pub here It's here, okay, Terra Kid Pub is here. So this is the location where I can this is what I'm doing this is my this I am running the part that I made the master machine how many of you got this i am making a Master machine is OK VIM Whatever your location, this I had changed it I think we have people here But Terra had kept the pub as it is. Your location will change, you people You can do it through Terraform or you If you want, you can also do it directly on Etoo. No problem, no one will judge you The one right there is Terra Automate's default. VPC creates a security group where But let's allow port 22 and we MI ID and instance from the people variable How many people will understand that they will type it out? Aaya what is MI ID and what is instance Type here I want to use Ubuntu machine I am going to have the MI ID of Ubuntu I'm going to use type t2 large so tad You will get a large amount and the control will be done. m variable tf will go to us to mine This is the region, this is my ID, if you want, you can You can confirm that by visiting an instance What is the MI ID of a Natu instance? is a go to any instance let's say this went to the instance me and this is my id 085 f9 085 f9 Correct Instance Type Tud Large Correct Everyone Clear with This Key Terraform's confession, what do you need? Don Clear now just terraform in it so that I can create my own cluster and create servers that My master was the machine and I became Okay, done. Fam Plan this thing again, you do this thing directly You can do it on Sattu also, it will save time but it will be complete. If you want to do it end to end then I'll just go through The entire process Okay, so four things are going to happen: security. Groups Keys and Your instances Okay, one thing to note here. There's one thing that's missing in Terraform. Just to note You need to root the block device's storage I will have to keep those 30 GBs, okay keep 30 GBs. Why would it be necessary because our work is done in 8 GB If it is not going to be made then keep 30 G as well. Terraform Apply OK Let's Now he will apply and say that the brother we did you plan to execute it Yes, execute Is Ok Come on, your security group is also being formed. The instance is also being created Instance also I think around 30 seconds In it will be up and running Okay, the instance has been created, so now we What will you do? You will open a tab only and only for your master machine so can you C this automate instance t2 large this is Ready Using Terraform What I Will Do Now This is my instance Yes, I will do this connect so this instance directly this one I keep the tab open Yes, let's call him master, okay, this I will open it in a tab, Master. Now I will try to connect it So this is my key with whose help we People are going to connect that so here Terra's kept So with the help of that Terra, I I need permission from Terra. Okay. Let's try to connect the machine and Let's The name of the Go key is only Terra key, this love has been removed. The name of the two keys is just Terra Key which we people had made Enter this I want to. Connect Connect Done Your master machine is ready Yes and No your t2 large master machine is ready This is easy. Simple Fun Easy Easy Now what am I now Now I'll go to my dummy And I will understand that on me and this master machine What things do you need to install? The things you need to install on the master machine He has to do this Jenkins is Seattle Argo CD is Jenkins worker is For tutorials, we are all on Master. You are doing it, if you want you can work as a worker It's Again An Easy Step Owas Sonar Cube Email Notification Monitoring and Clean Up These All things are set to us through the master machine have to do up Now the ports that you want to open in the master machine The things to do first are listed here. All the ports at once Open all that, okay, I understand. This is the master machine, this one in it There's a lot of things going on, okay? There's just a lot of things going on in this. And it's not just SSA and ATPS that work. There will be many more ports opening. If so, then ignite them all at once, okay? I understand it one by one, again and again Instead of playing repeatedly, make a fire at once. Two Okay, so let's put this in our documentation. How is it 3 Hajj, if you want then side tab here I will keep it open so that again and again If you and I don't have to open tabs then But I opened something in the side tab and If you keep it, you guys Like you would do this on a notepad, pen, and something. You will keep doing it there, I have a notepad on the side But mine is also kept, it's okay Okay, this is the port, I will open it. So let's go one by one, what is it first? 3 From Hajj to 32 Hajj 767 okay open it Why is this cuber? Nits are for node ports generally Okay, and I will add port number 80. port number 80 i think already is port Number 22 and 443 are already there okay then I what will I do 6379 Can Avon Guess Why 6379 What is the port of Radish cured Now I ask you this question from time to time. I will ask brother what is its port what is its port okay now another port remains 465 465 which stands for SMTPS simple mail Transfer protocol is ok And then we will send the S of our application MTP S okay we will go back to our The application will have some ports like 3000 From Up to 10 Hajj, this is through our application The ports will be P okay then the port number is Our 25 25 generally remains SMTP Simple Mail Transfer Protocol is fine and That was completely different, there was SMTP and now we People will keep 6443 Who is it for 6443 Generally It is fine for your test I got it, ok done save The rules security group of your instance has been updated I have even done it now, on every stage I meet you I will expect something because again it's How many people does an end-to-end project take? That is the ports that I added manually Can you guys put those ports here? Ingress here in TF on Terraform can add to How Many of You Think They Can Do Can you how many of you get first Idea for open source Contribution: How many people got the idea? that there is some project somewhere in it You should see Terraform or a port that Could be the first open source contribution to In this project I will tell you about open source I will keep telling you about the contribution as well, okay Good Done, let's move on now. Okay, let's move on now. Now let's go to our server which we have created. If you did, you would have named it are you master machine ok this is our master machine ok Now on this master machine first of all So sudo AT get update machine update hit ok Hit update on the machine Now what should I do about this? Setting up the tools one by one My tools these are Docker done junkin' I had to set up all these tools one by one. If yes, then sudo at get install docker d Come on Docker Compose if you want to build this project with Docker compose because many people will say brother Forget about Kuber Bati friend, you should also use Docker Compose. If you get it done, you can do both of them. Correct Done Now when we do docker ps it If an issue arises then to solve this issue So this is our version run docker dot sock If the thing has to be opened then seedo Seech M Odi 777 Open it by making it 77. The master machine is your own machine, Docker PS started working, its alternate method What is it brother, tell me its alternative method In chat sudo user mode hine append to a group docker Whoever my user is logged in to His/her and new grp docker new grp docker what happens to your Docker group It gets a little reset and refresh. So that it reflects in your group go ok What happens with the new GRP Docker This refreshes the Docker group. So that you can restore the system completely. But I don't have to do it, okay, it's done, now move on. Grow your installation now The installation will take about an hour or two. You will keep installing it. Welcome to Dave, okay. So you'll be installing the tool first. OK, that's it, now the master machine on Jenkins For Jenkins you have to confine What you need is Java installed. And whatever one wants is the end You can install Junkin directly. How many people have seen Jenkins before? You have setup something for Jenkins Kuch Confession Chahiye and Jen Kins Mast Set gets up If so, paste the same confession and press enter. Correct Is Okay multiple times right now with a different The relationship became Let's be good Yes, we have from 3000 to 10000 Ports were kept open, this is a security issue It could also be because the port numbers are 80, 81, etc. Open port number 90 Open this is obviously a There could be a security issue but again a mistake If there is any port left here, then someone's port should be What if our time gets wasted there? To avoid this, I had already opened it. I have given it to you so that that time does not come, it is yours There will be intelligence which will tell that brother, each one Do it and open it but again it will take time So I opened a lot of them at once. I hope it is fine for the tutorial part but in real life you The port specified in Terraform just as open You have to do it right in production You will not do production directly now. you are not doing right now what are you doing right now Do you understand how to do it, friend? I want automation again, I was telling you. are here to Understand how things work Things are not working, what should we do? what should not be done okay got it we saw that security We have given ranges in groups Okay, we have ranges again, it can be Security Issue But Just for the Sake of This Tutorial repeatedly tells me port number 808 Port number 9000 is not on here and there Read so the entire range was given, how many of You got this that if I on my instance Let's go. My instance right now was and go to its IP address like this So it is already open or why is it already open Because I have kept the range open How many of you got to visit me again and again I understand that I don't have to update it, it's good. Samsam super what do I do from here Start setting up your server I will give you sudo Kat OK This and from here I entered the admin password has given Add yours to the master's group Stop all this stuff Dude, okay done, install now, suggested The plugin which he is initially saying Initially the plugin he is talking about Let it install, okay, now initially He is talking about pipeline and Git Ya on Owas. He is saying let it happen, okay we will do it later. I will do the complete setup properly ok ok Create your username enters email address Yes, this is the URL of your instance. Go save and finish your junkin now you are ready Can Start Using Junkin' is fine Done, everyone understood this part. How we junked the master machine You have set it up, okay now next to yourself Creating a cluster of EKS from the master machine Okay, you have to master the machine and get the case. Brother, we have to make a cluster of this. How many people know how it is made? How a cluster is formed Annie Annie Idea how many of you have S CT L Okay, so to create this cluster, first First you need I am user with access Keys and Secrets to Access Terraform Now I am the admin of this one, so I will take an hour. It has run before but this one ran first today. So I'll delete this, okay? I deleted the old one. I will give it to you and make a new one for myself. ok for the server because our master I will create a new machine. Access's command line interface Understand its tag value if you want So you can keep it or let's keep it Wonder Lust The name of this project is Wonder Lust. You might see this name in many places. If you get it then this secret access will be done. That's done, okay, now I'm here in secret. I need to install the access key and key. If you need an AW seal, I'm here. I will go and add cl i, this is the command As it is, I will copy this command. This command will enable AdB SSL IConfer. go Is Done OK AW S Confido yes it's coming cha means it is working fine so I'll go now to my Access Key By copying this access key I will paste it here and Enter and copy this secret access key I will stop screen sharing. I will go there and paste it and press enter Press and then press enter, then press enter I'll clear the screen and then share screen I will do it, I understand what you are doing. Copy the secret access key AW's Confine I will paste you in Here you can copy the secret access You have to go and paste it in the default region. Do not keep any name, any output format How many of you know how to Confinet If you do this, then the shortest command is I see that brother, yes it is mine. This account has been confirmed, done, all done, ok now. What I will do is I will now call the E case CTL. I will start installing the case For CTL I need cube CTL Because the one who manages this cluster The CEO who is the director is Cube CTL so Cube CTL we do will take install ok then client version wv 1.9 Cube CTL is installed now. Also install CTL of it similarly. We will also install CTL of E. If it is done then take the e-CTL version 0.18 How many people have understood this far? to create an EKS cluster that Pre Requisite Hai A W Sal I Cube CTL, this CTL, we made it. Yes, it is correct, we have made it. many of you are getting till here that puri became a thing Is Now I will make this cluster my master If I go to the machine, what will I do first? I will create ES cluster whatever my The name of the cluster is whatever is given in the region I want whatever version of Kuber Niti I want to give that first without note group I will make it but before that I have to go here Our You will have to go and check the cloud formation whether the cluster named by mistake or that Is there any update here called this thing? So it's not here, okay, it's not here, so we People can make it, otherwise it creates problems. There's nothing else, okay, so I'll copy this. I will do this case create cluster name Wunderlist Region US E2 Version 1.30 without node The group got it, "I'll do this thing and I will press enter here brother this is your one Why are you doing it one by one because we Project only Fully deployed within an hour How many of you honestly seen Videos complete end to end in one or one and a half hours And deployed how many of your actually I saw two videos, so I I am telling you, nothing will happen in an hour. It happens in half an hour, not in an hour You have to understand that that thing works. how is she doing why is she working Okay, so this will take you 20 minutes. So what will we do for 20 minutes? Jenkins will configure the machine. Configure Jenkins Let's run a program in Jenkins How to configure Jenkins Some of the things you need to do in Jenkins had to do This is if you keep only Master If you are, you need to create a new node. No, but if you are adding another agent If yes, you can create a new node and save that node How many people can you attach to Jenki Wale? I was in a fundamentals session where I had a A master and an agent were created and both of them How many of you were There in that session, okay, how many people are like this? who was also in that session on Day One and Today is also a day when simply means two months of rigging. The training is superb, what a great thing brother. I made a promise to you guys that If you give me two to three months It's only been two months and three minutes, you guys. He has kept that promise, so thank you so much. For that, you must have seen that change in you. You can automatically see what is happening. It would have been fine Hey, let's move on If you are there then install your CV in this jungle have to do Ovas have to do Sonar Cube If you want to do Docker, then we have to do it. Had taken If you install the TV then how will it work? install whatever you need Need libraries to install like W Gate APTP S Geney PG LSB Release Ye First you need all the libraries You will install the pre-requisite and then watch TV You can add a key, this is the same method of adding a key. Do it and then update it and the TV Once you install it, I'll copy this thing. And take your master, my master now It's stuck, no matter what's in it. I mean, I will create it on a new server. Created on a new session what will you take Let's go open a new terminal. And here's how to attach the master Thinking about connecting Document Work Train with Shubham Mega project Ok Wanderlust Terraform keeps its key here, yes is kept Then connect it to the server There are a lot of things that can be done on the server. Even if you don't go, I will still go because You are doing it through Jenki, right, without Even after that, but still the server is on one side Let's start a new session. A new server session has been started here. The cluster is already being created on the master machine So I opened a new one and a tab. Basically what will I do with the TV now? which will fix your file system Scanning all these things will be fine Let's have a great TV Okay, the TV is installed, now we are What will we do with this Sonar Cube? If you install the server then docker run in en Interact Terminal Detach Mode Sonar Cube Run the server SonarQube on port number 9000 LTS Community Okay, copy this. And here's the Sonar Cube in the background. Server Okay, which is the server of SonarQube? running on port is any one who can read the docker run command and tell me which port But 9000 what do we Again port 9000 needs to be opened No, because we opened the range. I would have done it one by one, you guys would have said Again, security group, understand that I Why did you open the range? Because just to keep it. Things are smooth ok Sonar Cube is starting Let it start, give it some time is taking That Sonar Cube is up all systems are Operational Loading Login to SonarQube How many people are using SonarQube? We will simply setup the Kube server using Docker. Through initially admin admin password remains Is Its what you are after I can change it in yes ok how many of you can Create an a suner cube server easily bun What will happen to us if we go? Done Jenkins Done Tivy Done Sonar Done Docker is fine Is What's next now? oh yes how far has your cluster reached If the cluster is being formed then it is difficult to form the cluster. Again, as I said, it will take 10 minutes. Started at 4:30, just 436, 45 minutes left It will take more time, until then we What can we do till then, we are doing well. Email system does its own email How many of you want to do email then her There are some pre-requisites for this like LETS You have opened this email from I opened any email and now You can go here and manage your How the account was managed here google3 from 2020 this is the same date where Train shubham's adoption of train v shubham Now what you have to do is search P and here is Pap Password if you need Gmail SN application If I want to run it, I will have to verify it. I have put my thumb impression here. It's not going to work without my thumb. I have verified it Now what do I want here? I want to make a P and I will name it Jenkins I will give you the forest, you can name it. Yes, create it as you create it. You will get a password, okay? As soon as you create an app, you will get a password. You will find that password somewhere. I have to store it and store it somewhere. Do it, okay, what do you have to do now? who has to go to Jakus and after going to Jakus Manage Jax and then just give me a minute Sa and Scroll down to Manage Menu and then click on you have to enter the credentials okay Credentials And the pop password of my Gmail was just I have to give it to him, you know what will happen to him. You can send emails, yes, I mean, if you got this, Gmail is a mail server that You have to enter his credentials here. Now I can directly use my Gmail password So I couldn't put it in, so I put a Created a password and entered that password If I enter it, my username will be Train with shubham@gmail.com what is this I have an email address, what will be my password? This is my P password It will be mine Password This will be my password I will put the password in the ID Gmail and I will put Gmail in the description. password which is p password how many of You Understood This is how Gmail lets you enter your password. I have to create a Gmail password and You have to put it here once you have Password created for you on ManageJson Then go to the system. After going to the system, you have to go to Email Kiss on the notification part Pay Email Notification OK Extended Email notification and here you will find SMTP If you want to write the name of the server then whatever happens to Gmail his server name is s MTP gmail.com so this is the MTP server of g mail What is SMTP, brother, simple mail transfer protocol so if you get an email If you want to send it, then this is the server for that. The SMTP port is generally 25. It happens but if you want to run yourself through P then 465 SMTPS is the protocol we You have to use it, after doing this you will get advance Go in and add your credentials You have to give it simply and then use SSL. Just do this much, you just try it and see Here you go and you scroll down. Here you can test email notifications. STP will be available for testing For testing the server STP gmail.com default User Advance go ok Keep it as it is and here you just User needs to use SMTP authentication Name you what is this to test it Just test whether my email arrives or not. To do so train with Shubham @ gmail.com This is just for testing And by copying this password I just I want to test it and here I am SSL which is the same as the above confine used she was SMTP 4 65 and just test the confession by sending an Email me, to whom should I send my email? Tell me someone please email me Two ha Okay, Dheeraj Bhai, if you don't get an email from me then Be respectful, say yes give but let's see let's taste it then Dhiru Yadav 5@gmail.com Test Confession o sorry port number not 456 If it is 465 then you would have messed up such things. Yes, that's why email was successfully sent. Brother Okay, get it, let's trust Dheeraj Bhai. yes but still Send yourself an email and see if your Whether the confession is true or not, is the trust complete? Dheeraj Bhai, there is no such problem but The rest should not be tested Confession Email Was Sent Inbox Test Email train with Shubham this is something I have seen here But your I entered my own email incorrectly, brother. Email or Send If you see test email to send From Jenkins, people understood that How to send email through Jenki How many people understand it went fine Is Done, now save this confession. I accidentally entered the wrong email address. I had given nothing else, so this is the test Confession: No one should steal your password. Remove it, is this a test confession? No problem, email test is just fine If it is there then you can keep it, which one was it, it was 465, right? Correct Is ok done So here we are, we have Gmail setup. Docker is done, SonarQube is done, EV Done, let's see before we do the Owas. Yes, your cluster has been created, OK, your email address case cluster is Ready OK your e case cluster is what Have you made Ready 463? Don't you have any scenes? I will change it again on the system. will go Email notification ok that's for testing ok let's do it now what do you have to do Add nodes to your cluster. It's okay to give cluster is ready if you do it Cube CTL Gate Why is Node No Resources Found? Your cluster is ready Node in the cluster No, I did not add it, why did I not add it, because When you entered the command it was without node There were groups, what do you have to do now? How do I add my node group? Many of you understood this yourself Before adding groups, O IDC Provider remains Open ID Connect OK Open ID Connect OK Open ID Connect US to Cluster Named Wanderlust Why does Open ID Connect happen? that your ads account can talk to this cluster Click Enter OK Open ID is connected Now look here, create CTL of E. Node Group Cluster Wanderlust Region US You can change your region to East. Lena Name Wanderlust Nut Type Tad Large Why because I consider myself very Prometheus Grafana Argo CD running a lot of things I need two notes, minimum two. Maximum two-node volume size 29 GB 30 Put GB, put 50 GB, it's up to you. This is the important thing about the case node group. You must have an SSA public key. The name is eCaseNote Group, let's create it. So I went here and went to my etu that I went where the pair And here I created the page What is my name, whatever is written here what was written was e case node group how many of you understood this Step How Many of You Understood This Step E-Case Note Group should have its own US East Two Region I got it or I have it No, I have Okay, I have it, you guys also have it. So now you can copy it and put it here. You can paste it on Yes, now this will take another 20 minutes, okay? Let it be made, till then we will do what is the Use of this key By using this key you can access your Inside the nodes of the EKS cluster You can see if everything is alright brother. Everything is fine, what is the use of SS key? yes ok fine Now we will take this time again, our Owas Continue on Yes or Na All Good ovaas left in this ovaas per continue Let's do it to install Owas Again you go to your documentation I am ok is it done I want to search Ovas, ok I searched Ovas. Owas Dependency Check 5.1 or 5.5.1 this one What to do and what to do, do it at once Let's take a plug called Sonar Cube Scanner We have to do this so that we can run SonarQube Server Be able to attach it to yourself and what else you need Bhaiya I need a Docker plugin so that Docker If you can run the commands then Docker also has a plugin. What else do you need brother, pipeline? Why do you need stage view, brother? This is because should because your Look, looking cool is also very important. It is right, meaning I can wear any T-shirt. Why should I come here in a T-shirt and teach you? I am marketing on it, I write cool a lot. If it is important then what are we doing? Nice pipeline stage view here To see the view so that you can understand yourself I should know which job is for how long. Build hua hai and so on such a complete stage View Aa Jaye This Is Called Stage View Pipeline Stage How many people want to install four plugins? I think I'll install four plugins. They How many people think four plugins I will install it We will also take Blue Ocean Why not try this cool looking blue ocean? It is a matter of nothing else, nothing to do It happens okay and after doing this thing Just The stall is blue, water water Varun Here OK, now once you're done installing it. Just Click On Restart Junkin N Installation is complete, it is junking will restart and drink water Take ok what is this second wall own Let's restart it Admin Let's get this done Ours is fine whenever we restart everything is complete It will be installed, this thing will be fine Restart will happen after some time It will be done now, let's see your notes Groups were also created, two nodes in the cluster Everything is ready now if I make a cube CTL gate nodes then how many How many notes will be shown in my Cluster two is visible now, become the correct cluster Gaya everybody able to set In the course of conversation this became this became It became I am having fun chatting with my friends Things are happening, okay, do it with understanding. Take it easy, there's no hurry. how many of you have clear Understanding Till Here Architecture Setup How Many of You Have clear understanding till here paper pen holder Brother, by doing this this will happen or not that. You can ask any doubt and it will be cleared now. There should be an understanding of what is happening I'll go a little slowly I understand it clearly till here is now This will keep happening because it happens It will be fine, I will come to Junkin. confer things If we want to do this then what will we do to manage goods? But will go And we'll go to our tools, okay tools. P on which tools will we go P now whatever we people Installed plugins like Sonar Ovas Un Find all y like dependencies Check Ovas Dependency Check Hota Hai Na Va Find it here and check the dependency. Install Dependencies Check Dependencies name of the cheque Ovas Ovas this plugin this thing dependency The reason why the check came is because we used the Ovas plugin. I installed it, so it came installed automatically. Do it and install it from Gib.com So Joe Owas' account of the original Git Gib There is a Gib repository, here are some things from there It will download the files which will take you 20 minutes. I understand Owas something It will download the files which will take you 20 minutes. may occur when you run the pipeline Getting it because he'll download something. That's all you have on your system need to No, save it now. Okay, save this, O Wasp. What should I do now? Is I need to install Jenkins and SonarQube If you want to integrate, Sonar was here. mine to me this and Zakynthos On whose basis was it integrated or Then on what basis should Gmail and Jenkins be Uzma, I did the right thing, you got the token. Go to administration and then You have to go to security again. You pay the users and this is yours. The administrator user is visible for Click Create a Personal Access Token Someone please enter the name of the token here on tokens Give me whatever name you like, Jenki The name of the token sounds good. Enter 30 days expiry to generate This is the token, copy it somewhere. go and slam it okay so you can get it back I understand that you have a token. Made for integration of SonarQube Admin for Token Now that token as I have here Junkin' by making a token of the google2 cube I will put it in the credentials then Global Pay Clicked Went to add credentials then here now But how many people think that I am using the username I will use it while we only used tokens. Only token was created, no username. It will be used here, secret will be used here Text Secret Text and whatever you The token was copied into that secret text Put it in and give it an ID of the SonarQube. If you have a password, give Sonar a description. also put in the Sonar Key or Sonar Token whichever Add whatever you like and create it. Now you have got the goldsmith's token too. What will we do with that goldsmith token? Integrate it with your Jenkins I will show you how Again go to tools and after going you will see Search Sonar like these are tools Maven's conflation is Java's git if you If you want to do it on a private Git repository then Here is the Gradle installation. Got your own Sonar Cube scanner meaning This server of Sonar Cube is interesting to me. I want to add it, enter the name of the server. of Sonar Put Give me two more installs and automate Sonar Cube ok now its After that, all you have to do is save it. This It's done, now what do I have to do? Next, what's next for me? Here, yes, Git Hub. So this is my Git Hub. I also have Git Hub. things to do if you look at the diagram Also updates the Git Hub repository Jenkins with updated Kube Nits tags Or update the Docker version tags So Jenkins has the password for Git Hub How many of you think that Personal access to Jenkins and Git Hub You can integrate through tokens What to do: Go to your account settings But Go to Developer Settings Go to Personal Access on tokens go create a new token okay named Now I have to get my thumbprint again. You put its name here Wanderlust Because put something here Give access to the repository and save it. Now you can copy this token somewhere. Now tell me where you want to add this thing. Now tell me the System Tools plugin nodes Security Credentials Credential Types I will add I will add in the credentials right why Because I don't have the git credentials yet. I'll go to the credentials to deliver Globally add credentials again username with I will change the password, my username is Launde Shubham 153 what is this my this is my git hub This is my username, this is me, Shubham 153 And the password is my password which I I did this, this is my password and In the ID I will put Git Hub cred or then git hub credentials ok git hub credentials Total Create so I through Jenkins which Credentials of the person doing things on the tool I'll give it to you first, okay Is Now I have to go to the Sonar Cube too. If you want to integrate it then I need to You have to go to the system and go to the system I'll have to go to the Sonar Cube after Search here, yes here is the Sonar Cube Went to installation d SonarQube ok d Went to the Sonar Cube now here I what I am doing this, I will add a Sonar server. Can you tell me the URL of the Sonar server? Here goes the server information of Sonar. URL I copied this and here I am Paste how many of you got When Junkin reaches this server, he Authentication token will be required, that token will be in Sonar Picking up from tokens I will take how many of you understood that How to access SonarQube through Jenkins Integration First, create a SonarQube token. Add that token to the box And then you just have to enter its URL. Which host is this brother? tell me which one is this I have made an easy one So I wrote master here. so that you don't get why so many people I was not confused and how many people were Vaibhav Okay, it's done, save it now. Take Done, now I will give you a How Many of You Think Jenkins Pay TV Ovas Sonar Docker Email All these things we People have accepted all Confer is just a small step away when Jenkins will hit Sonar Cube to give him a Web hooks will be needed to automatically hit So I will go to the Sonar server and After going there, I went to confession. What is a web hook and how to create it? If I need to send something from Junkin to Sonar So if I need a snack, I'll be here. I will go there and create and eat the food of which I will give it the name Jenkins Web Hooks. Tell me what will the URL be? Vaibhav let me connect things to Jenkins If you want to do it then what will be the URL here The Jenkins URL will remain correct so it I will copy the URL of Jenki and put this now this is a web hook so SonarQube web hook I will create this No secret, nothing Create brother, what will be the use of this and hunger? What's the job of the book whenever in junkin If any job comes, send gold to the goldsmith. and job completed then sonar jenkins will send a reply that the job is completed. How many should I get for this thing? Of you got this, we say that brother When will your delivery partner arrive? Delivery partner arriving in 5 minutes How do you know because the second delivery If you have a partner, he also has your address. Jenkins address near this SonarQube This should be how many of you get This should be the address of Jenkins and Because of this address he will tell that you are my brother. Your work is done, okay? Is Done, everything is clear till here, Khushal Mangal All good how many of you have Completed to four and three Meaning I understood mentally u 4 Andy understood I came well, how many of you done good Nice, it's here, great, now we're set up. Let's fix Argo CDs Let's set up Chalo Let's Set Up Argo CD So Argo Again we're going to set up the CD. Go to your repository and after going to the repository, you see What have we done, we have done Ne Junk Master Kia E Ke Seatel Kia Owas Did SonarQube email Argo saved Okay, Argo, do all this as it is flow You also have to implement it in This is the worker node one I skipped Tivi kia sonar cube kia yes let's Confil Argo CD What is Argo CD It's a CD tool that is specific Kube works for deployment ctl create namespace argo cd this where will I run Tell Cube Seattle Create Name Space Argo cd ye argo cd me install kahan I will do this, I will do this KS cluster but its All the work will be done on the master machine. Cube CTL Gate Name space so the default name here is space If the cube node is leased, it is public and it is system then I'm installing the Argo CD here. So I'll create a new namespace. Argo CD name then cube ctl create Name Space Argo CD Ho gone apply argo cd manifest now argo The CD project is GitHupP on it His manifest is all written down. Just apply it I applied twice and made sure that Also, your Argo CD's server will back up Service Deployed Pods all created at once Easy now you cube ctrl get pods do Argo CD's to see that the pods become are they becoming or are they not becoming So can you see the application of Argo CD? The controller is running Server is running Notification control is running Redis repo server is running everything can U C This Don pull now what do i have to do install argo CD cel came bhaiya Argo CD seal came kya Where is this Argo CD of mine? This is my Argo CD, it is gone. It is a UI application, if you want the same thing If you want to do it on CL I then you can do Argo CI. If you install it then copy it and sudo curl silent location silent here What is it about whatever gets downloaded? Things don't print on the screen will be Enter silently, it got installed, what is this? Argo CD ka cl i hai And we will give permission to that CL I. So that we can give him the CL of Argo CD. can run the Now take a look at the services of Argo CD. Bar so all these services are then Argo CD Server is a cluster IP server ok Repo Server Cluster If you want to run your IP on port then What type of service should it be? Can you tell me in chat if you have any services? If you want to run it on a port then What should be the type of service, only two People answered Dude, it is correct, the note should be put but here Pe so all cluster IP is so cluster It will be okay to have an IP, they have no problem with it. Cluster IP but this let me out as someone If you want access to the port then Joe Argo CD server Its type should be node port OK Bhaiya sorry what does RB COD X mean Okay, so Seach MO means change and modify. Permission in X means executable permissions usr local bin argo cd here But we have created a tool called Argo CD. Downloaded it and gave it permission like If I write Argo CD like this Made it executable, it worked fine Now what do I do with that cluster IP? Whatever type you want, just Argo I will patch it for the CD server, brother. What is a patch? Whenever you update something So you update the whole thing when you You patch something and you take a particular thing. and if you add a patch to it, I Only to Argo CD servers I want to put the note so I took the patch and If you go here and update it, then cube ctl Patch Service Argo CD Server in the name Space Argo CD Patch Spec Note Make Pot Enter Kia Argo CD Server Patch Now Cube Seattle Gate Service Argo CD What will my Argo CD server be on the node port started walking Argo CD started running on the node port What NAT port is the server running on? Which one matches with port number 80? Look here, I would hide here right now. make mess gives If it makes a big deal, okay, then port number 8 306 with It is attached 30169 then I will go Your instances But this is my node, right? Node Which One Wanderlust Node This is the Wanderlust node This is its security group This is Wonder Plus Nut, how many people understand this? Coming that my master pay Argo CD Master is not running So I'm here I'll go to the Wanderlust node on Security I'll go to the security group. And in its bound rules I will go what to add I will give you this port, which port is this brother? 30169 What port of Argo CD is this? I will write Argo in the port description Put the CD Anyway Save two two taxes Now go back and go back one more time and back Go now what do it go into it I will create a new group. The group, which I will name EK This will do, if you make it yellow in colour and its IP address This is the port number 30169 tell me what should be run on this HTTP is what it should run on Tell me this Argo CD Advance Mein Go Proceed because we have The certificate is placed on this Argo CD should be Running How Many of You Can Install Argo How many people will buy Argo CD? Install Setup I will do it, Atul will be able to do it, what about Others Main Cluster I created Argo CD on the cluster Installed Argo CD's Note Port Open Did you go to security groups and I opened the port and I'm just running it. It's over five Steps The initial username is Who is admin and what is the password? How do I know what happens like this? If you are an admin, you will have to enter your password first. How to find the password You will get cube ctl argo cd name Argo CD in Secrets of Space Removing the admin secret password of Will have to remove admin like for Jenkins It was just like that, Dheeraj Bhai, so cube Removed password from CTL Argo CD I got the password and this password goes here. in this case see this case in this case Enter your password and sign in. taken Easy Easy Now on User Info Go and update your password. Throw it away because that weird password I don't remember Will enter any password Okay, put it in and save the new password. Here comes the password Just got my Argo CD setup too. If you want to do it then go to settings Go to Repositories Go to Argo CD What Argo CD is a simple CD. The server resides on which Kubernetes from Git Hub Maff comes with a file and a Kuber of Nitties If you update the cluster, I What are the things required in the ARG CD? Repository will be required and admin Did you change the password? Correct Yes, what I need is a repository. If you need it and you want a cluster, then How I connected the repository There are two ways to use HTTPS from Asus You can do it through ATPS also, okay? The default project name will be repository. The URL of your repository is now The git clone URL is this one This is the HTTPS URL and go and post it here. If your repository is private, Provide your username and personal access token There's nothing else to do, just connect and see Low Connection Successful How Many of You Understood That How to set up Argo CD How to attach your Git Hub repository have to do gating I understand it, yes, good, let's go. Just go brother, let's go Next, set up your I Think Argo CD as well. Went Okay, Argo CD is also setup. Your entire setup is done, everything is fine. All your setup email notifications done This is also done, SMTP is also done Let us go Take a break now, setup Observability is almost done The remaining is the obligation, I will tell you at the end. I will give it to you, okay, my setup is done, small one. take a break It's going to be 1048 and I think we Pa takes a two minute break, yes Varun Look, drink water Okay, let's take a break for a minute. Let's have a minute of what we can do will have fun We will see who reposted brother what is this if you want an i chat gt Jamni to work atley the way this peace wala bata You can follow the below tips to Nice oh nice very nice very good post that if you If you want to talk to him then you have to first go to this promotion. Engineering Of Convention Tone Format Acts Objective Contact Scope Good Very Interest Jalandhar Use Shout Out to the Contributor Madhu Krishnacharya Akshay Uday, so whatever you are seeing, all this Things like this one, this one, everybody made Hey brother, it takes hard work, so how can I be dirty? Something like Sandha has been made, this is also bad It doesn't feel right, does it I too am unable to make I am that one, what do you have to do with this image? Take it and make it such an arrow arrow and power It is done by going to the point and animating it. That converts the PDF to a GIF. Mohit Sir replied given that Superb what happened is good Let's go great Have many Okay, the break was for 5 minutes, right? from 48 Lake 53 Till once cluster IP to note bud wala Case explain f u get time c This is a service cluster IP type. cluster IP so this is the I of the cluster now I I can't access this, expose me. The application has to be done So I can edit this type as well. I can tell him patching so I Patched how to patch Kia Cube CTL Patch Service Argo CD This service is called Argo CD Server. Patch it inside the namespace its type note put kar two okay All these cluster IPs are different. You might be seeing it but it is on the cluster. communicate with each other Can I let you go now it's 53 RV back from the Break are you guys back from break Are we back from the break? Awesome Kitna Costing will take place in a day I think one day If you put the whole If you give me 10,000 then it will take Let me tell you one thing right now. Okay, now I hope I will tell you a simple thing. Your doubts will stop by Wednesday and mine The concept will end now, okay? I will explain it in a small concept. Is Ok Let's read this Jenkins file How many of you have written this kind of James How many people have this type of junk file? written it is written what is it What you do in this stage is build a pipeline. Yes, you make me an agent and create stages. give that code build scan push Great, you make the stages. Yes, now inside this, steps inside stages You write steps within correct stages You write this, see this with credentials Do you write steps or write all these things? How many people can tell this? What is SS? If you need some command on any shell run some command or any tool So you write S correctly. So tell me now if I need to docker push to two places, meaning Pushing to my account at this stage and at the second stage some other account But I have to push on this stage of mine account has to be done in the second stage and do it on the account So how many times can I do this push command? I'll write this one with credential image. How many times should I type push y if I have to go to two places But if you want to do it then do it on two different accounts. So how many times will it come generally, ideally how many should come twice have to do 50 So 50 times simply but what if I tell you that this I will write the code inside a function. And I will call this function So what is the function Brother, these are my lines of code. I have to run it five times, so I five times I will write many times, just write a small one. The concept is Dry not talking about Gujarat but Dry Ch Is Do Not Repeat Yourself Do Not Repeat Yourself So If You have to write this thing again and again. doing wrong so what are you If you do this, you will make a function of this thing. Thing Whatever this thing is, make a function of it. Now this def means in Python here The call happens, okay, you'll create a function. Bhaiya can we do it with Loop Why loop to repeat the same thing over and over again What happens if I am here Told that one has to push on Madhu's account. If you want to push to Purve's account then loop Will something happen to you again and again? And you will have to provide some more variables. You will have to provide some more parameters right here. But let's say the user Name is Train with Shubham and the second time you are doing it Username is Madhup If you do Deps in the loop then these five Even if you do it once, you will have to use the username five times. The train will remain Shubham only, same as before. It will keep making loops, why would you run it? create a function What will happen in the functions? In the functions you send parameters here You can pass parameters to the two functions. Send two parameters or send your parameters Given username train vs Shubham toh chal dega Call it back and send some parameters. And so he went there Let's call this thing in Jenkins Library Shared library that you can use with the same code can be shared across multiple pipelines You will loop the same thing over and over again. Repeatedly rotate the pipeline through your same code Can be shared to multiple libraries Yes, how many people think that this thing You must have written five at least five times. For the project This docker push and docker build five times It will be written differently for different projects. It will be written different times what you should do You create a repository Create a repository and share a library Or whatever you like, this is made by Madhup The repository is lion where you can do whatever you want. Create a folder named verse like this In which you want to write whatever code you want. Checking out your code via Git Hub If so, check out the code, become your function name. Dot gavi becomes your syntax the file gavi Syntax Click Make the call now here I am passing I am passing my git hub url here. Here are the Git Hub branches and what's inside. The syntax of that gvi is git url b this bean is the same thing that you see here I will get how many of you get it that this is what I got URL here URL sent here I have sent a branch, I can do the same thing. By using a shared library in which I I will write code checkout and code checkout I will give you this URL and this branch. I will give you understanding aaya dakar bald gavi kitni log ko think ki Docker build doesn't require me to use Docker Hub. Enter username and project name and the tag of the image has to be given and this function I can use it anywhere Vivek Let me explain first, okay? is like this understand this My Git Hub Here's a project to do. P There is a project here, two tier P There is a project here Node Pap here is a project Notes Jenkins file for each project Write down how many people are there for each project. write the zenki file There is a Genie file for each project you write yes Yes, in how many projects have you used the same Docker The build command is the same Docker push command that is run Same Docker build command Same git hub clone Sem Docker Push beans Same Same Same Butt Different same thing, now whatever you do is same You are letting the dry do not repeat Yourself How Many of You Have Repeated Yourself in the Last Two I have prayed, put your hand on your heart and swear I have done it many times, I have corrected it What are we learning now? Learning the DevOps Mindset Through Projects okay so what are we gonna do People here, we write these common things. Let's create another repository for this. Let's name it Shared Library or Junkin Shared Library whatever you want to call it Shared Library and in this Let's name the function let's docker push Docker Push Dot Why Groove? Because it uses Groove syntax. declarator pipelines r groovys Inside this we would write a def call What are the def calls and whatever you have inside it There are parameters and you will pass them late. What parameters are needed for Docker push now? I would have needed a certificate Need credential ID named Docker It requires a user of Docker Hub and Password needs to be correct yes or no I don't want a username and password, so what do I need? did one of that things This simple example created a shared library. Now in whichever project I have Docker push Am I going to write this entire code? hmm yes or No, am I going to write this code again? No, I'm not going to write this code back. what am I going to do Tell me I'm going to do it, look. I'm gonna do this I'm late from Docker push Look what I'm doing, can you see This What Is This Docker Push what is this docker push it's function it shed library where I will name my project sorry image I gave the tag that was to be given, my user gave it. gave the name Oh, now I can do what I need in that function. can write and I'll call that function here. Let's get what I need Docker build has to be done in which docker build command and the user is docker user project The name is the tag of the image, just look at it Look what I do I want to get Docker built, I want to get the back end built as well. I want to get the front end built as well. If I want to get it done then what am I saying, what is this? what is this docker Build Tell me whether you understand or not I am just calling you function now tell me what in this function I am atul in place of shubham in train Docker Hub username of Atul Your Docker Hub what is the user name remember this I want Gaud Atul, if I put it here If I give it to you, it will be fine, yes or no, just me You will have to enter credentials and that is a different matter. Come here. I am not understanding tell me now Loops and it doesn't make any sense, don't you understand? coming in shared library I have this code Write it down and use it here. Now Uzma's question is this function How is it going in the repository? You have to tell Jenkins. and you would have to tell Jenkins that's it brother pick this code wait I I will tell you how to do it It will be right here for you, where is it, Jenkins? I have to go in and tell Jenki that Bhaiya, because pick up from here do this Raha Go to Manage Junkin and Search for Global Trusted Pipeline Library Global Trusted Pipeline Libraries means shared libraries Global The library to use the pipeline should like This is this shade of lip, what should I do here? I will go to ManageJans P I'll go back to the system I will go and search for that thing here. Lunga Global Trust Trusted Pipeline Library Shared Shareable Libraries Available to any pipeline jobs running on the System is Uzma's question How was that thing injected into that pipeline? Ten libraries will be trusted Meaning they can run without any restrictions OK, I will add the name of the library now. Now here I can add some name to it. What name will I give and what will be shared on you If you want to add your name also then I will write shared on this. Where should I give the default version? what is the default version now If you have a branch then it is your shared branch. This is a library, this shed is a library, who is this? from branch p y main branch so I am here I will go and write it and Bus Modern SCM means this shared library will be picked up From which repository will git be lifted from? I'll wake up here, I'm wanderlusting repository or shared library I will put the repository where all this information is available. Grubhi Syntax I'll go to the code and copy it. And here in the project repository I will put it in the shared library or understand it. I am coming, I am not coming is coming Yes, I will do just this much, that is enough. save it Take the same if your private repository If it were there, look there, you have the option If this was your private repository So you are on the system Go to Trusted Pipeline by going here You had an option to use Git Hub credentials. insert how many of you understood that Did not put in public repository would have been private So it was love, that's why I let it go private. If it was, I would have put it here. Getting It How Many of You Are Understanding Shared Libraries Okay, let's use the shared library. How We will do this, this name, this name Name shared this at the top of your pipeline import it Cassie at the Rate Library Shared Uzma's doubts are completely cleared Done There will be a repository with that name in Jenkins. Added everything inside that repository shared that code into this pipeline attach it with Just like importing in Python How cool is this for a junkie advance? session Mast Amazing Now tell me how many people have their Shared library at the office can implement Will use it in many people's offices They might not know much about it Not being used in everyone's office They must know now gotta 11 11 make a Wish doesn't even go to office, brother. Yes, there was that, his meme had come which I used to say I am and I do not do what I do not say I don't do that either, I don't do anything If I do it, okay, so this library is shared. Pipeline Agent Label Node Tell Me Now If I'll run it through another agent. So let me insert the label node But if I run it on my own node So what to put here? will have to what will have to be put here Annie Fine hai environment sonar home tool sonar now me Can anyone tell me the S capital of this tool Sonar ONR Why I wrote this Is the tool tool Sonar y why did I write Why is it written because if you if you go to your manage junkin and if you On tools If you go and see, you will see the sonar Cube, you have named this tool Sonar Okay, so I understand that Why did you use the name Sonar S Capital? Why did you use how many yet this is coming has come Right front end docker tags like I mentioned It was that in our project, this Front End This is the back end Okay, so the back end image is also updated. There will be a front end image someday. Will update sometime That's why back end and front end tags and these these we People will judge me by my parameters. 3.7 needs to be built on version 4.2 If you want to build then I can directly build it here. A version that can insert a tug will be built tomorrow interesting haya na Mast, whatever version I put, that build will be will go and okay now stages of parameters See what the validate parameter is doing. I'm looking if my parameters are black. The pipeline will penetrate Again tell me docker tag tell me what is docker tag what is a docker Tag What is a Docker Tag Look at this very carefully see this My repository is right If I clone this repository Lu and run inside this repository I have a front end and a back end. CD went to the back end me and if I did docker Build High Fun Name the image. Lust of the back end Son, whatever you write after putting a colon in front of it yes what is that what do you call it are tags speak again Tell that if I have a particular If you want to use this version of the image then I will use the front I'll use its Docker tag for the end. Docker backend for images with backends I will use the tag if I understand it. I do it here version 2.1 Docker Build Hine T Wanderlust Version 2.1 and Dot What version of my build is it now? is 2.1 so here I am going to put the back end docker tag what will I put 2.1 I did this manually I build this from the Jenkins side I will build it automatically If you take it then no version is used here I am waiting brother, these are the parameters, right? So I will enter the parameters from here, right? I pipeline I will create the through parameters of the pipeline I will put it in right now, I will just give it to you explaining I am fine Right now I'm just explaining What is this Docker tag to you my brother Docker what is a tag Now whenever you do a docker build, here But there is a tag for the image, that is a tag. That's okay, I understand how many of you get This means that if the front end image is built To do this, run on a particular version. Yes I forgot about you, the latest one So let's get the latest image build from me. If I have to, I should put the latest one there. I will give it to you, okay, if you want to build it then put V2 Give Done, what are these parameters, we ask the user will take ParametersValidateParameterBrotherIf If the parameters are empty then your The pipeline stops and the build fails if Why are my parameters empty? Because the name of the Docker build image is preceded by I have to add some tag, yes or No tag has to be entered if yes and no if no If you put it, what will happen, that latest You will pick it up but it will be a mess here. But what am I doing if my tags If not, I would have caused the pipeline to fail. I'm fine if there's no tax on the pipeline. Let it fail, okay, if there is tax then this If there are condition tags then go ahead no problem No, the condition is true, okay, I understand this. I've validated the parameters, how many of them you get. Keep telling me this quickly in chat so that So that I can go to the next stage The validate parameter is just checking if the user parameters that were front end Docker tags back end ducker tug whether it is inserted or not Enter the workspace cleanup script. WS Is this shed library Is No no Clean WS Jenki's one Has an inbuilt function Look how I ticked it, okay? What is Clean WS to Workspace? He cleans it up just fine Clean WS deletes the workspace When Build Is Done Once your build is done go So clean it to save storage. So what I'm doing is I'm going to start I am getting it cleaned, some parts came in by mistake If it goes then it should be cleaned. How many people understand workspace clean-up? I accidentally came across something that Jenki had done. If something accidentally enters the directory, Clean win, okay Keaton, all that stuff. stage git code checkout what is this Brother, I have put this code inside my checkout. This URL and this branch only with this code Check out this shade How the code got Call git url and pass the url branch Pass Karo Jingle Ala How Many Of You Understood Code Check Is it coming out or not? That allows me to complete the git clone No need to write a complete git clone of I wrote that code in a shared library. It happened with the git URL, I just put it I have injected here how many of U group This group Right now only Nishant is able to understand, others Who is not coming first, Nishant is not coming The rest had to come ok let's go Great TV File System Scan TV Scan I shared this TV scan in Jenkins. DVD scanned and kept in the library where the DVD file system is scanned It does it right o Wasp Dependency Check o Wasp Dependency Check What it does Owas Dependency What is Junk Shed Plumbing Shed Library What is Ovaz Dependency where there is a keyword Dependency checks that your current ovas in directoryentry installation Where did this come from? Why did I write this? Ovas because when I did Ovas in Tools I added the dependency so I put the He was named Ovas, whatever name you give him. Here you will have to change its name. Keep the Masa bud here too, it will have to be changed. Okay, and after checking those dependencies, The report will generate an XML report. Okay, now who will write so much again and again? It becomes a shared library and he comes here. has gone beautiful Sundar dot sfer current directory yes I said the same how many of you understood this Stage S Well, if there is any problem with the current directory There is nothing wrong with the current director. No, he is doing great Dega Stage Sonar Cube Code Alice Where Shade named SonarQube Analysis Have you used the Sonar library? What is the name of the hat tool Wanderlust of the project Name is fine, now I have to read it further, Sonar Go to Cube Analysis's Shade Library And read that with Sonar Environment SonarQube API which is also You have also mentioned the name of that sonar. Scan with the sonar tool you had at home. for the project name and for the project key If you want, scan by the name Wanderlust Look how many of you are getting it that I Which is hard work and I put it here and I just call that thing here doing It did not come Code with SonarQube environment means what you You will scan it through the sonar cube. For this you need SonarQube API what is SonarQube API It's Just a Variable Name If I had written Mask Ali here, he would also have Variable name becomes but what is pro main So what is being passed to this variable name? what is being passed to this variable name The sonar is passing and what is it? Sonar this S capital O N A R what was this There was a tool that I set up and gave it to you guys so that it is available on SonarQube server If he takes the thing, then whenever he takes the thing What will he do? He will use the sonar scanner to It will scan the project and run this thing. will give now this thing I made a shed and here But I have injected it, how many of You got the syntax for code analysis. It seems and It's okay these things are meant to be that you every Checking quality at one stage Checking dependencies File system check How many of you are you doing it on every stage Are you getting this? I can just explain it. It remains to be seen when this demo comes and it becomes clear that Okay, so right now I'm just going to tell you Explaining the syntax I don't understand, just tell me Syntax is coming or not coming Now what is the quality of Sonar? Get Quality Gates what happens when you enter SonarQube If you go and visit the Quality Gates What is your code coverage? Is it 80? How many duplicate lines do you have? It's 3. What maintainability reliability rating How much is this so this is my quality gates These quality gates I've got on the Sonar Cube But it is already made, it already comes. It comes installed, I'll show that thing here. But just I am driving, I am driving, I am waiting for quality Get is a Groovies Ch Just Checks If Your Quality Gates are passing and Not Simple Syntax to Check If Your Quality Gates Are Passing and Not Coming I understand And he just needs to focus on code quality here. call me What this will do is give your code coverage 80 Is there a duplicate line? Is this the only thing that will be checked? just a little more No, nothing much Yes brother, the library that was built and a little Difficult fix Look at the mindset of this man, this man or So whether it takes you to the peak or sinks, see now. [music] Come on, for whom did I make this, Mandar? What was made for lace? I have this tell me how many of you have watched this deaf say with cups How many people watched the video Deaf to Cops Wala watched the video Cops from Dave How many people know that you saw How to scan sonar [music] How do sonar scans do all this? How many? of you know T here is the mill Gaya ha how many of you have done this is such this big big big The script is whatever the script is. e predefined syntax remains a syntax okay a The syntax remains the same when you Gavi Syntax for SonarQube as Junkin writes If yes, then you know a syntax which looks something like this with Sonari Such a quality get time out wait for Quality gate so this is pre defined The syntax I externalized I gave it and here I injected it Diya it's a no brainer it's a no brainer meaning understanding this It wasn't what you were thinking about. copy and paste this from c Tha this sonar cube quality is this ya wait For quality gate that you don't understand This is a junkie Syntax is Here it is with SonarQube environment Wait for quality get this is just syntax Correct I am happy or I still have to research this. You picked this up from Jenkins' documentation. Can Yes, I understand what I'm doing now. I'm saying that I externalized it. It happened that I picked it up from the documentation and I have pasted it here, when you see it in actual If you drive it, you will understand that it is useless. I was interrupting him, this is just a copy It was a paste, no problem, now this Look, okay, I understand. how many of you got this I know why it's not coming Because Train V Shubham Co on My Dashboard But I told you about batch six. I have to read one thing, Cha is Noon S Def Seps With Jenki How Many of You have completed How many people have done this? So many People have done that, they should not ask such doubts. These are the Ovas but I have already seen all this. taught I'm teaching you something new right now. I have already taught it to I have externalized it, now copy paste it I'm doing just fine Let's move Move forward Forward or copy again How to Control C How To control and teach Go ahead and No ok Vaibhav Vivek is now exporting environment variables. Back End Environment Setup Front End Element what is this setup bhaiya what is it This Asu what is this Consider it gone that this is my project Lust is its back end I'm going to show it to you via Docker Compose. explains okay so VM Docker Compose look at this How many services are there in the project? DB Back end front And how many services are there in Redis? Total four services in this project The name of the mongo DI container is mongo service Image Name Mango Latest Volumes Back It has picked up volume from the end data OK and expose this port number How many people got this service cleared? that a MongoDB container from this service becoming Is Now back And container name back and build dot sl back And this line has no meaning, this line has no meaning Can you tell me what the build is next to the dot I have written sl back end what is the meaning of this line Hey Let's C Vaibhav Entyre This man's concept is shaken Everyone is bronze, what does its build mean? when do you build in docker hi Someone said it right, wait, wait, someone said it Khushboo is right, my docker file is inside the back end folder this is the meaning of this file This Line Aa So when you build the back end container Yes, the location of its Docker file is Let's read this big ARG CD now. What is an environment file? Dr. Back and DAV Dader what does it mean what does it mean it means back Finally, an environment file The IP address in that environment file is The port number is related to its environment. There are specific things if I If I run it, my IP address will be different. If Nishant is on his computer If you drive it then something else will happen to it There are some variables depending on the environment. How many people understand If it comes, then this back end folder has a dot in it. Invi docker is some variable like mongo db Key URL: Redis Key URL: Port: front end url this cookie this something There are some environment variables that affect this written in the file So what is this Jenki stage? does Update back end What is the environment doing and updating it? The back end environment is designed to Tell me what is this IP address? 1822 4.72 54 what is this what is this IP Whose address is the public IP address of Etoo? IP address Now mine The node of this cluster What is an IP address 13.5 22417 where I want to run it IP address is this is this IP address and This IP address is matching Is Otherwise, if I build it Let me docker build it So this It will not work, it will not work That's why there is something known where is the age That's why there is something known as a DirectoryEntry Updated front end New so if I have to understand the back end environment A script to update the variable If it is written then look at it, VIM update back end New where you just need an instance ID I have to put it in, I mean let's give it to me, master. node is mine ok what was the name of my master node It was automated, this is the master node, its IP The address is 18.10 2 39212 this IP address is on my side have to put Where is this new Dakar, what will I do? Address Updated back and new I'll go to this instance ID. This will copy the ID of this instance and copy the instance ID and I'll go here and paste it, so instance What will be obtained from the ID? The ID of the instance Get the IP address of that Situ instance from and I'll go to his back end folder I will go into the file containing the ghusuk and from sed to sed How many people know what this is Said what is said Stream editor so you can edit any file If you can edit it, I will go in and edit it. Going into the particular back end element Docker Replace my previous IP address. Tax I will give you how many of you got this Automation I entered the instance ID Instance Key ID will not change, IP address will change After doing this and the instance keeps happening what will I do dot sl Update Back and Nude S enter updated now look at git Status Can You See Back and Navi Docker is change git Def Joe The nun who used to be this, now she's become that. I will have to see why she became a nun. But instead of what it was before, your IP will be The address will come up Why is line number four in the set command? Wrong instance ID in the set command Have you picked up the batch seven server? I would have picked up this one of mine. The server is down from the batch, poor thing. That's why when that problem occurred, I was VIM Updated back and new Go and update me on whatever IP address to do do it like this Let's run this Wonder Less Node But okay, let's run it on Wonder Less node. This is the IP address of the Wanderlust Note 13.5 I copy its I instance ID did paste here escape call dub k dot sl date back and new updated git Diff 13.5 aa Went Easy Easy Ab Same Automation VIM I'll go into the updated front end DS and Update the instance Give No, you don't have to provide the instance ID. So here is my instance. I will give you the ID Di and Dot Slush Update Font Ad This is done, I will check it in Gut Diff now. I that my front end url and back end key Both APIs have been updated. Can you see This Yes Vaibhav, will you take my life? Watch Update Back & New Watch Very Attention listen from instance id is a variable where You need to provide the instance ID. What is an IP address? It's again a variable that In AWS to describe instances If you give the instance ID, you can You can query and get the public address. You can get the public IP address. So I got the IP address, now what do I do? I am doing whatever I need to update the file I am giving him the path, what am I doing now? I am looking at the current URL that my Whatever is the line number four in the file There is a file in it which is the fourth line, why Because I hard coded it like this It has been done that particular same line So I can get the IP of this you can use Regus Can you also do anything that has a pattern off some digit dot digit dot digit dot If the digit has four dots like this then you You can get it done from him also, I have done this just to save A Ninja of Extracting Time Current URL Technique has been removed Now I am checking if my current URL is And if my new URL is not the same If the current URL and the new URL are not the same If it is there then find the file and leave it if it is same If it is there then leave it, if it is not there then find the file and update with the new IP two what class are you in I mean, I'll teach you shell scripting again. I'm feeling strange because Look here it is written which class do you study in At this level you Otherwise you are going right to deps you If you need to go, look carefully. Read everything I've written here. ok so everyone understands what is The Use of This Script Environment File Is it okay to change the IP address? Escape Colon W K Enter How Many of You Group This is what this script does for you. Changing the IP address of the environment Let's get it simple, come back to your Jenkins pays how many of you think that back To set up the end environment and To set up the front end environment I have provided the script you need here. driving I am coming Went Done a t-shirt from me for Vaibhav too The number of questions asked by brother is of different levels. But asked since last it is okay, obviously it is right It's all about when you experiment yourself. Then you will understand, try it now. Understand why parallelism is as common as possible Ltd. Parallel is written because you are doing two jobs You can also run these in parallel if you remember. I taught at Git Lab. Git Lab I taught you if you have three If you want to run something parallelly in the environment You can write it in parallel to parallel The task is to execute both at the same time. You will be just to save time getting It will be running in two stages simultaneously. Correct is the Docker build images directory back end docker build This image name is whatever you want to use with docker You will enter the tag, this is your username front end docker build this image name whatever you tag How many people will you explain this to? I need what is Docker build what is docker build you guys me Tell me what is docker build If it is built, I also know that but Is this thing this Govi ​​syntax here came from docker build which executes the docker build command runs internally and whatever the username, whatever Project name, whatever is included takes it shared Library is shared code. push to docker h docker docker push again tus How many people understand this part of the shared code? Here comes Docker Build Damage and Docker push yes there is a thing docker to push what about yourself what do we need to push Let's get the credentials build so on docker hub Go to Docker Hub After that go to my account settings ok and here on the personal access token Go and generate a new token here. Please name the token something Batch 7 Mega Jo You also like read write delete Give access and generate Two, here comes your personal access token. Copy and paste it somewhere, it's done Tell me where you have to give the token. where to give is absolutely in the credentials Enter correct credentials and go to Global On credentials Let me go and see what his name is. What If yes, then username and password username what is yours train with Shubham What is the password that will give you personal access? Copied the token Tha ID, you do the description Docker Brother, please give me this ID Docker Why did you give Why is it because in a shared library If you go and look at docker push, the username What is written in the password credential ID? Happened is Docker written I understand what he will do now. credentials wherever it is Once I get the credentials, I will enter my password. what am I What will come in the password Docker Hub The password will come. What will come in the username? The train will be launched with Shubham username and He will log in, give the password and he It will also push how many people will understand this thing I come in I checked my Docker credentials put it in Jenki so that it can do this thing Correct How did you do all this manually, it was so easy, right? How are you doing automation now, brother, tell me. It's been three hours since I've been automating it. If you are automating then this is how devs It comes through manual pain Automation is absolutely a one-time activity. You only need to do it once and never again. Okay, that's why I named it Mega Project. that you have to do it all at once Make a project then you can use it ok understand I come in Gone is the push to Docker. Success if this pipeline is successful. What If it happens then whatever artfed is there will be saved. And a build job will be done Wander Less CD A new build will be triggered so how to trigger New Build You Just Write The Keyword Build and the job name and whatever your parameters are. yes that's fine how many of you understood This is how many of you understood this line pipe What percentage of Indians will get this pipeline? I understood it's a big pipeline Corporate pipeline butt understanding. is the group copy it Brother, do the last build, last build I mean, I'll tell you there's another job. Joe CD Job There is a continuous delivery job because here But anywhere you see Kuber Niti's Anything is mentioned Is there any mention of Kuber Niti or anyone else anywhere? No mention of deploy or docker run or anything. CI is just Continuous Integration. To Check If My Quality Checks Are Past My images are build CI job this is a The bar ends only if it is successful. CD Karo How Many of You Got This is if this success happens then only CD CE Happens Then Only CD Will Happen Understand, let's go Just copy this who do you go to? and create a new pipeline which are named Wanderlust CI because CI is pipelined I would have done OK are this description this is the ci pipeline of Wanderlust Wanderlust CE Pipeline is Old bits are discarded because We are saving storage, keep it for one day only. And keep two builds to the max from it Don't keep too much or take some 36 36 Create the build and then upload the screenshots. Is this the hard work of how many of you Adding screenshot of scene t 50 60 build There is success in the last one so it Good, obviously it's good, but it's not storage Efficient okay so B storage Efficient now just want to in git project You can enter the URL of your project by entering yes I also entered the URL of this project here. Now if you want automated, you You can put SCM but you can parameterize it. If you want to enter build parameters then you You will have to manually insert atlist and tags If you fall then there will be no SCM will pipeline script this is pipeline Copied the script and pasted it here How many people were given the entire pipeline? I understood the script how many of you have understood this pipeline script and here just do any Two because we didn't use nodes. People should understand the entire script. came Gone 50 No, how many lines should the script be? How many lines would this script have been? planted Nishant, this script can be easily read in two lines. If it had been made, someone told me in the chat. Tha please do a project with 500 lines Jenkins Pipeline Does You Think It Makes Sense, how many people are feeling that yes friend I was also in that category who said that How many people with 300 lines were I? I will reverse the recording and tell you how many People said this I told you something, brother, corporate pipeline. Make a 500 line junk How Many of You You understood in your heart that yes friend I only I did not eat it, it is a different matter but someone else did. So I told you, so I am telling you that this Cheese does not need ina pasan The need for efficiency is correct you need efficiency in your Pipeline No Lines of Code OK Save have it done Overall, we have to focus on quality and not The Quantity is OK Done CE Pipeline I also started looking at the CD pipeline. See also Hand CD Pipeline Take So let's go to Gittops to get into Git After that a junk file is kept again shared Library Agent, I'll change it. Parameters: How many people clear this stage? Have a clean workspace Clear Checkout Code Clearly, this is just to print the Docker tax. so that I can see on the console that Which version are you running ok and that's it Docker image tags are done, okay, this is also done. Clear Update Cuber Nits Manifest what is it brother Now tell me what is the function of Argo CD? what is the work of argo cd someone me Can you tell me how much I Explained according to Argo CD what is the work of Let me show you a diagram so that it is a little easier Sa Easy Read Argo CD work case file update It is not to be done Colors are the work of Argo CD from GitHub Taking the manifest file to the cluster Deploy your manifest files Updated is that how we Will Deploy Depends on the Manifest File If We Do a Continuous Delivery CD of manifest files and argo cd no manifest file to take I have been deployed, I have just been automated by someone You have to update it in the same way as this update Argo CD will pull its files He will do it and send it to my cluster. Kuber will tell me what I am doing here. Updating the Nities manifest Inside That Said Wanderlust Back End Beta Change the tag to back end dull What is the back end? I tell you dull I mean, when you look at the Kuber Niti's inside it You will see that DIR Kuber Nitus means Kuber in a directory named nits Enter the directory named Kuber Nits Go in there, the back end is kept there. If you need this version update in the backend have to do So whatever your image name is in the back end is whatever tag you send into the CI pipeline That tag is back end dal update So if I have version two in CI Dala then Gittops Practices through Kuber Which version of the depl in the nits cluster Gotta tell me version two The deploy pipeline builds that version She will push it and call the CD Kuber. The old version that was in the Nity's manifest Update it and put version 2 Argo CD will pick up that version two and Diploidy End Simple understood how many people The Hum Log version came into the CI pipeline. will put from lats to that version of tv through ovas through Scan through sonar That version will be built and scanned How many people understand the CI pipeline? How many people understand this CI pipeline? has arrived First Kapil, you understand the CI pipeline. I What is a CI pipeline and what does it do to you? takes a version as a parameter Builds, scans, and builds on Docker Only the one who pushes his image Tha builds, scans, and Docker Once pushed to Docker When I went here, I triggered the CI job. which will save the version of the Docker image on Git Argo will update that updated version The CD will have bridges and the Argo CD Kub On Nitties Why is this CD a deployment pipeline? The pipeline is because Kuber Niti's Where did this go? Yes, this Kuber Niti's The manifest file is back In that, the wanderlust back and beta, this The image is its version, that's what matters Will update its version which CI The version you put in the pipeline and the CD The pipeline will update git hop and if git updates to hup then argo cd cluster Deployed in your own lines in your own Words Explain What CI is Doing And tell me what the CD is doing, explain it. Take a minute or two, I haven't read anything. I am not teaching anything, look. What will it do after that and now git will push hop p whatever it is it will push git hop Fifth note of musical scale Tell me, I didn't understand the version part. No, what you understood write a line I did not understand the part about Kunal's weight. Write whatever you understand and not what you don't understand. I will explain it later but what I understood right now So tell me what you guys understand Is What CI does right now is build images. Scint push t to Docker now versioned in CI what is the need tell me Vivek what is the Significant Off front end docker tag ya which version hai na What about the front end Docker tag tags Hey everyone, it's significant B You guys what is the use of CI and CD tell pipeline ci build cd update end There are only two people in the class and the rest are Let Me See How Many People Are There are more than 100 people but only two People Are Saying Ci Taking the Code CD Delivering OK CI Docker Push Def Sec of CD Deployed CI git clone dependency check Code Quality CD Update Via Argo CD No no I just used the CD pipeline asked in this pipeline Argo CD these words There is no What this pipeline does is just so much to me I want to know what this part is. Doing Diploidy Palay wrong this this pipeline Rohin is updating the Deployed Hub. You are right, this is just updating the tags. CD Replace environment variable incorrect Environment variables are replaced in the CD not only is the environment variable we use in CI were replacing Ojas Tejas Making Manifest File to be Used In Argo CD is the answer I was Expecting Tejas is preparing the manifest files that the version received from CI Joe Tag from CI I got that version, we are getting it ready. Git Hub Okay, so here we just update You are doing bad things even if you read and say I would be happy even if you don't give it to me It goes here and only updates are happening. Has manifest files What happens once the files are updated? what would happen then Then the code is updated and pushed to git. How to get user with credentials How many people remember the name and password? Is This Git Hub credit how many of you remember what this git Hub He will bring the credit from me and take the token. What will commit the element variable Will update and push to my repository But okay, push to my repository. He will finish me once he pushes me Kuber Nities manifest file updated Then on to Argo CD. handy git tool name Bhai normal git git Normal okay this is now once this is done and My updated code is in git up Then came the Argo CD, bringing it with its manifest. Deployment is simple with Git Hub Getting the manifest file onto the cluster Diploidy is not replicating because only Delivering the code, brother take this This This is not found anywhere in Deployed Agra It is written that Jenkins is going to eeks I wrote Argo CD is taking the git Repo and then going to ES Jenkins code and Update all versions in the Git Hub repository will put and Git Operations Argo will hen it is known as Wt group Ops now by making the mistakes of scolding the scolding How many of you understood the real definition Off Git Ops real definition of gitops not yet Will you forget what is Gitops Gitops I am In which the code is basically pulled from Git Hub Repo and Git Lab Repo and Thrive Repo Server Tools like Argo CD directly rely on The Git Code Not Any Pipeline No One Else And the operation of that thing is just here and Only two people working with your git and Argo CD on the plate This is the work of giving to us by putting it in our hands. did they Chacha Give Big Round of Applause for Chacha Y What is their job? To serve you what you want. Updated tags y ok I understand it How many of you I understood How many people have understood this far? updates and the manifest file simply git will put it on hup and my argo cd So connected to Git Hub from here Deployed Aayega Wanderlust Application Has Been Updated End Deployed Wander Less Application Think about yourself, not about everyone else. Nishan Wanderlust application has been updated And deploy when it will come it will come when My Pipeline Success It will happen, but what if my pipeline fails? I will also get an email from my friend about wanderlust. Application Build Feld in understanding I asked what is the role of deps in the pipeline So she should go, she will go but if It has failed so what If it happens then it will go No, how many of you understood, brother, tell me Gave Come on, copy it, that's all there is and this By copying I create a new pipeline in Jenkins would have made hmm new item Pipeline Wanderlust CD Watch Now CD Capital, why did I write the name like this? Wanderlust CD because the CI pipeline If this is mentioned in the build job name then this name Mention I did not understand the CI pipeline In this junk file, CI, and If this pipeline is successful then Do a build job. A promoted build of the CD. to trigger it so it does Now it is simple in this also this is the CD of Discard Wanderlust Old Build Keep one day's build, keep two builds, max two In Max and pipeline script this is my script And I have kept the agent on a single server. So Annie, how many people understand? How many of you understood How many people understand each stage? I What Steps Will Thorets Manifest? The script will run where the name Kuber Niti is written. directory entry of [music] Gagi entered inside her, what will she do next? Will edit Wanderlust back and beta Whatever tag is inside, it is used in the back end. If you update it in DL then the back end will be DML. Updated the name of Wonder Less Back & Beta in Tax I will give it okay Done Save it Tell Lou or email guy if this pipeline Success is success if this pipeline is Success So email text attached log what does this mean happens in your email which is part of the pipeline There are logos, they will get attached, how cool is it That the log file is being attached automatically Email Text Logs in Extension in Email Will be attached from train with Shubham whoever My email ID is Subject wonder a update deployed when if. If it is successful and whatever the build number in it Even if there is a failure, the mail will be sent. Build that Wanderlust application with Logus Fay understands There is a template, it can be created quickly using GPT. It's okay, no, you can make it from many things. ok save now Look what has happened to you, Varal CE Vandal CD both become correct yes or no both become paid But this is the Argo CD Diploid CD Diploidy Your Y in Argo CD application Who is the cluster? So this cluster, this one, in which this Argo CD is a two-node cluster. If you have to connect it together then you can connect it to Argo CD. Go to Settings > Clusters Go to Kabar Niti Default near it's default Does it have a cluster of wanderlust? It will deploy if the cluster is yes or no. So I had to create a cluster, cluster add I will have to tell you how they do the ad. tells So first of all you I have to log in to Argo CD. OK. If you have to login to Argo CD then This is the URL of Argo Sady 1358 This is the URL to log in through. It happens with your username admin whatever Log in with your username Enter OK Certificate error because No HTTPS, will you proceed? Yes What is the password to do? Whose password was this? It was for Argo CD. The server password is Enter admin logged in successfully context Updated login then my Argo CD The CL that has come is with my server I am logged in now what do I do? I will do it now argo cd cluster list I would look at Which clusters do I have? I have the default cluster. If I want to put a cluster of Wanderlust then what should I do? I will name the cluster of Wanderlust first I will take it then cube ctrl Gate Context Whose Cube Seattle's Joe I will get the context from it. So that I get the name of my cluster Current Context Astic Name Terraform Admin to Wanderlust to Ked Come How Many of you know how to know your cluster How to find out the name of Do you understand how to find out the name of the cluster? from cube ctl conf Context Take will get the name of Take Taken Now Argo CD Cluster D Now this is my cluster I want to add him and give him his name. What wise cluster of lust whatever e k s whatever me I can enter the name you want. How many? of you understood This fire CD doesn't know where I am But I logged into Deploy and gave it my I am naming the cluster ok It is understood Aya enter do you want to create a service Account for Argo CD Manager Yes Yes Now Look what that service account is doing. Argo CD Create Cluster Role Argo CD CreateDrawAnaNavigator CuttedCreatedDocumentsFragment How can a booty access the cluster? Many of you got this part. A role called Clear Argo CD Manager built into your cube system and Gave him access so that he could deploy now if you go over here and Refresh If you do, you will see Your cluster will be created, can you see it? This Your Wanderlust Cluster Is Now added how many of You Got to Know How to Add a Cluster in Argo CD How to do a cluster in Argo CD How many of you are getting value from This session is a heavy session brother, but once If I apply for this session then I will be here for all the years and months to come It's no year, invest your time in new things. Learning Implement Kar Loonga How Many Of You're getting value and how many people still I am full of energy, it has been three hours. I'm muttering how many of you are still in Energy what's the matter let's see let's see How many people have energy, Madhup? Energy Ankit na energy very good Vinod and Tejas, Sachin, Vivek, Uzma and Shashank Ajay, these are the people whom we all remember. Friends who keep that in four hours of class He was sitting and he learned everything, Javed Khushboo Rohan Good job Rohan you have given all the answers No matter how many times you gave, three or four times you chatted would have done the right thing Gave Nice Sapna join what a thing so it's good Ojas Super Amazing Amazing Now let's do application what is an application If you add the application you will get Argo CD's through pass Diploid New Let's create a new app called this application Let's put wanderlust okay cool small sa name Keep the Wanderlust and Project Name as default This is the sync policy, that's the whole game here. I have automated it so it will be yours syncs with git up How cool is that you tell Jenkins Get up updated Get up updated Argo CD has launched Kuber Niti's should prune resources meaning if something Delete old resources yourself The heel automatically picks up the old one Take a selfie and OK auto create name Space, if I have any application, its name Space created file I am Nishant Bhaiya and CD Nishant has come there I'm going to kill you, what's going on? What kind of people are they now, I'm teaching them. did not read Rahe Sir Ek Argo CD Ki Class Pagal Mein I am teaching I understand here Nishant why you You are distracted, you are not paying attention OK are you Understanding the Class of Argo CD Why not keep it because it is going on I understand that this is a Application created Wander List Project Name Default Sync Policy Automatically, okay, automatically I'm syncing. I am feeling the sale of my code cluster if an application accidentally breaks If it happens then the image from the old cache will be played She is using it Selfie, a T-shirt, auto create here too namespace here if your namespace If there is no Kabj in the manifest file then this It should be auto created, okay, now let it remain Give me two sources, what should I put here? I have an application Tell me diploid Now tell me what to put in the repository URL Hey, I will put this boy Shubham in my repository. One that I already kept connected so drop seen in down Revision means branch branch is mine, main this put the main Path Kuber's manifest file is on which path It is kept in this repository Tell me in the repository where is the file of Kuber The name Kuber is kept in Kuber in the path from in the folder of so I will say in it Kuber Nits done Which cluster should I be on? Which namespace to deploy to? Wanderlust name space but it's okay Now it's done for me Tell me my application whenever Which port is deployed to? When my application will run So on which port will the back end run this file What do you think when you see Kuber Nits On which port will the application run? Chalega back and low everything Wrong I am so proud of you this happiness I might need Meditation I Might Need Uday Bhai by Uday I Don't meet Uday Bamal I mean control Uday What is control written here, what is this Kuber Niti's on which port It will still work, Nishant is saying 808 now. Send me your address, I will do home delivery. I just said 8080 despite saying so much Bhai means brother next level Pay Legend Kuber Niti's Pay Aap Node Port Pay Jab You run something on service and if you The thing has to be accessed The Target Port is what's inside the What is a Pod Node Port? Tell me outside how many people understood it How many people feel that this session is needed? Friend, I was not revising properly. Why did I remember the physics one? is not happening Understanding the study Yes, you have forgotten me right now. tell me which front end in front end The port must be running on the net. For hey now Uzma how is this 5173 so that is the target port So you are doing it intentionally Yes, I understand that what is this note Port Note Port I The port is specified key This is Who This namespace contains the selector front and is associated with diploid Which ports should be exposed? Karegi Sabko T-Shirt Chahiye Good One Sab T-Shirt I am able to understand how many Of you can revise the Kuber Niti's end to end project session where we A diploid was created in which notes were kept. The port number was 8000 and now it has 50 pods. It could be port 8000 for 50 pods Where will we reach then all of the pod's Deployed with a service Binders' node strips are exposed So that exposed note pot will become 3100 I am happy now what will I do? Now watch what I do very carefully. see this 3100 which is the note pot of the Wanderlust node I went to the security group and attached it. In whom will I give the security of Wanderlust This is a group, whose node is this? This is my If there is a node of the head then this 31000 is this front end I will add it after doing P and what was the back end? 31 100 Go and see this front end ad Done and I went to the back end and this back The end is 31 100 so here 31 100 back And brother, why did you expose the back end? Because I need you to be this cool This thing is to show that the back end is running so done okay so back end P Annie Where Save Rules Be Went Done Gaya how many of you understood that Kuber If you have leftovers on Nits, now leave it, I will I am not explaining how many people understand I came to know that there is no one for Kuber Niti Why use node port for service? Note ports are generally above 30000 If the port remains then all the people He would have said 8000 even by mistake in this answer. I understand you were rejected from the interview. Why were you rejected from the interview? You were asked by the interviewer Kuber Niti Which port does the application run on? 8080 It's over, bye bye, okay, I understood. Here Tak All Good Everyone Cool Great node port is use for external Pats Correct Ok Yes, create it. Application should I create this application which I made one called Wanderlust, which I am putting the source here and its I deploy to this destination Argo CD only needs two things. We need a source and a destination. It happens, it creates am yes have gone It's gone, that's it was Went Now let's start the CICD pipeline. How many of You Want Me to Run a Sea CD Pipeline for this will come bugs Will come too I should definitely come because for the first time When you build You will do it when you build it for the first time. Did you add parameters? Yes or no, if not then what What will come in the if condition? It was written in this condition that if there is an error then go here. Wander less CI pe error ko dekh lo kaisa Looks ok now build with parameters Click on the Docker tag of the front end What is the front end Docker stack needed for? Needed Tell me what docker tack v2 back end is needed tell me put this also v2 put on build Two Now this OVASP is for dependency check downloads some files for which It takes you 20 minutes only for the first Time Gating It Ovas takes 20 minutes for the first time I understand what that is I mean, let me pass 20 minutes of time. Tell me how many of you follow Naman Arora Naman Arora Otherwise listen to any joke of Naman Arora. Two Dude, any one joke, Naman Arora Yes, show your face so that we can know brother You see, it went so viral for the first time. The man didn't hear him coming towards me. to the heart I folded it but I did not fold it, I did not fold it. Haven't you heard how epic it is, man? Haven't you guys heard of this? India gets latent and this is what happens This episode is going viral It is a very crazy show, you should not watch it. Look, concentrate on your studies. Okay, yes, he is very crazy brother. It's crazy, well, this thing, if you're in the logs. If you go, you will see that it is coming here. Downloading 61000 records How much time will it take 20 minutes It will be useful if you provide the API of NVD. If you give it, it won't take very long time. Looks like NVD's API is expensive. We will tolerate it for 20 minutes, but will not spend any money. I will do it, okay, I understand. Getting it means while Pisces while what If I Tell You How to Set Up Grafador that Grafenberg India, we know how to utilize Correct use of time, full use of hours use any of these Learn what to do with yourself here. Hai Towards the end Madhu Bhai Our best post is here Where is Prometheus? Y now Don't throw the parcel box, we are with me Why is the box for this chair still there? I don't know it's okay Don't ask why, now watch How to Monitor Your ES Cluster and Your Kuber Nits Components and Workloads Using Promg Fana, first of all understand this thing that Helm is a package manager so how many of You remember when we were Grafna and We were installing Prometheus. through Docker Compose and every time we People scrap in Prometheus Dame Confident because our Docker Using Sea Advisor for application Node Exporter for the node exporter were using it for someone else and used it for something else were doing but if I know that EKS What This ES is a Kubar Nitus Cluster Service by amazonbusiness.in [music] Why edit again and again yes and no when I have to Know in a namespace of Cuber Nits There is a cube system and in the cube system everything The system monitor is the API server. The API server handles all connections. System Proxy Cube Proxy Network If he sees things going out If I know all this, then do I Prometheus Yamal I'll put all this confine already, yes. Or not if I know what that confine is Yes, I will already put it correct, so helm In this Prometheus's confine already nugget Hui Here is the promise for this case in Helm The value of is already entered, so what should I do? I will go and first look at the Helm chart. The tool is Helm, install it first. I have already installed it, okay It's been get held as it is so get held S is installed if you cut it and get it If you go to Held S and see Hem Wrote the install script I haven't seen the script explained yet No one will ask why this How the script works is up to you. Run the script and install hem yes It will be fine, you just need to run the script. Get him and he has to download him. will do and install Dega how many of you can create such Script to Install Junkin Docker Kubernetes Nitus Tell me how many people can make such a script. which has shal script and only in that The command is written, thank you How many of you can do You will make this, I think it is Madhup's one Maybe someone from Madhup So a repository Where everything is, there was something I have forgotten. Gone is the Dev tool He did all the installation here. script prepared so how many of You can do something like This is a good way to contribute to this Repository to install Hem Chart I did a butt here on Argo CD's How big did you write for How many of you can do something like that You can make this project open source. Contribution: How many of you can do this? script OK Get Hem Installed Now Hem Repo d stable okay this stable a repository Where all the stable applications are there His list come fine stable Now in that I am Prometheus Community, this I have a Helm chart and am going to install it. ok done with this helm repo add prometheus Community What's happening to me? LM Repo I have a list of Prometheus's helpers. The charts are here, now if you look at this If you go to the hem charts of Promus All the Prometheus codes OK, whatever code you have As Now I am not going to explain all this. I'm going to do it, there's no need to do it as much as There is also code, all that is written If you need to connect Promus to Redis If it is there then what will happen for this, all that is also written It happened that someone was asking me, isn't it node? How will exporters add everything to this? Given Redis Exporter RabbitM What is Node Exporter? See Node Exporter Everything is given in it, so it is open source. Contributions are what people need to do It should be automated and easy, so people If you contribute, what about yourself now? If all this stuff has arrived, then do I need it? to another node exporter and sea advisor and anything No, because everything is Helm Chart. How many of you got this him what is a chart kube manifest file and all the values ​​are co one Click Install I Got It Getting It Now what do I have to do, I just have to Start installing the chart So first Prometheus creates the namespace The name Prometheus became the namespace of the name Key Cube CTL Get Namespace A Name I lift it into space to see Whether my promise was made or not, my promise was made. Good did anyone notice that Wanderlust Also made is Did We Create Wanderlust manually Did we create cube ctrl gate? Who did not namespace who made it Jenkins did not make it, Argo CD was made. Okay, so Jenki doesn't have that much access. hota helm install stable prometheus install community prometheus All installed now by tap tap tap tap Will go to hell install Prometheus Community In the Name Prometheus is big so it takes time A little more similar to how you went to prom I installed it, you have to install it. If you want to do it then can you see Prometheus? Diploid Prometheus Bun If you're Prometheus's If you look at the parts of Promus Running Yes and No Prometheus Running How Much It was easy brother, why did we spend three hours in it? In this you took three minutes Told you to understand this in three minutes So it took three hours, okay? how many of you are understanding this Promise I installed it so ok now I I will see the service of Prometheus because I need to access it too Neither Prometheus's where is the server All those cluster IPs on what I cluster I can access the thing on the IP What will I do if I can't do it? Stable Prometheus who is to his service edit it I'll give it to you okay, which is the stable Prometheus I will edit his service. I will give you a patch and I can also do it. Okay, edit. By doing this here if you want load balancer you You can do a load balancer here if you want. port so you can do nut port okay Escape colon null key enter Prometheus service has been updated Similarly, you have to verify That Prometheus service update So the service Prometheus got updated 3245 This note is ported similar to yours Grafana service should also be updated. ok update the service of grafana also Give it to me and I'll do it here. Gaffa Notep Updated now Grafana again See the service lo to not port not pot grafna so when you When you install Prom, Grafana is inside it. There was also a package of which means whatever the mml file was If it was also of Grana then both are R na Installed How Many of You Want to Access This Now 3094 and what is the port number here 3245 Let's go Which one should I go in? Tell me which security? in the group I will go to the master node or I will In the security group of this cluster owner I will go Tell node cluster ones very good let's three You are coming right after an hour I will add people here. What was 3245 Prometheus then 325 Promus Anyway, what else will I add? 3949 No 309 49 Grafana Anywhere Save Rules Now add a new tab in this case. I will give where I will give this IP address Which port should I use on this IP address? I will drive Port of Tell Prometheus 3245 3245 Enter and your Prometheus set Don Cool Prometheus setup on the cluster Open a new tab like this and here you will see what to do of Grafana 3949 3949 Grafana enter boom grafana also installed i what did you tell Tha email username will be admin but The password is not admin. Password is not available here. You will have to pick it up from the gate secret Grafana password will have to be lifted so prom The operator password is its prom operator password its never Save how many people have set up I have taken it, I haven't done it yet, but how many people understood that an ekes cluster How is Prometheus and Graf set up? Show me a funny thing, what's the funny thing? I haven't seen Prometheus and Yamil anywhere. Edit What is a promised dull in which you You haven't set up scrap targets yet, have you? You go to the status target Go can you see as many cuber knits as you can The target is everyone has attached themselves You see this is the power of these charts that whatever this thing is or your You are attached, how many of you are Finding This Helpful Drop a Boom in the Chat because energy should not be low Brother aha aha no no No, the entire system will be monitored. We will shake you up today, come on, great, very good Very good, go and see us now. The pipeline is still 17 You could have extended it for a little more, three minutes. Any talk how many of You Are you finding this beneficial for me today? Nice session, in today's session we From Terraform to Etoo to Security From groupies to junkin' in Dave to cups Mailing Gitops Observability Kuber nits hum people ne the whole Deps Poona Deps Palata Pad Laster correct now How many of you think for this you can do a Simple small task, first of all you have to do this thing to be implemented how many of you Think They Can Implement This Project It took me four hours, you probably one hour. It may take two days, but how Many of you think they can do this. How many of you can do this and how many people The module is one two three four six. I told you things I've covered six of Did You Even The way you explain, thank you so much Thanks a lot Madhu Madhup nahi pura banaya hum So we just did it beautifully If you have explained then how many of you think that friend you can give six modules to someone else teach You will teach someone else happening to So I'm just sharing this with you Link In this link if you want today's session and I liked the previous sessions so There is a link called TW S Love Show Some Love If you give me a review, it will help me. To do more of such things so thanks in advance You say I am for this so if you are Wishing or If You Feel Definitely a review Let me know how you like the classes. How do you understand it Hai Vaibhav Don't Give Negative Review T-Shirt You will get it right yes ok Well, the pipeline is not built, brother, this is It's taking too much time, friend, but it will be done. How long does it take the first time? Address I don't know this at first build run Went And okay, let's take as much time as it takes. Let him take it and see what percentage he gets. covered oh it's almost done it's 99 But almost done almost Done on 99 brother, skip this stage Why didn't you do it, how can you do it, friend? It's over, I had to wait for 20 minutes, I did it. Wait, let's start with the Sonar Qube code. Analyzing SonarQube Code Quality Gates Quality Gate Checked SonarQube In Go to the project Go drop a b in the chat if you understand How did the project which was not in Sonar come? Gone are his bugs onebill code smells all Things checked out Is Getting Amazing Docker Build Images What does it take to push to Docker Hub? and if pushed What I have my phone yes can I get it on this phone Email I don't know whether he will come or not, but let's Hope for the Best, I am enjoying seeing this pipeline. How are you coping with the deaf? You are doing CI here and further Go and CD too You will see that it takes time to build. First time because it was completely from scratch If I am building then time in the first time takes It is the totally summer and most awaited event of batch Sen, I told you, you people don't you believe it Dude show the console output ok Brother O Like who knows you are sleeping inside We need to see the console output, can you do that? what are you doing inside then console output I can see that whatever clean up happened earlier Then came the repository, then the TV file system. Whatever was scanned was done secretly. There was a forest bill, it was detected, whatever way S has high vulnerability Brother, now to whom will all this report go, developer? To All this will go Happened OK Owas check files downloaded then Processed after download to be After dependency check Analysis has started, fine analysis has started Happened Collecting Artifact Passing File Dependency check report generated SonarQube Environment Woke up again this is the SonarQube server 9000 Go to that and make this thing, this thing of wanderlust project and then all these things happen Python code quality gate seen in Go All the codes and quality check of all the codes happened again Whatever the report was what then became Every line, every file was checked. They looked back and checked every single file. Did Have you checked it in depth brother? Now the analysis has been successful and the report has been sent. Created a SonarQube task in SonarQube Quality Gate OK came and passed Automation file ran in Wonder Lass CI Environment Update Happened [music] Okay, a dubs I did not confirm what I did Hoga you can confer could able to locate credentials are ok check this ok Running in a very junk workspace Docker build happened what happened with docker build Well, these are test cases that written in the pipeline Integration Tests Get all featured posts here Update has been posted Oh my god, a lot has happened now with Docker build. Hua Wonder Less V2 in ok successfully tag front end also tag Done, logged in as well, he did docker push also do There should also be a push on login Gaya Finish Success O! Nice, it means if I check my Gmail Karu Wonder Less Application Has Been Updated Deployed Success Two Minutes Ago Wow it's cool it's cool But we checked the pipeline logs. while doing something You see, that thing should not be ignored. What I Feel able to locate credentials in your card Running AIDS Confer Now what AIDS Confer is We will not do it in the pipeline. So there was a small step which I missed. where is he If you look at the step in the beginning then You need to attach an IAM role to Jenkins. Tha look at two ways you can do AWS You can confide in an AWS confider And secondly you can do So let's create an I am role on this instance. I am on I Am okay I'm going to go over and get a roll made I will take it and make a roll that I I will make an ad service and I'll put two in it okay two I will create a specific role for the instance So that the AWS conf error If you don't come then you did the next one now in this Grant administrator access I will give it, I have not mentioned the role name anywhere. Next is the role name EC to Wander lust roll this I will make a roll so that The E2 instance will get access to The AWS Confer thing and just create the roll When I did it, I was told that my EC was two. Wanderlust Satu Wanderlust Wanderlust Roll Mil Gaya Mil Gonna roll this over to me on my master node I will have to attach it to the instance I will go brother, I will come today after removing the bill. I have an automaton called my master. Road was his actions will go security. I'll go and modify I'm rolling just That's all I have to do and go here. I was that role of EC to Wanderlust. I will take that and update it. How many people understood that this happened? What was my etoo instance where it The thing was going AW S he is unable to confirm the credentials So what I did was roll that instance itself I gave it to Bhaya, did you understand what AIDS it is? To grant device access Who understood that AWS Confer did not work, enable to locate cut then What I did was I deleted that instance itself give a roll Dia how many of you got How many people understood this when we AWS confers So the shell is the one that gives its command prompt The shell remains and it gets access but Jenkins user doesn't have this access When I found him, we gave him the role. Now I What should I do now? I'll run this part again. I will build with parameters in version 2.1 I will run the version 2.1 or whatever version it is, I will build Now look how much time it takes to build It will not work because OWAS has been downloaded. So there is not that much time It will seem so, yes it is also called Ajum roll but That's a different thing, STS Ajoom rolls by It happens, okay, so you are watching now in Owas. Just 1 second Why should I do this because I have already downloaded it. Have done all I understand the thing Now what I will do is now I will look at its logs I will check This scanning and vening completes it. where that environment variable will now reside updates the Can you see running automation? Bash update there is no such error of able to Locate AIDS Credentials how many of you get it how to solve that How many people understand the error? Gone in short this documentation from above Follow me below it got It Cool, how many people understood this completely? Follow the documentation for any errors. Whatever problems you have, they will all be fixed. I will go brother, my job is to make a man Whatever error comes, whatever error comes, as it is for me too come You should learn only if you want to, otherwise you should learn. No, otherwise you will do the same thing, this step. would have skipped Then I'll tell you, hey, skip that step. If you do, it will be okay Let's version 2.1 pushd version 2.1 push ok can you see Scheduling Project Wanderlust CD Wanderlust CD Project is Now Scheduled means I will go to Wanderlust CD Can you see automatically it is triggered Automatically, I did not even touch this CD. Did automatic ticker now give me this Tell me, have I done anything in the last hour or four? In an hour, anywhere on GitHub committed Some? No, but if I go to my project Jenkins updated environment variables Now f Means This is the environment variable that is updated. Argo CD updated variable a minute ago automatic lift Lee & Argo CD full Diploid taxa How cool is that I did on the Argo CD I didn't say anything to anyone, I said everything to anyone. This one lasted. Done how cool is that if it doesn't happen then you can Anyways refresh and it syncs ok can you see this it is Let's start syncing brother, right now our application How does it look, show it to so many people? Do you remember what the port of the application is? 5173 If you say so, I will come home and give you the T-shirt. Tell me what is the port of the application front end is 3100 31000 This sign cannot provide secure Do not run the connection o HTTP s Run it over HTTP and then you've deployed it. Your Application Using Git Ops Dev Sec Ops Mega Project is Done Guys, thank you so much, this was the last four. Hours If you see the Yum tutorial in an hour remained If it is, it is very like it is very possible but this Four hours to explain things Lagte ts Correct Text Fore Hours Show a Funny Thing Look at this Now this Dove Yes, I did it right, right? right now what I do I do something beyond this would change I am on the front end of it I'll go to the source of it and I'll go to its pages and I'll go to its home page. I'll go to the page and do it. I will update and write that batch sen is Amazing and I will commit to this, commit Now I've committed this, I'm just I will tell my Jenkins that brother Junkin I've committed something His version 2 Fifth note of musical scale I did not change the back end at all. So let the version of the back end remain 2.1. Remember what the version of the end was? Back end What was the version of this, such that every tax would have come Yes son 2.1 okay 2.1 let it be like this Build how many of you found Deps fun that Friend, I took a decision two months ago that Should I do devops or not? In between there was de-motivation that job in devs It is not in the app, it has no influence. He came and said something and it happened somewhere. I came for the interview and I am not getting any calls. I got an interview and I was getting rejected but at The end of the day, the fun is here only As Shubham said, I am enjoying it, so whatever It's fun isn't it, he's here, errors come Problems arise to solve them It's fun, isn't it? It's right here, can you see this? I'm automating Docker images. Didn't even touch the server anywhere has full power Automated OK How are you liking deps means as long as you You won't love Depps. Until then you won't understand why Whatever is happening to me is fine It's whatever it is, however it's happening Why is this happening, you don't understand it You will find it okay so loving Depps ya pre I understood the request, how many of you I think I might have received an email here. Wanderlust Zero Minutes Ago Success Oye Hoye yes Run Success Very Interesting Application to be seen 3100 Argo CDs Can You See sucked a minute Ago sucked a minute Ago how cool is No touching now let's try to see If our batch Sen is amazing and Don't Drop a Boom in the Chat If You Understood The End to End Pipeline Project This was the mega project for This was the mega project for you where But you can build a three-tier application with the help of devops. Through Practices Deployed this is how you do it I know it Might have been tough brother, how did you post all this? You go to create post. Blog Title Do You Wish More and More Students to Learn Devops Blog Content You your thoughts Vim author name vas wale bhaiya bhaiya bhaiya If I have been to only one place in this entire world, then I I'll pick this up, I'm gone. Select Adventure was posted Blog Blog Post Successfully CreatedDocumentsFragment More and More How Many of You Love The Project How Many of You See Another Thing brother brother not now not now can you Grafana's Through Dashboard In the namespace of my Kuber Nitties Show a dashboard of the number of pods yes, can you see this, can you see this can you see This is how cool it is This is how cool it is This is fun, I enjoyed it, so all in one. You can build everything on the spot, see the pod. You can have whatever pods you have on the back end. Deployed, we just did one thing Sorry, not the back end, you go to the front now. in the end Go where is it, can you see the front end? Why is it not visible anywhere I can't even see the front end name. It will not happen here only, okay, so back end this But it is going on, right? Just check once if This If This API Is Working For You Just check once low workloads He made it all himself have come Yes, so can you see, someone here right now If you all used it too much Suddenly he grew up and said, "You can take it for the last." F minutes increased or decreased in the last few minutes How much network did the transmitted packet cover? How much Wallace name space oh a good one so here you go and you can See this back and pay last no second in cum It's done but now it's fine, can you just do it? Again, I'll give you a URL where Gone is my URL You just have to go to this URL and create a post. to do Yes brother, junk auto cut should definitely be done on commit. It is possible but you have entered the parameters The project will run if the parameter is removed. You see this, can you see this in real time? Monitoring of Application real time monitoring of your Application nice how many of you Enjoyed how many of you enjoyed today Session Today Session B Do you know who liked today's session the most? enjoyed it Who enjoyed it the most? will know There is Vaibhav, there is no Vaibhav now, it is there. It's over, I haven't pulled it any further. I enjoyed today's session the most Why would Madhup Bhai know? Is Because I tell you it was Madhup's Birthday Now I gave Madhu a birthday gift Otherwise I thought what gift should I give, so I Yesterday I played a prank on Madhu and said Brother, the project you made is not working. Brother, you are in so much tension Dude sorry Sir, look brother, how much tension I really saw Brother enjoyed it so much that I got tensed, look brother. I started crying, oh sorry, it was a camera prank. see this see Camera In the morning I told the mup not like this I will call you early in the morning at 7:00 am. Madhu, I did not wake up at 7:00. At 7:00 pm I got a message saying Sir, please hang up. I said that I had not woken up for half an hour. He said that he has done a prank, now he will do this. Is it just a small gift, Madhu, don't worry? about that so a big shout out to Madhu for This amazing project thank you thank you so It was a lot of fun, who enjoyed it the most? will tell let's go through the whole project okay Thanks everyone, thank you so much, while leaving one small And I will just do it for you at the end of the project Go and after going to the end of the project you just Have to do one small thing which Is E's Ctl Delete Cluster Wanderlust In your particular region, let's say if you If you have created it in the US East Region, then US Should I delete it or give some screenshots to someone? Some? should delete Don't let me spend any more of your money enough Let me give you some screenshot pin shots. Do you want to take something from here or there or something else? Can you send the logs you received via email? If you want to see it, you can also see whatever logs are there. They all give you You should not do it like that but if If you you go some It's like you're messing something up here You blew this script out of the script. gave it and saved it What if you ran this pipeline? Gotta know So what If so, you will receive an email Saying what If a mail comes with the name Build Fail, then I Only the build failed one was showing no one else not a scene Okay, give me a history. Gives history before deleting the bar Am So We wrote only 100 lines of history. People thought it would be 400-500. It's okay today, look at the hard work. No Karni History I will give you this history. Here Ok Done Featured Post Kaise Aayega Ha Us Pare Kaam It is running and is currently on in process, so if If you go to the dashboard of Wonder Lust The build has failed and if you want to know more about it please contact me via email. Fifth note of musical scale You will go brother, the email did not come but the build failed. You should get an email, no problem on that. The fix will work fine Oh, it's not working at all This pipeline is not working, it has no error. Came Well, you can try it in the open blue ocean also. Can Ho Same Pipeline looks a little prettier ok look same pipeline your wanderlust It will look a little beautiful just like this It's raining and here's something else. There is no Blue Ocean Nothing much, you should have received an email. Dude, I Showy Feld it comes like this Wanderlust application Build failed I tested this last night It just came out that I did something by mistake. If you haven't failed very well, That's why it has happened so I too will come and say ok Think of it from my side, I just want you to Let me delete a cluster that Wood B It Butt good I failed him very well, I did not fail him. What more excuses can I give? Let's go to the US. Delete my East Wanderlust cluster Brother, the cluster should be deleted. And the next thing I want to do is It's a little emotional but we'll have to do it anyways how many of you are Ready So Batch Seven Server habitat Sus to be terminated Boat [music] So thank you everyone for attending the batch [music] Sen is here Thanks for staying in the video What more can I say now, come on, thank you so Not much serious it was very fun learning Deps with you I enjoyed it a lot Some? And this is what I will say and what else, this is your We can use Terraform to install the server. through At this server police station is ours Terraform We can destroy it through destroy. can okay that is Yes, I'm going to be able to see you over here. Practically speaking, the work of DAPS was It's over here with your new things. LinkedIn Workshop Done Resume Building Workshop Done How to Appear for an Have an interview workshop Gaya Dos Things Will Be Conducted Now On For you L But batch sen official over now means where Learning is the part of devops syllabus part so thank you thank you so Much everyone I'll see you in the Lincoln Resume Workshops Let's go to a shop, somewhere, or to your home Many will get it somewhere, what's in it Hai Chalo Thank You Thank You Everyone and Sorry If I never get angry sometimes I say anything, so I think this time Vaibhav is the only person in every batch. So this time Vaibhav was the person who got The rest is gone, no hard feelings, you all are happy. Ho you all are just amazing so thanks a lot For that this I messed you up a bit Master before cluster destruction Don't make such a mistake. But he must have gone there, that delete mode. If you go Cloud in formation stacks so that delete in goes into progress so I did I had given that there is no scene, it is okay, so I hope You must have liked the video till here. I started sweating, which meant it was the next level. Jenkins in One Shot if you liked the video So do share it with your friends Because the entire junkin can be covered in 6 hours. If we had taken any one incident as a topic If you have gone then tell me in chat. You have the email address You have the chat I have you just a little one over there Click the subscribe button as well. So that our family can grow further and We were able to get to 100 quickly so here Thanks for staying in the video Keep watching Train vs Shubham channel, thanks for watching
If you want to learn Junkin in a single video
and want to become a devops engineer
You have come to the right channel because today's
In the video we are going to see that
In one shot Jahan Pe Hum Log introduction to
Junkin and CICD are the ones to watch.
How to Setup Kinect on Virtual Machines
Where we are at A W Eat Instance
Jenkins is going to set up Jenkins.
How the UI Dashboard looks like on Uspe Jobs
How to make a freestyle project
How to write decelerator pipelines
Like in production, multi
Agent Multi Node Jenki Agent That Also View
These are for people with some experience.
How to write shared libraries
And if you want to become a devops engineer
If you want, you can have role based access.
Authorization: All these things are required by the user.
Management seems to be watching them too.
And if you've stopped here in the video
So take projects to the end where you
We are going to do the CICD project.
There are Kuber Niti's on Argo CD and its
Dave Seck will monitor Prometheus.
Ops which is an aspect of security
Junkin' that's also going to be covered in this
where we are going to meet TV Sonar Cube
All the things you'll do if your pipeline fails
If it happens, you will also receive an email notification.
If you come then all these things will be seen in today's video.
It is going to happen in 2019 friends if you have watched the channel
If you haven't subscribed yet, do so immediately.
Two, because there are so many deps
I'm going to bring it in the videos and if you
If you look carefully, I have written a lot of
Debs has also created tutorials.
Prepare engineering projects
There have been so many that you are very
If you can avail the benefit then subscribe immediately.
Do it too, let's get started
What is Jenkins? Understanding Jenkins
First you should understand what CICD is.
Let's see how each one is doing.
There is a project in the organization
Okay, let's create a project on GitHub.
What is Git Hup? It is a tool where
You can store your projects
It is now used for code management.
The project that remains on Git Hub
If the developer writes the project, then who
Developer writes Now developer this project
Code push
Lets build this project now
That happens on Docker for builds.
We use Docker, so this is on Docker.
The build takes place and then an ECT
Instance Pay or any AW Pay
We are deploying this Kuber Nits cluster.
People can use this on ec2.
Diploidy
Do we monitor Applause?
What do we do? We monitor.
let's use Prometheus okay
Prometheus monitors now next
Time whenever the developer pushed the code again
It will be built again
If it is deployed then this thing will not be continuous.
what should be what should be
Continuous Continuous means one after the other
This thing should happen again and again and this thing
What happens if your build from let's
If he fails, he will not be able to get further deployed.
There will be no problem but if your build passes
Done, you can immediately take it to production.
If you want to deliver it, whatever is the time to market
time to
Market, it has to reduce its market
has to be reduced and who reduces it?
The DevOps Engineer You Want to Be
What is the work of a devops engineer?
Now to complete the process in minimum time
All these things like code build, deploy etc.
You can automate this, right?
You can automate this using a tool called
Jens, what is Jenki's job? Jenki
The job of is to automate this whole thing
So, if your code comes, it will be built.
That will be the test, that will be
The monitor will be built back and tested.
If it is deployed then the symbol of Deps would be
If you have looked carefully, a
Infinity is infinity where your
The code happens
Build
Test End
One of the deploy build test and deploy
It is a very popular symbol and because such a
There's a tool that lets you do that because
There is a tool that gives you a CI CD