Member-only story
Add a New EKS Cluster to ARGOCD with Bearer Token Authorization
Prerequisites
Before you proceed, make sure you have the following prerequisites in place:
- ARGOCD is installed and configured on your primary EKS cluster.
- You have administrative access to the ARGOCD instance.
- Network communication between two EKS clusters is allowed.
- New EKS cluster added to \.kube\config
- You have obtained a bearer token for ARGOCD following the steps provided.
Step 1: Install the ARGOCD CLI Tool
First, you need to install the ARGOCD CLI tool on your local machine. If you haven’t already done so, follow the official documentation for CLI installation here.
Step 2: Log in to ARGOCD
Use the ARGOCD CLI tool to log in to your ARGOCD server by running the following command:
argocd login <ARGOCD_SERVER_URL>
Replace <ARGOCD_SERVER_URL>
with the URL of your ARGOCD server. You will be prompted to authenticate with your credentials.
Step 3: Set the Bearer Token
To authorize the addition of the new EKS cluster, you need to set the bearer token as an environment variable. Replace <BEARER_TOKEN>
with the actual bearer token you obtained earlier: