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

Cannot add multiple clusters with the same URL #9515

Open
mdanidl opened this issue May 25, 2022 · 5 comments
Open

Cannot add multiple clusters with the same URL #9515

mdanidl opened this issue May 25, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@mdanidl
Copy link

mdanidl commented May 25, 2022

Describe the bug

Right now, it's impossible to use something like teleport to target multiple clusters, since it is (likely) using the same proxy address for all the different kubernetes clusters.

To Reproduce

Therefore when creating 2 instances of the same app targeting the clusters by Name the quicker one picks the first cluster of the ones with the same address, the other one stays on "in-cluster (undefined)"

Expected behavior

I'd like to be able to target 10+ clusters with the same URL, but different name.

Version

2.3.4

I've went through the tickets and there are some others with similar usecases.
I'm creating this new ticket to hopefully raise attention.

@mdanidl mdanidl added the bug Something isn't working label May 25, 2022
@mdanidl
Copy link
Author

mdanidl commented May 25, 2022

#8384
something similar

@rodrigo14miguel
Copy link

I have given a little more info on #8384 but ill leave it here too.
I'm using argocd to apply its own configuration. My AppProject and Applications yams only have the "name" field in destination, I omit "server". When applied, they stay the same without populating the empty "server". (equivalent to "kubectl apply")
Maybe the "server" field in destination only gets populated when creating an application or project though the UI.

@ls0f
Copy link
Contributor

ls0f commented May 31, 2022

Meet the same problem and we patch the source code for supporting multiple clusters with the same url. Hope this feature can be considered by argocd

@mdanidl
Copy link
Author

mdanidl commented May 31, 2022

Thanks @ls0f , hopefully it makes it to the main branch. #9496

@denysvitali
Copy link

Our use case is different and would not be covered by #9496:

we manage multiple namespaces and use one set of credentials per namespace, this causes ArgoCD to be confused and use another set of credentials (since it seems the clusters use the API Address as their own ID).

Ideally, one should be able to specify multiple times the same API Address, but with a different set of credentials. This seems to be already supported by the Application, but doesn't seem to work correctly since it's trying to resolve the destination.name cluster into an API URL, and then using that one by picking a random entry from that list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants