this is a cicd github actions pipeline with helm chart that deploys app to EKS using argocd.
pipeline steps:
- push the code to main branch to trigger the pipeline.
- also i added trivy to scan the image before its sent to ECR
- helmchart picks the latest image tag version while argo pulls
- which also triggers ArgoCD to deploy Helm Chart in the Kubernetes
- also the helm chart is pushed to s3 bucket. Note: The workflow triggers on push to the main branch when changes are made in the charts/ directory. also make sure s3 has neccesary permission to accept actions.
from the root , run the followings;
terraform init
terraform validate
terraform fmt
terraform plan
terraform apply -auto-approve
this creates;
- eks cluster with node groups and one instane running in them , making it 2 active worker nodes.
- VPC
-
cd into rds folder
-
run the followings;
terraform init terraform validate terraform fmt terraform plan terraform apply -auto-approve
use the application.yml file in the root directory to create argoCD or you use the terminal using kubectl.
command: kubectl apply -f application.yaml