This is one of the most important section of the chapter. In this section, we will see how to update the deployment of microservice application in Kubernetes cluster. We will be using the resources that has been created in the recipe Kubernetes on AWS using AWS resources, meaning the ECR repository, EBS volume, deployment of application, and load balancer are already in place.
Scenario: Whenever there is change in the code, a new image should get created. The new image should also get updated in the Kubernetes cluster so that Kubernetes should serve the latest application.
To automate the preceding scenario, we will be using Jenkins, and all the steps and configuration will be written in Jenkinsfile.