---
# System prepended metadata

title: k3s installation

---

# k3s installation

### setting server and agent
you can run `k3s-uninstallall.sh` to delete all nodes(include server and agent)

`k3s server --disable-agent`

server port default is 6443
`k3s agent --token YOUR_TOKEN --server https://SERVER_ADDR:SERVER_PORT`

### apply dashbaord
Refrence:
https://rancher.com/docs/k3s/latest/en/installation/kube-dashboard/

![](https://i.imgur.com/20zXeWN.png)

![](https://i.imgur.com/iCOqPk1.png)

![](https://i.imgur.com/bIJBodw.png)

![](https://i.imgur.com/0P1vINU.png)
