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

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024
  • 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 ปีที่แล้ว +2

    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…

  • @harishh4464
    @harishh4464 ปีที่แล้ว +1

    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 3 หลายเดือนก่อน +1

    your videos are really easier to understand

    • @DevOpsMela
      @DevOpsMela  3 หลายเดือนก่อน

      Thanks! for the valuable feedback

  • @Annishvarma
    @Annishvarma 2 ปีที่แล้ว +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…

  • @anandanmariappan2751
    @anandanmariappan2751 2 ปีที่แล้ว +1

    Very Very Good Explanation. You are really Cloud Hero....

    • @DevOpsMela
      @DevOpsMela  2 ปีที่แล้ว

      Thanks!! Anandan

  • @vijayideas7762
    @vijayideas7762 2 ปีที่แล้ว +1

    It is a very easy way...that you have explained ...nice video

  • @milindbhanushali9181
    @milindbhanushali9181 2 ปีที่แล้ว +3

    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 ปีที่แล้ว +1

      Thanks! Milind for the valuable feedback will try an accommodate the above suggestion…

  • @vijaymunavalli335
    @vijaymunavalli335 ปีที่แล้ว +1

    Cool stuff...! Nice content and presented very well..thank you

    • @DevOpsMela
      @DevOpsMela  ปีที่แล้ว

      Thanks! for the valuable feedback

  • @techgalary
    @techgalary 2 ปีที่แล้ว +1

    Very good and simple explanation and great videos, Thanks for creating this

    • @DevOpsMela
      @DevOpsMela  2 ปีที่แล้ว

      Thanks for valuable feedback..

  • @vidyasagar3079
    @vidyasagar3079 2 ปีที่แล้ว +1

    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..

  • @ghostlearners5374
    @ghostlearners5374 2 ปีที่แล้ว +1

    GREAT VIDE WITH SIMPEL UNDERSTANDING , KEEP IT UP !!

  • @kiransonawane2940
    @kiransonawane2940 2 ปีที่แล้ว +1

    Awesome explanation .....superbbb

    • @DevOpsMela
      @DevOpsMela  2 ปีที่แล้ว

      Thanks! Kiran
      Do like, share and subscribe

  • @Dharmendrakrktr
    @Dharmendrakrktr หลายเดือนก่อน +1

    Thanks for sharing video in very details and step by step. appreciate your afford

    • @DevOpsMela
      @DevOpsMela  หลายเดือนก่อน

      Welcome 👍🏻

  • @sonikashyap4804
    @sonikashyap4804 8 หลายเดือนก่อน +1

    Wonderful ❤

  • @user-su7hx1rd9s
    @user-su7hx1rd9s 2 ปีที่แล้ว +1

    Thanks for the video.

    • @DevOpsMela
      @DevOpsMela  2 ปีที่แล้ว

      Welcome!! Do like and subscribe..

  • @RajuAzure-r4d
    @RajuAzure-r4d 9 หลายเดือนก่อน +1

    nice bro

    • @DevOpsMela
      @DevOpsMela  9 หลายเดือนก่อน

      Thanks! Bro

  • @Sports_Encyclopedia
    @Sports_Encyclopedia ปีที่แล้ว +1

    thanks bro

  • @vijaybhaskarful
    @vijaybhaskarful 2 ปีที่แล้ว +1

    Very Nice...

    • @DevOpsMela
      @DevOpsMela  2 ปีที่แล้ว

      Thanks!! For the feedback..

  • @vineethkumarbompally1715
    @vineethkumarbompally1715 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      Great thoughts Vineeth and I do have video created where in I have created self hosted agent and ran pipelines…do check

  • @shashankshukla1148
    @shashankshukla1148 ปีที่แล้ว +1

    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…

  • @vikashts4472
    @vikashts4472 ปีที่แล้ว +1

    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!!

  • @pawansolanki20095
    @pawansolanki20095 ปีที่แล้ว +1

    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…

  • @muralichandra3244
    @muralichandra3244 2 ปีที่แล้ว +1

    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!!

  • @suribabupolnati9879
    @suribabupolnati9879 ปีที่แล้ว +1

    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..

  • @thareus20
    @thareus20 ปีที่แล้ว +1

    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  ปีที่แล้ว +1

      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!

  • @lokeshrudra8588
    @lokeshrudra8588 2 ปีที่แล้ว +1

    Can you please make a video of AKS backup and Restore….
    Thanks !!

    • @DevOpsMela
      @DevOpsMela  2 ปีที่แล้ว

      Thanks! Lokesh for the suggestion..

  • @НиколайБеляшов-в6к
    @НиколайБеляшов-в6к 2 ปีที่แล้ว +1

    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…

  • @jeesan2006
    @jeesan2006 ปีที่แล้ว +1

    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…

  • @surajpardeshi6083
    @surajpardeshi6083 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      @@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 😊👍

  • @tejendergoud254
    @tejendergoud254 ปีที่แล้ว +1

    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…

  • @oldmonk5600
    @oldmonk5600 2 ปีที่แล้ว +1

    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!!

  • @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?

  • @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

  • @rama5453
    @rama5453 2 ปีที่แล้ว

    Can you please share the link source code

    • @DevOpsMela
      @DevOpsMela  2 ปีที่แล้ว

      Kindly check the GitHub link in description..

  • @rama5453
    @rama5453 2 ปีที่แล้ว +1

    /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 ปีที่แล้ว +1

      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.

  • @saikumarlokas6409
    @saikumarlokas6409 ปีที่แล้ว +1

    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)

  • @hanumanthreddy873
    @hanumanthreddy873 ปีที่แล้ว +1

    Hi, Can you please make a video deploying an Angular application with Azure pipelines

  • @gkmishra2009
    @gkmishra2009 2 ปีที่แล้ว +1

    pls create video for Logic app

  • @sUryaJoj
    @sUryaJoj 4 หลายเดือนก่อน +1

    please give yml
    pipeline

    • @DevOpsMela
      @DevOpsMela  3 หลายเดือนก่อน

      It’s uploaded too
      Kindly check the Az 400 playlist

  • @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 11 หลายเดือนก่อน

    next time when we commit some changes in our repo then how image name will updated in deployment file

    • @DevOpsMela
      @DevOpsMela  11 หลายเดือนก่อน

      You can version images accordingly…
      And call the version in your deployment file

  • @mohitsinha7236
    @mohitsinha7236 11 หลายเดือนก่อน +1

    Great work!! Very helpful for the community.

    • @DevOpsMela
      @DevOpsMela  11 หลายเดือนก่อน

      Thanks! For the valuable feedback

  • @AlexanderFarber
    @AlexanderFarber 2 ปีที่แล้ว +1

    Great video, thank you. What does the environment line mean?

    • @DevOpsMela
      @DevOpsMela  2 ปีที่แล้ว +1

      Thanks! For your valuable feedback
      And environment is nothing but collection of resources that can be targeted while deploying through a pipeline..

  • @student_voice
    @student_voice 2 ปีที่แล้ว +1

    Thnks for videos... ❤️

    • @DevOpsMela
      @DevOpsMela  2 ปีที่แล้ว

      Thanks! For the feedback…

  • @nitindagar664
    @nitindagar664 2 ปีที่แล้ว +1

    Amazing work brother!

  • @ghanshyam014
    @ghanshyam014 ปีที่แล้ว +1

    Your every episodes are Super se upar 😄

    • @DevOpsMela
      @DevOpsMela  ปีที่แล้ว

      Thanks! Ghanshyam…

  • @SureshP-ds3nh
    @SureshP-ds3nh 2 ปีที่แล้ว +1

    Thank You Very Much

    • @DevOpsMela
      @DevOpsMela  2 ปีที่แล้ว

      Thanks! Do like and Share…

  • @MrAnshul13
    @MrAnshul13 2 ปีที่แล้ว +1

    Nice demo.

  • @rishabhkashyap7084
    @rishabhkashyap7084 2 ปีที่แล้ว +1

    Loved it

    • @DevOpsMela
      @DevOpsMela  2 ปีที่แล้ว +2

      Thanks!! For the valuable feedback..