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

Sdílet
Vložit
  • čas přidán 3. 12. 2021
  • 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
  • Věda a technologie

Komentáře • 105

  • @arunleo83
    @arunleo83 Před měsícem +1

    your videos are really easier to understand

    • @DevOpsMela
      @DevOpsMela  Před měsícem

      Thanks! for the valuable feedback

  • @prabakara1652
    @prabakara1652 Před rokem +2

    while everyone teaching basics you are teaching practical implementation which is the one every company looking for. Kudos sir

    • @DevOpsMela
      @DevOpsMela  Před rokem

      Thanks! For the valuable feedback…

  • @mohitsinha7236
    @mohitsinha7236 Před 8 měsíci +1

    Great work!! Very helpful for the community.

    • @DevOpsMela
      @DevOpsMela  Před 8 měsíci

      Thanks! For the valuable feedback

  • @techgalary
    @techgalary Před 2 lety +1

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

  • @ghostlearners5374
    @ghostlearners5374 Před 2 lety +1

    GREAT VIDE WITH SIMPEL UNDERSTANDING , KEEP IT UP !!

  • @vijaymunavalli335
    @vijaymunavalli335 Před rokem +1

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

  • @harishh4464
    @harishh4464 Před rokem +1

    Thank You so much Brother .Your Videos are helped Me a lot. Im from Bangalore .

    • @DevOpsMela
      @DevOpsMela  Před rokem

      Great! Thanks for the valuable feedback…

  • @ghanshyam014
    @ghanshyam014 Před rokem +1

    Your every episodes are Super se upar 😄

  • @Annishvarma
    @Annishvarma Před rokem +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  Před rokem

      Sure!! Thanks for the suggestion…

  • @vidyasagar3079
    @vidyasagar3079 Před 2 lety +1

    awesome explanation bro . Really grateful to u. hope u will do more real time videos on azure devops.

    • @DevOpsMela
      @DevOpsMela  Před 2 lety

      Thanks! Vidya
      Check my channel playlist I have complete playlist created on Azure DevOps..

  • @milindbhanushali9181
    @milindbhanushali9181 Před 2 lety +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  Před 2 lety +1

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

  • @anandanmariappan2751
    @anandanmariappan2751 Před 2 lety +1

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

  • @nitindagar664
    @nitindagar664 Před rokem +1

    Amazing work brother!

  • @vijayideas7762
    @vijayideas7762 Před 2 lety +1

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

  • @sonikashyap4804
    @sonikashyap4804 Před 5 měsíci +1

    Wonderful ❤

  • @kiransonawane2940
    @kiransonawane2940 Před 2 lety +1

    Awesome explanation .....superbbb

    • @DevOpsMela
      @DevOpsMela  Před 2 lety

      Thanks! Kiran
      Do like, share and subscribe

  • @user-su7hx1rd9s
    @user-su7hx1rd9s Před 2 lety +1

    Thanks for the video.

    • @DevOpsMela
      @DevOpsMela  Před 2 lety

      Welcome!! Do like and subscribe..

  • @SureshP-ds3nh
    @SureshP-ds3nh Před 2 lety +1

    Thank You Very Much

  • @rishabhkashyap7084
    @rishabhkashyap7084 Před 2 lety +1

    Loved it

    • @DevOpsMela
      @DevOpsMela  Před 2 lety +2

      Thanks!! For the valuable feedback..

  • @MrAnshul13
    @MrAnshul13 Před 2 lety +1

    Nice demo.

  • @student_voice
    @student_voice Před rokem +1

    Thnks for videos... ❤️

  • @vijaybhaskarful
    @vijaybhaskarful Před 2 lety +1

    Very Nice...

  • @Sports_Encyclopedia
    @Sports_Encyclopedia Před rokem +1

    thanks bro

  • @user-tm6cd8sg5l
    @user-tm6cd8sg5l Před 2 lety +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  Před 2 lety

      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 Před 7 měsíci +1

    nice bro

  • @thareus20
    @thareus20 Před rokem +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  Před rokem +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!

  • @AlexanderFarber
    @AlexanderFarber Před rokem +1

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

    • @DevOpsMela
      @DevOpsMela  Před rokem +1

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

  • @shashankshukla1148
    @shashankshukla1148 Před 10 měsíci +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  Před 10 měsíci

      Kindly check Azure DevOps playlist for more in-depth understanding of CI/CD…

  • @muralichandra3244
    @muralichandra3244 Před 2 lety +1

    Good work Rohit. I have a question. I want to do the same for Angular application. Is all settings are same?

    • @DevOpsMela
      @DevOpsMela  Před 2 lety

      Hey Murali,
      Yes, the process remains same you just need to edit DockerFile steps for creating Angular Image..
      Thanks!!

  • @vikashts4472
    @vikashts4472 Před rokem +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  Před rokem

      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 Před rokem +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  Před rokem

      Kindly check replied to your email…

  • @surajpardeshi6083
    @surajpardeshi6083 Před rokem +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  Před rokem

      Hey Suraj, kindly share the complete logs with yaml files on devopsmela@gmail.com

    • @surajpardeshi6083
      @surajpardeshi6083 Před rokem +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 😊👍

  • @hanumanthreddy873
    @hanumanthreddy873 Před rokem +1

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

  • @lokeshrudra8588
    @lokeshrudra8588 Před 2 lety +1

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

    • @DevOpsMela
      @DevOpsMela  Před 2 lety

      Thanks! Lokesh for the suggestion..

  • @oldmonk5600
    @oldmonk5600 Před 2 lety +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  Před 2 lety

      Hello Mayur,
      Kindly confirm, if your providing a namespace value or using default?
      And send your .yaml file on devopsmela@gmail.com
      Thanks!!

  • @suribabupolnati9879
    @suribabupolnati9879 Před rokem +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  Před rokem

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

  • @vineethkumarbompally1715
    @vineethkumarbompally1715 Před 2 lety +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  Před 2 lety +1

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

  • @tejendergoud254
    @tejendergoud254 Před rokem +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  Před rokem

      Sure! Thanks for the suggestion…

  • @kavacham222
    @kavacham222 Před 2 lety

    Thankyou for the video. Can we send message to a group of people in gmail when a build pipeline fails?

    • @DevOpsMela
      @DevOpsMela  Před 2 lety

      Welcome!! If you can create a DL in gmail then well you can send it, if there is no restrictions..

    • @kavacham222
      @kavacham222 Před 2 lety

      @@DevOpsMela ok thankyou for your reply.

    • @kavacham222
      @kavacham222 Před 2 lety

      By the way howcan we create Distribution list in gmail? N intergate with devops pipeline

  • @manikantanarcot2727
    @manikantanarcot2727 Před rokem

    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  Před rokem

      Hey Manikantan, have you create service connection?

  • @Ashutoshsingh-gj6vg
    @Ashutoshsingh-gj6vg Před 9 měsíci

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

    • @DevOpsMela
      @DevOpsMela  Před 9 měsíci

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

  • @jeesan2006
    @jeesan2006 Před rokem +1

    hi Can you please make a video of ASP.NET Web application deployment on Azure Kubernetes Services through Github Actions

    • @DevOpsMela
      @DevOpsMela  Před rokem

      Hey I do have a video created on the same, kindly check the Git playlist…

  • @raghur5678
    @raghur5678 Před rokem

    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  Před rokem

      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 Před rokem

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

  • @gkmishra2009
    @gkmishra2009 Před rokem +1

    pls create video for Logic app

  • @rama5453
    @rama5453 Před 2 lety

    Can you please share the link source code

    • @DevOpsMela
      @DevOpsMela  Před 2 lety

      Kindly check the GitHub link in description..

  • @sUryaJoj
    @sUryaJoj Před měsícem +1

    please give yml
    pipeline

    • @DevOpsMela
      @DevOpsMela  Před 9 dny

      It’s uploaded too
      Kindly check the Az 400 playlist

  • @rama5453
    @rama5453 Před rokem +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  Před rokem +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 Před rokem

      @@DevOpsMela : Thanks your quick reply . Can you please share the example blue green deployment recording if any

    • @shivarajpujar4642
      @shivarajpujar4642 Před rokem

      Hi, same error I am getting. Please let me know if you got the solution.

  • @saikumarlokas6409
    @saikumarlokas6409 Před rokem +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  Před rokem

      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 Před rokem

      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 Před rokem

      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)