Kubernetes is a very powerful platform to scale your applications, and the Raspberry Pi is a low-cost computer with excellent power efficiency you can use to run tasks without breaking the bank. Canonical recently released Ubuntu 20.04, with full support for the Raspberry Pi. In this video, we take a look at how to create a Pi-powered Kubernetes cluster based on Ubuntu.
Install curl (if not already installed)
sudo apt install curl
Add the PGP key for the repository
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
Add the repository
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
Install Syncthing
sudo apt update sudo apt install syncthingxx
Add systemd unit
wget https://raw.githubusercontent.com/syncthing/syncthing/main/etc/linux-systemd/system/syncthing%40.service sudo chown root: syncthing@.service sudo mv syncthing@.service /etc/systemd/system sudo systemctl daemon-reload
Enable and start the unit
sudo systemctl enable syncthing@<user> sudo systemctl start syncthing@<user>
Access the web gui for Syncthing
http://localhost:8384
Allow connections to the web gui from network devices
Open the config file in an editor:
nano /home/<user>/.config/syncthing/config.xml
Change the line:
<address>127.0.0.1:8384</address>
To:
<address>0.0.0.0:8384</address>
Restart syncthing:
sudo systemctl restart syncthing@<user>
Now, you can access the web gui and add shared folders. Make sure you set up a username and password in the gui, to keep it safe.