Thursday, 28 May 2026

 Continous Deployment via ArgoCD

===========================


Create EKS Cluster

===================================================================

eksctl create cluster --name bravo-k8s-argocd --region us-east-1 --nodegroup-name bravo-public-nodes --node-type t3.small  --managed --nodes 2


update .kube/config 

===================================================================

aws eks update-kubeconfig --region us-east-1 --name bravo-k8s-argocd


Verify the config file

===================================================================

kubectl config view



Create ArgoCD NameSpace

===================================================================

kubectl create namespace argocd


Install ArgoCD

===================================================================

kubectl apply -n argocd --server-side --force-conflicts -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml


Change the ArgoCD service Type to LoadBalancer

===================================================================

kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'


Initial Admin Password for ArgoCD. You have to change it later

===================================================================

kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo


Login to ArgoCD to complete the CD Part of the application

===================================================================

Create Application--> Name-->Project Name-->Sync Policy(Manual/Automatic)-->Select Source Repo Url-->Revision(Head/Main/Master)-->PATH(Repo Path for example [. / k8s/ etc] ) --> Cluster Url --> namespace -->Click Create

No comments:

Post a Comment