Skip to content

Latest commit

 

History

History
84 lines (55 loc) · 1.34 KB

README.md

File metadata and controls

84 lines (55 loc) · 1.34 KB

raspi-and-friends

HACKnight project at DINAcon 2024

The group in the AULA Hacknight is working on the Souveräne Mini-Cloud with a bunch of Raspberry Pi.

Wifi

SSID: AULAthenet Password: inter-nett

Setup Raspi

Tom

Hostname: raspberry-tom IP: 192.168.102.136

Username: tom Password: dinacon

Mischa

Hostname: raspberry-mischa IP: 192.168.102.151

Username: mischa Password: dinacon

Ozzy

Hostname: ozzberry IP: 192.168.102.152

Username: ozzy Password: HackNight-2024

Foss

Hostname: foss (.local)

Username: janikvonrotz Password: janikvonrotz

SSH: Enabled SSH-Login: Password

ssh: ssh janikvonrotz@

Setup K3S

Link: https://docs.k3s.io/quick-start

In the terminal of your laptop:

sudo curl -sfL https://get.k3s.io | K3S_TOKEN=dinacon sh -

SSH to the rasperry pi.

Enable cgroup v2: https://maxdon.tech/posts/k3s-raspberry-pi/

echo ' cgroup_memory=1 cgroup_enable=memory' | sudo tee -a /boot/firmware/cmdline.txt
sudo reboot

Setup worker:

sudo curl -sfL https://get.k3s.io | K3S_URL=https://HOST_IP_ADDRESS:6443 K3S_TOKEN=dinacon sh -

Copy the kubconfig on your laptop.

sudo chmod 644 /etc/rancher/k3s/k3s.yaml
cp /etc/rancher/k3s/k3s.yaml ~/.kube/config

Check if node is ready on your laptop.

k3s kubectl get nodes