init software_k0s
This commit is contained in:
27
active/systemd_k0s/k0s.md
Normal file
27
active/systemd_k0s/k0s.md
Normal file
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user