Skip navigation

Container CI/CD using Jenkins and Kubernetes on Azure Kubernetes Service (AKS)

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

By setting up a continuous build to produce your container images and orchestration, you can increase the speed and reliability of your deployment.

Jenkins Azure ContainerRegistry Azure ContainerService (ManagedKubernetes) Azure CosmosDB GitHub Visual Studio Code Engineer Grafana Azure Monitor 1 8 2 3 5 4 6 7 7

Change application source code.

Commit code to GitHub.

Continuous Integration Trigger to Jenkins.

Jenkins triggers a build job using Azure Kubernetes Service (AKS) for a dynamic build agent.

Jenkins builds and pushes Docker container to Azure Container Registry.

Jenkins deploys your new containerized app to Kubernetes on Azure.

Container Service (AKS), backed by Azure Cosmos DB.

Grafana displays visualisation of infrastructure and application metrics via Azure Monitor.

Monitor application and make improvements.

  1. 1 Change application source code.
  2. 2 Commit code to GitHub.
  3. 3 Continuous Integration Trigger to Jenkins.
  4. 4 Jenkins triggers a build job using Azure Kubernetes Service (AKS) for a dynamic build agent.
  5. 5 Jenkins builds and pushes Docker container to Azure Container Registry.
  1. 6 Jenkins deploys your new containerized app to Kubernetes on Azure.
  2. 7 Container Service (AKS), backed by Azure Cosmos DB.
  3. 8 Grafana displays visualisation of infrastructure and application metrics via Azure Monitor.
  4. 9 Monitor application and make improvements.

Implementation guidance

Related solution architectures

Jenkins Azure Virtual MachineScale Sets Terraform Azure Managed Disks(VM Image) Packer GitHub Engineer Azure Log Analytics 1 7 6 5 5 5 4 4 2 3 Visual Studio Code

Immutable Infrastructure CI/CD using Jenkins and Terraform on Azure Virtual Architecture overview

Azure is a world-class cloud for hosting virtual machines running Windows or Linux. Whether you use Java, Node.js, Go or PHP to develop your applications, you’ll need a continuous integration and continuous deployment (CI/CD) pipeline to push changes to these virtual machines automatically.

Visual Studio Team Services Git Visual Studio Team Services CI Visual Studio Team Services CD Engineer Visual Studio Azure Application Insights Azure Web Apps 2 1 7 3 4 5 6 Visual Studio Team Services Backlog 8

CI/CD for Azure Web Apps

Azure Web Apps is a fast and simple way to create web apps using ASP.NET, Java, Node.js or PHP. Deliver value faster to your customers with a continuous integration and continuous deployment (CI/CD) pipeline that pushes each of your changes automatically to Web Apps.