From 5b474c7190b4297026c64d5ca1218dbc73fffe67 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Thu, 23 Oct 2025 10:40:20 -0400 Subject: [PATCH] init software_k0s --- active/systemd_k0s/k0s.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 active/systemd_k0s/k0s.md diff --git a/active/systemd_k0s/k0s.md b/active/systemd_k0s/k0s.md new file mode 100644 index 0000000..db88bf9 --- /dev/null +++ b/active/systemd_k0s/k0s.md @@ -0,0 +1,27 @@ +# K0s + +## Install + +```bash +# 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 + +```bash +systemctl stop k0scontroller +k0s reset +reboot +``` \ No newline at end of file