Preparation
Making initial configuration for the devices.
Download Raspbian Lite and flash it to an SD card and all USBs.
Default user is
pi, password israspberry.
On a first RPI boot from SD card and upgrade all:
sudo apt-get install && sudo apt-get upgradeAdd the following line to the end of /boot/config.txt
program_usb_boot_mode=1WARN Don't create any new lines.
Reboot device and validate that USB boot is enabled:
$ vcgencmd otp_dump | grep 17
17:3020000aBoot from this SD card all others RPis. At this point you can start booting from a USB sticks.
On every node you need to setup static IP in /etc/dhcpcd.conf (use your network):
profile static_wlan0
static ip_address=192.168.0.101/24
static routers=192.168.0.1
static domain_name_servers=8.8.8.8You may choose to setup static IPs through your router.
Then setup through raspi-config:
- WiFi connection
- Host name, e.g.
k8s-master-1,k8s-worker-1,k8s-worker-2, etc. - Change pi password
- Enable
sshdserver
Last but not least is to enable ntp which will sync clocks between your workers.
This is extremely important since server will drop too old messages.
ntpis disabled by default in the latest system versions.
sudo apt install ntp
sudo systemctl enable ntp
sudo timedatectl set-ntp 1To adjust your timezone run raspi-config and go to
Localization Options -> Change Timezone.