> For the complete documentation index, see [llms.txt](https://devops-maestro.gitbook.io/cicd-pipeline-using-jenkins-and-argocd/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devops-maestro.gitbook.io/cicd-pipeline-using-jenkins-and-argocd/configure-ec2-instance-to-setup-the-cd-pipeline.md).

# Configure EC2 instance to setup the CD pipeline

To setup the ArgoCD server and Kubernetes, create a t2.medium EC2 instance with Ubuntu OS

<figure><img src="https://3157512683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSdKCeOdDbFafu1TTNFV5%2Fuploads%2FEJT58HfK8PSou8oxop2j%2Fimage.png?alt=media&amp;token=7835fb7c-79bd-4b46-b57e-4b5dc9037cc7" alt=""><figcaption></figcaption></figure>

In order to use MiniKube, Docker must be installed on the system, so use this startup shell script to install Docker and then launch the instance

```sh
#!/bin/bash
sudo apt-get update
sudo apt install docker.io -y
```

To verify whether Docker is installed, use the below command:

```sh
docker --version
```

To add ubuntu user to the Docker group

```sh
sudo usermod -aG docker $USER && newgrp docker
sudo systemctl restart docker
```
