Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

argocd cluster add cannot add a cluster through the proxy-url of kubeconfig #8314

Open
ilanni2460 opened this issue Jan 29, 2022 · 7 comments
Assignees
Labels
bug/priority:medium Should be fixed in the next minor releases bug/severity:minor Bug has limited impact, maybe affects only an edge-case or is of cosmetic nature bug Something isn't working component:multi-cluster Features related to clusters management type:supportability Enhancements that help operators to run Argo CD

Comments

@ilanni2460
Copy link

argocd version: 2.2.3

kubeconfig config:
`
apiVersion: v1
clusters:

argocd cluster add cannot add a cluster through the proxy-url of kubeconfig

this is error log:

argocd cluster add c4135f4aa85864 --kubeconfig prod-k8s-admin --name prod -y
INFO[0000] ServiceAccount "argocd-manager" created in namespace "kube-system"
INFO[0000] ClusterRole "argocd-manager-role" created
INFO[0000] ClusterRoleBinding "argocd-manager-role-binding" created
FATA[0030] rpc error: code = Unknown desc = Get "https://10.20.10.10:6443/version?timeout=32s": dial tcp 10.20.10.10:6443: i/o timeout

@ilanni2460 ilanni2460 added the bug Something isn't working label Jan 29, 2022
@jannfis jannfis added component:multi-cluster Features related to clusters management bug/priority:medium Should be fixed in the next minor releases bug/severity:minor Bug has limited impact, maybe affects only an edge-case or is of cosmetic nature type:supportability Enhancements that help operators to run Argo CD labels Jan 29, 2022
@kshamajain99 kshamajain99 self-assigned this Jan 30, 2022
@philippart
Copy link

Same issue here.

@manuelstein
Copy link

same here

@kshamajain99 kshamajain99 removed their assignment Feb 24, 2022
@weaselchops
Copy link

Does anybody have a workaround for this in the meantime?

@chetan-rns chetan-rns self-assigned this Mar 28, 2022
@chetan-rns
Copy link
Member

argocd cluster add c4135f4aa85864 --kubeconfig prod-k8s-admin --name prod -y
INFO[0000] ServiceAccount "argocd-manager" created in namespace "kube-system"
INFO[0000] ClusterRole "argocd-manager-role" created
INFO[0000] ClusterRoleBinding "argocd-manager-role-binding" created
FATA[0030] rpc error: code = Unknown desc = Get "https://10.20.10.10:6443/version?timeout=32s": dial tcp 10.20.10.10:6443: i/o timeout

There could be 2 different clusters involved here. The target cluster we want to add and the cluster where argocd is running. Looking at the logs argocd creates the RBAC resources in the target cluster through the proxy. I suppose it's failing to talk to the argocd server. Here the proxy-url in the kubeconfig applies only to the target cluster.

@dinpau
Copy link

dinpau commented Mar 31, 2022

I think this problem is related to #6043, which is also open. We tried to give an analysis there, maybe it helps in this case too.

@jinnjwu
Copy link

jinnjwu commented May 30, 2022

same issue: #7887

@qixiaobo
Copy link

image
Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/priority:medium Should be fixed in the next minor releases bug/severity:minor Bug has limited impact, maybe affects only an edge-case or is of cosmetic nature bug Something isn't working component:multi-cluster Features related to clusters management type:supportability Enhancements that help operators to run Argo CD
Projects
None yet
Development

No branches or pull requests

10 participants