Skip to content

Instantly share code, notes, and snippets.

@cuthbeorht
Created September 5, 2021 13:10
Show Gist options
  • Save cuthbeorht/12433f0388454eb60ab8b3e1cf8da5e0 to your computer and use it in GitHub Desktop.
Save cuthbeorht/12433f0388454eb60ab8b3e1cf8da5e0 to your computer and use it in GitHub Desktop.
Setup Pi Cluster
# cahnges to cmdline.text
cgroup_memory=1 cgroup_enable=memory ip={th ip address I want}::{gateway}:255.255.255.0:{host_name}:{network interface - prolly eth0}:off
# config.text
arm_64bit=1
# touch ssh
# enable iptables
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
# reboot
# install K3S
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" sh -s
# Get master token
cat /var/lib/rancher/k3s/server/node-token
# CHange the fan curve in the /boot/config.txt file
dtparam=poe_fan_temp0=80000,poe_fan_temp0_hyst=5000,poe_fan_temp1=82000,poe_fan_temp1_hyst=2000
# Setup slves
curl -sfL https://get.k3s.io | K3S_TOKEN="token" K3S_URL="https://{ip of master}:6443" K3S_NODE_NAME="{some name}" sh -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment