argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
18k stars 5.48k forks source link

argocd cluster add Failed #20884

Open chominnn opened 1 day ago

chominnn commented 1 day ago

i'm using haproxy for Multi master node K8s Cluster But can't finding the haproxy when I add the argo cluster. So I tried entering the ip address of haproxy as --server option, but it still gets an error.

root@master01:~# argocd cluster add kubernetes-admin@kubernetes WARNING: This will create a service account argocd-manager on the cluster referenced by context kubernetes-admin@kubernetes with full cluster level privileges. Do you want to continue [y/N]? y INFO[0001] ServiceAccount "argocd-manager" already exists in namespace "kube-system" INFO[0001] ClusterRole "argocd-manager-role" updated
INFO[0001] ClusterRoleBinding "argocd-manager-role-binding" updated FATA[0001] rpc error: code = Unknown desc = Get "https://haproxy:6443/version?timeout=32s": dial tcp: lookup haproxy on 10.96.0.10:53: no such host

root@master01:~# argocd cluster add kubernetes-admin@kubernetes --server 211.39.158.60 WARNING: This will create a service account argocd-manager on the cluster referenced by context kubernetes-admin@kubernetes with full cluster level privileges. Do you want to continue [y/N]? y INFO[0001] ServiceAccount "argocd-manager" already exists in namespace "kube-system" INFO[0001] ClusterRole "argocd-manager-role" updated
INFO[0001] ClusterRoleBinding "argocd-manager-role-binding" updated FATA[0001] Failed to establish connection to 211.39.158.60:443: dial tcp 211.39.158.60:443: connect: connection refused

andrii-korotkov-verkada commented 19 hours ago

What's your argocd cli and server version?

chominnn commented 11 hours ago

sorry to late reply :)

argocd cli와 서버 버전은 무엇인가요?

root@master01:~# argocd version argocd: v2.7.5+a2430af BuildDate: 2023-06-16T15:00:03Z GitCommit: a2430af1c356b283e5e3fc5bde1f5e2b5199f258 GitTreeState: clean GoVersion: go1.19.10 Compiler: gc Platform: linux/amd64 argocd-server: v2.11.3+3f344d5 BuildDate: 2024-06-06T08:42:00Z GitCommit: 3f344d54a4e0bbbb4313e1c19cfe1e544b162598 GitTreeState: clean GoVersion: go1.21.9 Compiler: gc Platform: linux/amd64 Kustomize Version: v5.2.1 2023-10-19T20:13:51Z Helm Version: v3.14.4+g81c902a Kubectl Version: v0.26.11 Jsonnet Version: v0.20.0


argocd-server

Argo CD v2.11.3+3f344d5 Build Date 2024-06-06T08:42:00Z Go Version go1.21.9 Go Compiler gc Platform linux/amd64 jsonnet v0.20.0 kustomize v5.2.1 2023-10-19T20:13:51Z Helm v3.14.4+g81c902a kubectl v0.26.11

NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION argocd argocd 11 2024-11-21 07:19:49.16893091 +0000 UTC deployed argo-cd-7.2.1 v2.11.3