First, run command choco install eksctl in vs code terminal.
eksctl is a simple CLI tool for creating clusters on EKS
Step by step through the process of deploying applications to AWS EKS using GitHub actions CI/CD pipeline:
- Create an EKS Cluster and configure eks region using this commands:
eksctl create cluster --name salvadorapp --region us-east-1 --nodegroup-name linux-nodes --node-type t2.micro --nodes 2
aws eks --region us-east-1 update-kubeconfig --name salvadorcluster
- Then create .github folder and then create workflow folder inside .github folder
- Create file with .yml extension and write the workflow code
- Create a github repository
- Create secrets in github repo Go to settings of repo click on secrets and variables
- Test application by getting the dns name and going to a web browser
Clean up: Run eksctl delete cluster --name salvadorcluster
Image running on EKS: