Files
homelab/active/systemd_k0s/k0s.md
2025-10-23 10:40:20 -04:00

432 B

K0s

Install

# Install k0s cli
curl -sSLf https://get.k0s.sh | sudo sh

# Setup the config
k0s config create > k0s.yaml

# Install controller/node
k0s install controller -c k0s.yaml --enable-worker
systemctl enable --now k0scontroller

# Make an admin user
mkdir ~/.kube
k0s kubeconfig create --groups "system:masters" admin > ~/.kube/config

Uninstall

systemctl stop k0scontroller
k0s reset
reboot