My setup for a homelab kubernetes environment
MIT License
My setup for a homelab kubernetes environment with:
A chance to review things I think I know. An opportunity to learn more. An itch to build. Boredom.
Saving on time and memory. Static origin certs are good enough for my purposes.
In Cloudflare:
secrets.yaml
values.yaml
In GitHub:
GHCR_TOKEN
secret with a personal access token having package write permissiongh-pages
orphan branchTo use the minio mc
CLI:
homelab
alias to the ~/.mc/config.json
filemake
targets in the minio
folderTo run on a single Raspberry Pi 3 (ARMv7):
k3d
onto the Pimake local-cluster
~/.kube/config
back to my main machinelocal-path
StorageClass (probably should skip install and install custom)make sync
from the main machineTo set up a Raspberry Pi 4 (ARMv7) cluster:
ssh
file in the microSD card boot partitionwpa_supplicant.conf
to boot partition like:country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="SSID"
psk="PASSWORD"
}
[email protected]
pi
user password~/.ssh/authorized_hosts
raspi-config
to set hostname, lower GPU memory, expand root partitioncgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory
to /boot/cmdline.txt
sudo /sbin/iw wlan0 set power_save off
and permanently in/etc/rc.local
before the exitsudo dphys-swapfile swapoff && sudo dphys-swapfile uninstall && sudo update-rc.d dphys-swapfile remove
k3sup
on my dev boxmake cluster
cfsync/chart/Chart.yaml
and helmfile.yaml
.