ASP.NET Web application deployment on Azure Kubernetes Services through Azure DevOps CI/CD | AKS

  Рет қаралды 26,463

DevOps Mela

DevOps Mela

Күн бұрын

Check out my new course and avail early up to 70% discount: www.udemy.com/...
Azure Kubernetes Services:
Agenda:
ASP.NET Web application deployment on Azure Kubernetes Services
through Azure DevOps CI/CD
Flow:
ASP.NET Web application creation
DockerFile creation
Push changes in Azure Repos (Along with DockerFile)
Build and Push Image (ACR Repository)
Deploy (AKS)
Creation of deployment.yml and service.yml files
Commands:
// This will allow to track new POD creation
kubectl get pods --watch
// We will then install the kubectl tool
az aks install-cli --install-location=./kubectl
// This allows kubectl to connect to the Kubernetes cluster
az aks get-credentials --resource-group devopsmela-rg --name devopsmelaAKS
Pre-defined Variables:
$(Pipeline.Workspace)
The local path on the agent where all folders for a given build pipeline are created.
GITHUB Repository: github.com/sma...
Prerequisite video tutorial references:
ASP.NET CORE Deployment Series: • ASP.NET Core Web Appli...
AWS DevOps: • Complete end to end un...
Azure Service Connection: • Azure Service Connecti...
Website: devopsmela.in
Instagram: @DevOpsMela

Пікірлер: 107
@prabakara1652
@prabakara1652 Жыл бұрын
while everyone teaching basics you are teaching practical implementation which is the one every company looking for. Kudos sir
@DevOpsMela
@DevOpsMela Жыл бұрын
Thanks! For the valuable feedback…
@Dharmendrakrktr
@Dharmendrakrktr Ай бұрын
Thanks for sharing video in very details and step by step. appreciate your afford
@DevOpsMela
@DevOpsMela Ай бұрын
Welcome 👍🏻
@milindbhanushali9181
@milindbhanushali9181 2 жыл бұрын
Good Work Rohit ! Really appreciate the way you put in efforts to explain each and every detail. I was also keen to understand how you can implement the scenario you explained now in blue/green deployment slots, kind of a robust platform. If you can create an extension for this video would suffice ! Thanks again and keep up the good work !
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks! Milind for the valuable feedback will try an accommodate the above suggestion…
@Annishvarma
@Annishvarma 2 жыл бұрын
very good and nice explanation. I am learning a lot from your videos. Plz, do real-time scenarios also it will be very helpful.
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Sure!! Thanks for the suggestion…
@ghanshyam014
@ghanshyam014 Жыл бұрын
Your every episodes are Super se upar 😄
@DevOpsMela
@DevOpsMela Жыл бұрын
Thanks! Ghanshyam…
@harishh4464
@harishh4464 Жыл бұрын
Thank You so much Brother .Your Videos are helped Me a lot. Im from Bangalore .
@DevOpsMela
@DevOpsMela Жыл бұрын
Great! Thanks for the valuable feedback…
@arunleo83
@arunleo83 4 ай бұрын
your videos are really easier to understand
@DevOpsMela
@DevOpsMela 4 ай бұрын
Thanks! for the valuable feedback
@muralichandra3244
@muralichandra3244 2 жыл бұрын
Good work Rohit. I have a question. I want to do the same for Angular application. Is all settings are same?
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Hey Murali, Yes, the process remains same you just need to edit DockerFile steps for creating Angular Image.. Thanks!!
@mohitsinha7236
@mohitsinha7236 Жыл бұрын
Great work!! Very helpful for the community.
@DevOpsMela
@DevOpsMela Жыл бұрын
Thanks! For the valuable feedback
@vijayideas7762
@vijayideas7762 2 жыл бұрын
It is a very easy way...that you have explained ...nice video
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks!!
@thareus20
@thareus20 Жыл бұрын
Hey Rohit. I am doing a Uni project where I want to take one of my own .NET EF Core Applications which uses an SQL Database, and I want to deploy it to AKS using an ARM template and Azure DevOps Build & Release pipeline. I already accomplished this when deploying to App Service via ARM template (thanks to your video on that as well), will the same type of procedure work for deploying to AKS as well?
@DevOpsMela
@DevOpsMela Жыл бұрын
Hi Thareus, Deploying Application on App Service and on AKS is different for AKS deployment you need to have manifest file (Deployment.yml and Service.yml, docker file (To create image), would need ACR to store your image, so these are basic pre-requisite and there are more it but atleast this will get you started… Thanks!
@НиколайБеляшов-в6к
@НиколайБеляшов-в6к 2 жыл бұрын
Nice Video! I am just learning and I have a question. what should I do if I need to start k8s in private cluster with jumpbox? How it change a pipeline?
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Hi.. could you please elaborate more on what exactly you trying to do? Are you trying to setup k8s? Send your query on devopsmela@gmail.com with more details regarding the issue.. Thanks…
@anandanmariappan2751
@anandanmariappan2751 2 жыл бұрын
Very Very Good Explanation. You are really Cloud Hero....
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks!! Anandan
@vineethkumarbompally1715
@vineethkumarbompally1715 2 жыл бұрын
Very Well Explained but running on MS hosted agent is not acceptable in companies right Y can't you add your own self hosted agent for running the jobs
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Great thoughts Vineeth and I do have video created where in I have created self hosted agent and ran pipelines…do check
@vikashts4472
@vikashts4472 Жыл бұрын
Hi , I have one doubts , we are giving the docker image details in manifest file, it will pull automatically from ACR if they have connection , then why there is again you added image pull task ..?
@DevOpsMela
@DevOpsMela Жыл бұрын
Hi Vikas, Basically the task was added to create service connection automatically… Hence by adding we can be assured that there is no image authentication issue Hope that helps Thanks!!
@shashankshukla1148
@shashankshukla1148 Жыл бұрын
You didn't show the deployment pipeline and their tasks. We only saw the artifact creation pipeline but where those artifact's are being used in CD was not shown i guess
@DevOpsMela
@DevOpsMela Жыл бұрын
Kindly check Azure DevOps playlist for more in-depth understanding of CI/CD…
@AlexanderFarber
@AlexanderFarber 2 жыл бұрын
Great video, thank you. What does the environment line mean?
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks! For your valuable feedback And environment is nothing but collection of resources that can be targeted while deploying through a pipeline..
@vijaymunavalli335
@vijaymunavalli335 Жыл бұрын
Cool stuff...! Nice content and presented very well..thank you
@DevOpsMela
@DevOpsMela Жыл бұрын
Thanks! for the valuable feedback
@vidyasagar3079
@vidyasagar3079 2 жыл бұрын
awesome explanation bro . Really grateful to u. hope u will do more real time videos on azure devops.
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks! Vidya Check my channel playlist I have complete playlist created on Azure DevOps..
@techgalary
@techgalary 2 жыл бұрын
Very good and simple explanation and great videos, Thanks for creating this
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks for valuable feedback..
@pawansolanki20095
@pawansolanki20095 Жыл бұрын
Hi Rohit, While creating a service connection i am getting error "You don't appear to have an active Azure subscription". Even though i could able to create AKS and ACR. I am using free azure account. Any idea what could be possible issue?
@DevOpsMela
@DevOpsMela Жыл бұрын
Kindly check replied to your email…
@kiransonawane2940
@kiransonawane2940 2 жыл бұрын
Awesome explanation .....superbbb
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks! Kiran Do like, share and subscribe
@tejendergoud254
@tejendergoud254 Жыл бұрын
Thank you Rohit, can we have any asp .net application deployment with database connected using any web-server, basically a 3tier architecture , if you have already deployed something like this please do share the link.
@DevOpsMela
@DevOpsMela Жыл бұрын
Sure! Thanks for the suggestion…
@ghostlearners5374
@ghostlearners5374 2 жыл бұрын
GREAT VIDE WITH SIMPEL UNDERSTANDING , KEEP IT UP !!
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks!!
@surajpardeshi6083
@surajpardeshi6083 2 жыл бұрын
Hello, Really nice video. I was trying to follow the same but i am getting error in last task i.e Deploy to Kubernetes cluster. It runs for 10 mins and then fails due to timeout. Below is the exact error "error: deployment "samplewebapp" exceeded its progress deadline" I had created basic aks and azure Container registry on portal. Any idea what could be the reason?
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Hey Suraj, kindly share the complete logs with yaml files on devopsmela@gmail.com
@surajpardeshi6083
@surajpardeshi6083 2 жыл бұрын
@@DevOpsMela hello, thanks for the reply. I did some analysis of my files and in deployment.yml i had to update the Containerregistry name with my registry. Tried running after that and it was successful. Thanks for such a good video and for the efforts you are taking to make it. All the best 😊👍
@hanumanthreddy873
@hanumanthreddy873 Жыл бұрын
Hi, Can you please make a video deploying an Angular application with Azure pipelines
@DevOpsMela
@DevOpsMela Жыл бұрын
Sure!
@suribabupolnati9879
@suribabupolnati9879 Жыл бұрын
Hi,thanks for video iam facinf below issue what need to do /usr/local/bin/kubectl rollout status Deployment/samplewebapp --timeout 100s --namespace default error: deployment "samplewebapp" exceeded its progress deadline ##[error]Error: error: deployment "samplewebapp" exceeded its progress deadline
@DevOpsMela
@DevOpsMela Жыл бұрын
Hello Suri, This is very generic error, the most probable reason for the failure could be the cluster is not able to fetch image from ACR.. Check it by connecting to the cluster manually and running deployment and service file manually… Thanks..
@student_voice
@student_voice 2 жыл бұрын
Thnks for videos... ❤️
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks! For the feedback…
@oldmonk5600
@oldmonk5600 2 жыл бұрын
Hi , i got some error while running deployement.yml. Can you help me on that ..##[error]Error: error: deployment "samplewebapp" exceeded its progress deadline
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Hello Mayur, Kindly confirm, if your providing a namespace value or using default? And send your .yaml file on devopsmela@gmail.com Thanks!!
@nitindagar664
@nitindagar664 2 жыл бұрын
Amazing work brother!
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks! Bro
@SureshP-ds3nh
@SureshP-ds3nh 2 жыл бұрын
Thank You Very Much
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks! Do like and Share…
@sonikashyap4804
@sonikashyap4804 9 ай бұрын
Wonderful ❤
@jeesan2006
@jeesan2006 Жыл бұрын
hi Can you please make a video of ASP.NET Web application deployment on Azure Kubernetes Services through Github Actions
@DevOpsMela
@DevOpsMela Жыл бұрын
Hey I do have a video created on the same, kindly check the Git playlist…
@user-su7hx1rd9s
@user-su7hx1rd9s 2 жыл бұрын
Thanks for the video.
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Welcome!! Do like and subscribe..
@lokeshrudra8588
@lokeshrudra8588 2 жыл бұрын
Can you please make a video of AKS backup and Restore…. Thanks !!
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks! Lokesh for the suggestion..
@manikantanarcot2727
@manikantanarcot2727 2 жыл бұрын
I am trying to deploy following your video but getting error as (##[error]Unhandled: Input required: kubernetesServiceConnection)please help how to resolve it
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Hey Manikantan, have you create service connection?
@Ashutoshsingh-gj6vg
@Ashutoshsingh-gj6vg Жыл бұрын
next time when we commit some changes in our repo then how image name will updated in deployment file
@DevOpsMela
@DevOpsMela Жыл бұрын
You can version images accordingly… And call the version in your deployment file
@kavacham222
@kavacham222 2 жыл бұрын
Thankyou for the video. Can we send message to a group of people in gmail when a build pipeline fails?
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Welcome!! If you can create a DL in gmail then well you can send it, if there is no restrictions..
@kavacham222
@kavacham222 2 жыл бұрын
@@DevOpsMela ok thankyou for your reply.
@kavacham222
@kavacham222 2 жыл бұрын
By the way howcan we create Distribution list in gmail? N intergate with devops pipeline
@raghur5678
@raghur5678 2 жыл бұрын
I want to add test results in pipelines and if its is success or fail i need to send Mail notification to the Admin, how can i achieve this ?
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Hey Raghu, You can add sonarqube break task, based on your custom gate rules…when the sonarqube analysis task fails it will break your build pipeline and an notification would be send…by Azure DevOps itself Thanks!
@raghur5678
@raghur5678 2 жыл бұрын
@@DevOpsMela Thanks for the quick reply as always.. Sonarqube Break Task i cant find in Task search. shld i install it from Market Place? Is there anyother way other than this?
@MrAnshul13
@MrAnshul13 2 жыл бұрын
Nice demo.
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks!!
@rishabhkashyap7084
@rishabhkashyap7084 2 жыл бұрын
Loved it
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks!! For the valuable feedback..
@Sports_Encyclopedia
@Sports_Encyclopedia Жыл бұрын
thanks bro
@DevOpsMela
@DevOpsMela Жыл бұрын
Welcome!!
@vijaybhaskarful
@vijaybhaskarful 2 жыл бұрын
Very Nice...
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks!! For the feedback..
@RajuAzure-r4d
@RajuAzure-r4d 10 ай бұрын
nice bro
@DevOpsMela
@DevOpsMela 10 ай бұрын
Thanks! Bro
@gkmishra2009
@gkmishra2009 2 жыл бұрын
pls create video for Logic app
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Sure! Govind
@sUryaJoj
@sUryaJoj 4 ай бұрын
please give yml pipeline
@DevOpsMela
@DevOpsMela 3 ай бұрын
It’s uploaded too Kindly check the Az 400 playlist
@rama5453
@rama5453 2 жыл бұрын
Can you please share the link source code
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Kindly check the GitHub link in description..
@saikumarlokas6409
@saikumarlokas6409 Жыл бұрын
Hi Rohit, Firstly very much appreciated for the videos you are creating with your valuable time, I have one error when I am trying the implemet the same process of Docker file into AKS, its related to dotnet restore command , could you please throw some light on this. Thanks in advance... Determining projects to restore... /usr/share/dotnet/sdk/5.0.408/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(141,5): error NETSDK1045: The current .NET SDK does not support targeting .NET 6.0. Either target .NET 5.0 or lower, or use a version of the .NET SDK that supports .NET 6.0. [/app/WebApplication1.csproj] The command '/bin/sh -c dotnet restore' returned a non-zero code: 1 ##[error]The command '/bin/sh -c dotnet restore' returned a non-zero code: 1 ##[error]The process '/usr/bin/docker' failed with exit code 1
@DevOpsMela
@DevOpsMela Жыл бұрын
Hey Sai, thanks! For the feedback Kindly confirm the dotnet version you are using, the error is very specific to dotnet version mismatch…
@saikumarlokas6409
@saikumarlokas6409 Жыл бұрын
Yeah Rohit I resolved it by upgrading the Version .. Thanks alot for your time appreciated…All the best and I have shared your channel to many others…
@saikumarlokas6409
@saikumarlokas6409 Жыл бұрын
one more issue like : when I tried to run the external IP cant reach the server so I digged to find the status of container ,it shows like below warning Warning BackOff 86s (x8 over 2m39s) kubelet Back-off restarting failed container is that something am I missing anywhere in the code..(used same code which provided by you)
@rama5453
@rama5453 2 жыл бұрын
/usr/local/bin/kubectl rollout status Deployment/samplewebapp --timeout 100s --namespace default error: deployment "samplewebapp" exceeded its progress deadline ##[error]Error: error: deployment "samplewebapp" exceeded its progress deadline We are facing this issue after watching all things . what could be the reason
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Hi Ram, Looks like the pipeline is not able to fetch the image in default namespace… Share the complete info on an email to understand the issue more Thanks…
@rama5453
@rama5453 2 жыл бұрын
@@DevOpsMela : Thanks your quick reply . Can you please share the example blue green deployment recording if any
@shivarajpujar4642
@shivarajpujar4642 2 жыл бұрын
Hi, same error I am getting. Please let me know if you got the solution.
Microservices Deployment to Azure Kubernetes Services (AKS)
47:12
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 30 МЛН
Deploy a web application to Azure Kubernetes Service (AKS) cluster
18:44
Azure DevOps Tutorial for Beginners | CI/CD with Azure Pipelines
36:29
TechWorld with Nana
Рет қаралды 1,3 МЛН
How to deploy .NET apps to Kubernetes
12:02
Nick Chapsas
Рет қаралды 78 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 306 М.
CI-CD for Azure Kubernetes Service AKS using Azure DevOps
24:47
Houssem Dellai
Рет қаралды 68 М.