Deploy Docker image to Kubernetes Cluster | CI-CD for Azure Kubernetes Service

preview_player
Показать описание
Learn how to configure CI/CD pipelines to automatically push a docker image to Kubernetes cluster abstracted by Azure Kubernetes Services (AKS).

Learn how to pull a docker image from a public container registry, deploy your application to the docker image then push the image to a private container registry to get ready to be picked up by the release pipeline.

What will be covered in this video:

• Create Kubernetes cluster using Azure cli
• Create an Azure Container Registry (ACR), AKS and Azure SQL server
• Provision the Azure DevOps Team Project with a sample .NET Core application
• Configure application and database deployment, using Continuous Deployment (CD) in the Azure DevOps using Azure Pipelines
• Initiate the build to automatically deploy the application to Docker image, push the image to private Azure registry.
• Automatically trigger release pipeline to pull the docker image and push it to Kubernetes cluster

Main steps:
• Get the latest version of Kubernetes cluster so we can deploy it to Azure Kubernetes cluster
• Setting up the environment: Here we will configure three Azure resources namely Azure container registry, AKS, and Azure SQL server.
• Configure Build and Release pipeline: we will manually map Azure resources such as AKS and Azure Container Registry to the build and release definitions
• Trigger a Build and deploy application: Trigger a build manually and upon completion, an automatic deployment of the application will be triggered.
• Access the Kubernetes web dashboard in Azure Kubernetes Service (AKS): A short note on web dashboard in Azure Kubernetes that assists basic management operations.

Key Advantages of Azure Kubernetes Services (AKS)

• Hosts your Kubernetes environment.
• Quick and easy to deploy
• Hosted control plane
• Manages containerized applications without container orchestration expertise.
• Eliminates burden of ongoing operations and maintenance by provisioning, upgrading, and scaling resources on demand while keeping the application online.
• Continuous build option that creates Docker images for faster deployments and reliability.
• Create resources and infrastructure inside the Azure Kubernetes cluster through Deployments and services manifest files.

Useful links:
--------------------
Learning Git
Learning Docker
Learning DevOps

About the Author
----------------------------
Video:
Blog:
Linked-in
GitHub
Twitter:

#docker #Azure_Kubernetes_Services #Kubernetes #Kubernetes_cluster #Azure_Container_Registry #DevOps #CICD_Pipelines_Kubernetes
Рекомендации по теме
Комментарии
Автор

Awesome video even after 2 years of post :)

dontdisturb
Автор

I was searching answer who can explain Azure Kubernetes, you did it. Thank you. This saves lot of times for technical mergers.

mariat.benson
Автор

Fantastic video .. Really appreciate your efforts in making the video & helping the community .

amitkulkarni
Автор

Timecode:
1. Demo explanation begins at 12-10
2. Demo starts at 16-35

BadSanta
Автор

Very well explained Video. Thanks for all your knowledge sharing initiatives.

vchintad
Автор

Awesome video about AKS. Thank you so much for the effort 🙂

kokkimandy
Автор

Super helpful - Thank you so much Redwan !! #StayBlessednHappy

lifechamp
Автор

Excellent video, thanks so much for sharing!

PratikKamble
Автор

Radwan! Thanks a lot, man... Waiting from a long time like this video

You have cleared all gaps and doubts what I have in deploying app using aks

GandikotaSaikoushik
Автор

Really helped!! Thanks for sharing this video 😊

poojachourasia
Автор

32:15 Yours are pre-filled in, but as of today (June 2020), you need to fill this in:

DB deployment: vs2017-win2016
AKS deployment: ubuntu-16.04

PaulAndHarris
Автор

Mohamed, this is what I needed. Thaaaank you! You made a small mistake when changing configuration variables - you left Y letter on the front.

dxhelios
Автор

Informational Video step by step for AKS.Please share the commands used

manjula.cgowda
Автор

Thank you So much sir, ....Also could you please add more docker related videos ..Please keep it up.

ceciliatewksbury
Автор

Thanks a lot Mohamed! We are just migrating to Azure so this was perfect for me. Great job... just want to point out I needed to add access for the pods to the sql server firewall. Maybe I missed a step? ;) Regardless.. thanks again...

DannyRBennett
Автор

Thank you for the detailed steps. I was able to follow and deploy an app. However mhc-front pod is going into Crashloopback off state. Is the MHC application code still up to date or need any changes..

masoodsaiyed
Автор

Thanks, for me its very confusing to see deployment process on AKS... for sure this must be easy as we understand the flow.

sreekanthadari
Автор

As of 2023, an error pops up when trying to create the Azure Kubernetes Service for westeurope region on Trial Account. It requires a quota increase on total regional vCPUs, however, this request for quota increase is not granted. Any ideas on how to get past this, or just upgrade to standard account?

EDIT: if the same command fails when creating the aks within your resource group, simple add --node-count 2 at the end of your input, this will only trigger 2 cores.
Thanks to a person who commented 2 years ago, this fix worked for me.

thareus
Автор

Mohamed, There is no Azure Public Azure container registry as depicted in the diagram. Actually, you are pulling the image from docker hub so please modify the diagram to reflect its correct representation!!

RajanieshKaushikk
Автор

Thanks for your Awesome Tutorial , can you please share how configuration network of virtual Box image easily ? Thanks

marwenounis