Kubernetes End to End project on EKS | Install EKS and app deploy with ingress controller

Create an ec2 instance of t2. medium and connect it thorugh ssh.

connect through ssh to ec2 server.

sudo apt update

vim script1.sh

#!/bin/bash
#install Kubectl on Jenkins
sudo apt update
sudo apt install curl -y
curl -LO https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
kubectl version --client

#install Aws cli
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
sudo apt-get install unzip -y
unzip awscliv2.zip
sudo ./aws/install

vim script2.sh

ubuntu@ip-172-31-9-240:~$ cat scrit2.sh
#!/bin/bash
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
sudo mv /tmp/eksctl /usr/local/bin
eksctl version

chmod 777 script1.sh script2.sh

sh script1.sh script2.sh