kubectl – A command line tool for working with Kubernetes clusters. For more information, see Installing or updating kubectl. https://docs.aws.amazon.com/eks/latest/userguide/install-kubectl.html
eksctl – A command line tool for working with EKS clusters that automates many individual tasks. For more information, see Installing or updating. https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html
AWS CLI – A command line tool for working with AWS services, including Amazon EKS. For more information, see Installing, updating, and uninstalling the AWS CLI https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html in the AWS Command Line Interface User Guide.
After installing the AWS CLI, I recommend that you also configure it. For more information, see Quick configuration with aws configure in the AWS Command Line Interface User Guide. https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-config
Argo CD CLI(Not the actual Argo CD Installation) - https://argo-cd.readthedocs.io/en/stable/cli_installation/#installation
eksctl create cluster --name hub-cluster --region us-west-1
eksctl create cluster --name spoke-cluster-1 --region us-west-1
eksctl create cluster --name spoke-cluster-2 --region us-west-1
kubectl config get-contexts
kubectl config use-context <context-name>
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl edit svc argocd-server -n argocd
and change the type to NodePort from ClusterIP
kubectl get svc argocd-server -n argocd
Hit the Hub-cluster nodeport IP (two Ec2 instance is running, we can use public IP of any of our choice) with specified port in previous command output.
username is admin, to get password. Run:
kubectl get secret -n argocd
kubectl edit secret argocd-initial-admin-secret -n argocd
Copy the secret & decode it's base64 format:
echo [unique-encrypted-token] | base64 --decode
except for % sign, use it as your pass.
argocd login 13.233.140.21:32002
argocd cluster add devops-project@spoke-cluster-1.ap-south-1.eksctl.io --server 13.233.140.21:32002
argocd cluster add devops-project@spoke-cluster-2.ap-south-1.eksctl.io --server 13.233.140.21:32002
eksctl delete cluster --name hub-cluster --region us-west-1
eksctl delete cluster --name spoke-cluster-1 --region us-west-1
eksctl delete cluster --name spoke-cluster-2 --region us-west-1