In my previous blog https://www.leogether.com/2020/09/creating-kubernetes-cluster-with-azure.html
I created the Azure Container Registry and Kubernetes cluster using Terraform and Azure DevOps. I would encourage you to read my previous blog first before reading this.
In this blog, I will show you how to import a docker image into the Azure Container registry and deploy the application in the Kubernetes cluster using the Azure DevOps YAML pipeline. The complete architectural flow is as below:
I am using .net sample application that I had been using in my previous blogs:
https://github.com/Pujago/studentregistration
My application code also has:
1. Docker file
2. Docker Compose file
3. 2 YAML files needed for Kubernetes:
https://github.com/Pujago/studentregistration/tree/master/DeploymentK8s
deployment.yml - It is a YAML for kind deployment and service, for .net application
mssql-deployment.yml - It is a YAML for kind deployment and service, for sql server
Creating Azure DevOps project
Create a new project as below:
Go to the project and click on the Repos.
I have added my code in Azure DevOps Repos as below:
Creating service connections:
Create service connections for docker, Kubernetes, and Azure to communicate with DevOps as below:
I really like the way it is explained in such simple terms.. Superb. Thanks.
ReplyDeletegrt
ReplyDelete