I have an eks cluster(Argo cd cluster) and Argo CD running on that and i want to add the another EKS Cluster(staging) which is on another AWS Account, while adding the cluster with argocd cli i'm getting the below error
argocd cluster add
FATA[0034] rpc error: code = DeadlineExceeded desc = Get "https://7676334634763764377B080FC2E502754A3.gr7.eu-central-1.eks.amazonaws.com/version?timeout=32s": dial tcp 52.87.96.207:443: i/o timeout
My staging cluster public access is restricted to office VPN, i have whitelisted the NAT Ip and ingress controller IP also of Argocd cluster still Im getting the error.
PS: When disable the public access cidr access then i'm able to add the cluster successfully.
Not sure what i'm missing here anyone can help me out here.
To expand on your answer, you would need to:
Identifying the Correct NAT IP of the Argo CD cluster, using AWS NAT Gateways:
Updating the Whitelist on the new EKS cluster to include this IP (security group settings):
argocd cluster add
command.The correct NAT IP should be whitelisted, allowing the Argo CD instance to communicate with the new EKS cluster and resolving the timeout error.