Setting up Raspberry PI Cluster with Raspberry Pi OS Lite (64 bits) 2022-04-04 Release #22
-
I am still having issues getting the ansible playbook to play nice and get everything installed and running. Hardware is a set of 7 Raspberry Pi 4 B 8Gb (bought them a while ago... wouldn't be able to buy that today...) with external 120Gb USB3 SSDs Each SSD is imaged with the Raspberry Pi Imager with the latest Raspberry Pi OS Lite (64 bits) 2022-04-04 Release. All have a static reservation in the DHCP server so that they always get the same IP address. Host.ini file is pretty simple:
The variables to run the playbook are as follows:
The following step fails:
With some investigation, I was able to tell that the first node started up but the second and third master haven't joined at all. Some more investigation of the k3s-init.service log details with `` returns a bunch of things with the following being the most alarming:
I'll do one more pull from the repo and set my IPs and give it one more try as is. From the above, is there anything that seems off in my setup? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You need to set your hostnames so that they are not the same. The default hostname is "raspberrypi" and if they all have the same name, you will have problems when joining. Remember that when you do You can refer to this post on how to setup the hostname based on what the DHCP provides. This will make your process of a simple re-image consistent across all your nodes before you apply the playbook. |
Beta Was this translation helpful? Give feedback.
Hostname is not setup
You need to set your hostnames so that they are not the same. The default hostname is "raspberrypi" and if they all have the same name, you will have problems when joining. Remember that when you do
kubectl get nodes
the node hostname is what's displayed in the first column.You can refer to this post on how to setup the hostname based on what the DHCP provides. This will make your process of a simple re-image consistent across all your nodes before you apply the playbook.