Deploying application on EKS cluster
We will deploy the aws-code-pipeline application that we created in previous chapters. This time, we will deploy it to the EKS Kubernetes cluster using CodePipeline. The following diagram shows the overall deployment structure; we will use the CodeBuild service to create artifacts and Docker images and push that container image to the ECR repository:
Figure 13.8 – EKS Pipeline deployment architecture
This container image is referenced by the deployment.yaml
file and deployed to the Kubernetes cluster. The CodeBuild service needs appropriate access to connect with ECR and the Kubernetes cluster to deploy the code. Once the application is deployed, it passes the control to another chap-13-test-application
CodeBuild project, which is responsible for connecting to the application using a load balancer to test the success of the deployment. Let’s go through this journey step by step in the following sections...