So far, we have seen how to use kubectl to deploy a containerized application in a local K8S cluster, or in a remote cluster with AKS.
Now, we will see how to create a complete CI/CD pipeline for Kubernetes, from the creation of a new Docker image pushed in the Docker Hub, to its deployment in an AKS cluster.
To build this pipeline, we'll use the Azure Pipelines service that is in Azure DevOps, which we have previously discussed in Chapter 6, Continuous Integration and Continuous Delivery, and Chapter 7, Containerizing Your Application with Docker.
This continuous integration pipeline will be composed of the following:
- A build that will be in charge of building and promoting a new Docker image in the Docker Hub.
- A release that will use our YAML deployment specification file to deploy the latest version of the...