Verify that all nodes actually joined - Debian #54
-
Expected BehaviorI run ansible-playbook site.yml -i inventory/k3s-cluster/hosts.ini and get a k3s-cluster deployed. Current BehaviorRuns through the playbook until the verification process which it goes through without success. Steps to Reproduce
Context (variables)Operating system: Debian 11 Hardware: (CPU/RAM/Disk type)
Variables Used:
k3s_version: v1.24.3+k3s1
ansible_user: ansible
ansible_ssh_private_key_file: ~/.ssh/ansible
systemd_dir: /etc/systemd/system
system_timezone: "Europe/Stockholm"
flannel_iface: "eth0"
apiserver_endpoint: "10.0.0.100"
k3s_token: "strawberrycake"
extra_server_args: "--disable servicelb --disable traefik"
extra_agent_args: ""
kube_vip_tag_version: "v0.5.0"
metal_lb_speaker_tag_version: "v0.13.4"
metal_lb_controller_tag_version: "v0.13.4"
metal_lb_ip_range: "10.0.0.80-10.0.0.90" Hosts
[master]
k3s-master-01
k3s-master-02
k3s-master-03
[node]
k3s-worker-01
k3s-worker-02
k3s-worker-03
[k3s_cluster:children]
master
node Possible Solution |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
This seems to be a Debian specific issue. It works fine with Ubuntu
|
Beta Was this translation helpful? Give feedback.
-
Hm, weird. I'll try with Ubuntu in a minute or two |
Beta Was this translation helpful? Give feedback.
-
Tested with no more modifications other than what has been documented above and I still experience the same thing using Ubuntu 22.10. Also tested with 20.04 so I can't seem to blame this on that unfortunately. Ended up with this error, which I've seen on Debian as well:
|
Beta Was this translation helpful? Give feedback.
-
Not sure, I can run it multiple times in my lab (just did at least 20x to fix a bug). Are you sure you're using the correct ethernet adapter name? |
Beta Was this translation helpful? Give feedback.
-
Check this to be sure #20 |
Beta Was this translation helpful? Give feedback.
-
I was working with OP in discord. the vm clones may all have the same hostname in /etc/hostname causing duplicate node names preventing them from joining into the cluster. |
Beta Was this translation helpful? Give feedback.
-
This has been resolved and the issue was that my masters/nodes didn't have a proper hostname set. |
Beta Was this translation helpful? Give feedback.
I was working with OP in discord. the vm clones may all have the same hostname in /etc/hostname causing duplicate node names preventing them from joining into the cluster.