What should you use to perform the deployments?

Last Updated on October 31, 2021 by Admin 3

You create an Azure Kubernetes Service (AKS) cluster and an Azure Container Registry.

You need to perform continuous deployments of a containerized application to the AKS cluster as soon as the image updates in the registry.

What should you use to perform the deployments?

  • an Azure Automation runbook
  • a kubectl script from a CRON job
  • an Azure Resource Manager template
  • an Azure Pipelines release pipeline
Explanation:

You can implement a Continuous Deployment pipeline.

Example:

AZ-303 Microsoft Azure Architect Technologies Part 08 Q14 161
AZ-303 Microsoft Azure Architect Technologies Part 08 Q14 161

What the pipeline accomplishes :
Stage 1: The code gets pushed in the Github. The Jenkins job gets triggered automatically. The Dockerfile is checked out from Github.

Stage 2: Docker builds an image from the Dockerfile and then the image is tagged with the build number. Additionally, the latest tag is also attached to the image for the containers to use.

Stage 3: We have default deployment and service YAML files stored on the Jenkins server. Jenkins makes a copy of the default YAML files, make the necessary changes according to the build and put them in a separate folder.

Stage 4: kubectl was initially configured at the time of setting up AKS on the Jenkins server. The YAML files are fed to the kubectl util which in turn creates pods and services.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments