To achieve continuous deployment on AWS cluster through kubernetes we have to undertake the following tasks

Make an environment for continuous deployment

Create Jenkins job for CD

First of all we will discuss about how to make an environment for continuous deployment. Before creating a cluster on AWS EC2 through kubernetes, we need to install some software in the client machine. The client machine could be an EC2 instance or desktop. We assume that our client machine is EC2 instance.

These are the software we need to install on client machine:

Java 8

Maven 3.x

aws-cli

Docker.

Jenkins

Git

Now connect the EC2 instance through command line and change user to Jenkins. To connect EC2 instance, use the given command from the command line.