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

cluster join : connection refused #467

Open
jimkapolos opened this issue Jan 31, 2025 · 2 comments
Open

cluster join : connection refused #467

jimkapolos opened this issue Jan 31, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@jimkapolos
Copy link

I have an AMD64 server as hub-clsuter and I want to join a ARM64 node (rpi/jetson nano) as manager-cluster with the clusteradm join command.
I execute this command:
clusteradm join --hub-token eyJhbGciOiJSUzI1NiIsImtpZCI6ImxDVTBYZzBQUTlRNnUzSG9wUUFXdW93ZFlicG9w --hub-apiserver https://192.168.188.205:6443 --cluster-name cluster-worker2
And I get the following error:
Error: Get "http://localhost:8080/apis/apps/v1/namespaces/open-cluster-management/deployments/klusterlet": dial tcp 127.0.0.1:8080: connect: connection refused

Also when I run the same command from another AMD64 machine it runs normally.

Do you have any clue why this goes wrong?

@jimkapolos jimkapolos added the bug Something isn't working label Jan 31, 2025
@zhujian7
Copy link
Member

zhujian7 commented Jan 31, 2025

It looks like a network issue, can your managed cluster access the hub https://192.168.188.205:6443?
Are you using KinD clusters?(if the managed cluster is a kind, please add --force-internal-endpoint-lookup for the join command)
Please give more details about the difference between the two clusters one runs the command normally and the other fails.

@jimkapolos
Copy link
Author

I have k3s on both machines but on the machine with amd64 the clusteradm join is running while on the machine with arm64 I get the same: Error: Get "http://localhost:8080/apis/apps/v1/namespaces/open-cluster-management/deployments/klusterlet": dial tcp 127.0.0.1:8080: connect: connection refused

I tampered with the k3s.yaml of the ARM64 machine I put the external ip and not the localhost and enabled the clusteradm join but now the problem I got is that when I go to the cluster hub to do clusterdm accept I get the following error:
Error: [managedclusters.cluster.open-cluster-management.io "cluster-worker2" not found, no csr is approved yet for cluster cluster-worker2]

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

2 participants