CI/CD for containers

Azure Monitor
Azure Container Registry
Azure DevOps
Azure Kubernetes Service (AKS)

Solution ideas

This article is a solution idea. If you'd like us to expand the content with more information, such as potential use cases, alternative services, implementation considerations, or pricing guidance, let us know by providing GitHub feedback.

Containers make it easy for you to continuously build and deploy your applications. By orchestrating deployment of those containers using Kubernetes in Azure Kubernetes Service (AKS), you can achieve replicable, manageable clusters of containers.

Note

This document is about CI/CD for containers on Azure DevOps. If you are looking for solutions using github, see DevOps with AKS.

Potential use cases

By setting up a continuous build to produce your container images and orchestration, Azure DevOps increases the speed and reliability of your deployment.

Architecture

Architecture that shows how to implement CI/CD for containers.

Download a Visio file of this architecture.

Dataflow

  1. Change application source code.
  2. Commit Application Code.
  3. Continuous integration triggers application build, container image build and unit tests.
  4. Container image pushed to Azure Container Registry.
  5. Continuous deployment trigger orchestrates deployment of application artifacts with environment-specific parameters.
  6. Deployment to Azure Kubernetes Service (AKS).
  7. Container is launched using Container Image from Azure Container Registry.
  8. Application Insights collect and analyze health, performance, and usage data.
  9. Review health, performance, and usage information.
  10. Update backlog item.

Components

  • Container Registry: Store and manage container images across all types of Azure deployments
  • Azure Kubernetes Service (AKS): Simplify the deployment, management, and operations of Kubernetes
  • Application Insights: Detect, triage, and diagnose issues in your web apps and services
  • Azure DevOps: Build and deploy multi-platform apps to get the most from Azure services

Cost optimization

Next steps