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

  Рет қаралды 25,291

DevOps Mela

DevOps Mela

2 жыл бұрын

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/smartrohit/samplew...
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

Пікірлер: 105
@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…
@techgalary
@techgalary 2 жыл бұрын
Very good and simple explanation and great videos, Thanks for creating this
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks for valuable feedback..
@mohitsinha7236
@mohitsinha7236 9 ай бұрын
Great work!! Very helpful for the community.
@DevOpsMela
@DevOpsMela 9 ай бұрын
Thanks! For the valuable feedback
@ghostlearners5374
@ghostlearners5374 2 жыл бұрын
GREAT VIDE WITH SIMPEL UNDERSTANDING , KEEP IT UP !!
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks!!
@arunleo83
@arunleo83 Ай бұрын
your videos are really easier to understand
@DevOpsMela
@DevOpsMela Ай бұрын
Thanks! for the valuable feedback
@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…
@vijaymunavalli335
@vijaymunavalli335 Жыл бұрын
Cool stuff...! Nice content and presented very well..thank you
@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!!
@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..
@anandanmariappan2751
@anandanmariappan2751 2 жыл бұрын
Very Very Good Explanation. You are really Cloud Hero....
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks!! Anandan
@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…
@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…
@nitindagar664
@nitindagar664 Жыл бұрын
Amazing work brother!
@DevOpsMela
@DevOpsMela Жыл бұрын
Thanks! Bro
@sonikashyap4804
@sonikashyap4804 6 ай бұрын
Wonderful ❤
@kiransonawane2940
@kiransonawane2940 2 жыл бұрын
Awesome explanation .....superbbb
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks! Kiran Do like, share and subscribe
@user-su7hx1rd9s
@user-su7hx1rd9s 2 жыл бұрын
Thanks for the video.
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Welcome!! Do like and subscribe..
@student_voice
@student_voice Жыл бұрын
Thnks for videos... ❤️
@DevOpsMela
@DevOpsMela Жыл бұрын
Thanks! For the feedback…
@SureshP-ds3nh
@SureshP-ds3nh 2 жыл бұрын
Thank You Very Much
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks! Do like and Share…
@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..
@user-tm6cd8sg5l
@user-tm6cd8sg5l 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…
@user-pj5hh6cu4z
@user-pj5hh6cu4z 7 ай бұрын
nice bro
@DevOpsMela
@DevOpsMela 7 ай бұрын
Thanks! Bro
@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!
@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!!
@AlexanderFarber
@AlexanderFarber Жыл бұрын
Great video, thank you. What does the environment line mean?
@DevOpsMela
@DevOpsMela Жыл бұрын
Thanks! For your valuable feedback And environment is nothing but collection of resources that can be targeted while deploying through a pipeline..
@shashankshukla1148
@shashankshukla1148 11 ай бұрын
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 11 ай бұрын
Kindly check Azure DevOps playlist for more in-depth understanding of CI/CD…
@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!!
@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!!
@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…
@surajpardeshi6083
@surajpardeshi6083 Жыл бұрын
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 Жыл бұрын
Hey Suraj, kindly share the complete logs with yaml files on devopsmela@gmail.com
@surajpardeshi6083
@surajpardeshi6083 Жыл бұрын
@@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 😊👍
@manikantanarcot2727
@manikantanarcot2727 Жыл бұрын
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 Жыл бұрын
Hey Manikantan, have you create service connection?
@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…
@lokeshrudra8588
@lokeshrudra8588 2 жыл бұрын
Can you please make a video of AKS backup and Restore…. Thanks !!
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Thanks! Lokesh for the suggestion..
@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..
@Ashutoshsingh-gj6vg
@Ashutoshsingh-gj6vg 10 ай бұрын
next time when we commit some changes in our repo then how image name will updated in deployment file
@DevOpsMela
@DevOpsMela 10 ай бұрын
You can version images accordingly… And call the version in your deployment file
@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
@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
@hanumanthreddy873
@hanumanthreddy873 Жыл бұрын
Hi, Can you please make a video deploying an Angular application with Azure pipelines
@DevOpsMela
@DevOpsMela Жыл бұрын
Sure!
@raghur5678
@raghur5678 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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?
@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…
@gkmishra2009
@gkmishra2009 Жыл бұрын
pls create video for Logic app
@DevOpsMela
@DevOpsMela Жыл бұрын
Sure! Govind
@rama5453
@rama5453 2 жыл бұрын
Can you please share the link source code
@DevOpsMela
@DevOpsMela 2 жыл бұрын
Kindly check the GitHub link in description..
@sUryaJoj
@sUryaJoj 2 ай бұрын
please give yml pipeline
@DevOpsMela
@DevOpsMela Ай бұрын
It’s uploaded too Kindly check the Az 400 playlist
@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 Жыл бұрын
Hi, same error I am getting. Please let me know if you got the solution.
@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)
Microservices Deployment to Azure Kubernetes Services (AKS)
47:12
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 18 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 192 МЛН
.NET 7  💥  - Deploy .NET Apps to Kubernetes
51:38
Mohamad Lawand
Рет қаралды 19 М.
How to Create a CI/CD Pipeline in Azure DevOps
54:27
BestITCourses
Рет қаралды 3 М.
How to design a modern CI/CD Pipeline
9:59
DevOps Journey
Рет қаралды 107 М.
Deploying an ASP.NET Core 3.0 Web API on AKS
26:08
Julio Casal
Рет қаралды 24 М.
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 10 МЛН
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 5 МЛН
iPhone 15 Pro Max vs IPhone Xs Max  troll face speed test
0:33