27 lines
432 B
Markdown
27 lines
432 B
Markdown
# 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
|
|
``` |