Open Comradin opened 7 months ago
Thanks for reporting the issue.
I am not sure why I haven't seen this.
I only use IP addresses in the ip
field and the hostname field should only be used for informational messages, echos etc.
Can you share the whole JSON file please?
Expected Behaviour
I try to join three worker nodes to my master node, all four machines are Raspberry Pi 4B models with the latest Raspberry Pi OS (Debian Bookwork).
Current Behaviour
I get an error message, that k3sup cannot login into the node.
I have entries for the three machines in my
~/.ssh/config
file that defines the Username for the nodes.I have accessed all nodes prior to running the k3sup shell script so that the nodes are known to the ssh clients fingerprint collection. Both for hostname and ip address.
The cluster.sh script was generated using the plan option and hosts json file, with an entry for the worker from above that looks like this:
And the generated join command from the cluster.sh file looks like this:
I am not absolutely sure about the error, but I was able to fix the behavior when I switched from the ip address in the cluster.sh entry to the actual hostname. I have checked the DNS. The ip addresses used in the script are those of my three nodes.
When 192.168.178.64 became k3s-n1 and suddenly the join worked:
Possible Solution
From prior usages of of k3sup I know that --hostname works with ip addresses, too. But why use --hostname with an ip instead of the actual hostname, even more when there are --hostname, --ip, --server-host, and --server-ip?
But thats just an assumption from me, as I cannot explain what actually caused the error and why my fix worked. :grin:
Your Environment
What OS or type or VM are you using for your cluster? Where is it hosted? (for
k3sup install/join
): Raspberry Pi 4B with 4 GB and 8 GB RAM. The controlling machine is a ArchLinux based Notebook.Operating System and version (e.g. Linux, Windows, MacOS):
Do you want to work on this?
Subject to design approval, are you willing to work on a Pull Request for this issue or feature request?