add auto upgrade docs
This commit is contained in:
27
README.md
27
README.md
@@ -24,6 +24,10 @@ A project to store container-based hosting stuff.
|
||||
- [Jellyfin](#jellyfin)
|
||||
- [Iperf3](#iperf3)
|
||||
- [Upgrading](#upgrading)
|
||||
- [Nodes](#nodes)
|
||||
- [K3S](#k3s)
|
||||
- [Automated Upgrades](#automated-upgrades)
|
||||
- [Manual Upgrades](#manual-upgrades)
|
||||
- [Create a Userspace](#create-a-userspace)
|
||||
- [Quickstart](#quickstart)
|
||||
- [Userspace](#userspace)
|
||||
@@ -625,11 +629,32 @@ helm upgrade --install \
|
||||
|
||||
## Upgrading
|
||||
|
||||
### Nodes
|
||||
|
||||
```bash
|
||||
kubectl drain node1 --ignore-daemonsets --delete-emptydir-data
|
||||
watch -n 3 kubectl get pod --all-namespaces -w
|
||||
```
|
||||
|
||||
### K3S
|
||||
|
||||
#### Automated Upgrades
|
||||
|
||||
<https://docs.k3s.io/upgrades/automated>
|
||||
|
||||
```bash
|
||||
kubectl apply -f https://github.com/rancher/system-upgrade-controller/releases/latest/download/system-upgrade-controller.yaml
|
||||
kubectl apply -f upgrade-plan.yaml
|
||||
kubectl get pod -w -n system-upgrade
|
||||
```
|
||||
|
||||
#### Manual Upgrades
|
||||
|
||||
<https://docs.k3s.io/upgrades/manual#manually-upgrade-k3s-using-the-binary>
|
||||
|
||||
```bash
|
||||
sudo su -
|
||||
wget https://github.com/k3s-io/k3s/releases/download/v1.28.2%2Bk3s1/k3s
|
||||
wget https://github.com/k3s-io/k3s/releases/download/v1.28.3%2Bk3s1/k3s
|
||||
systemctl stop k3s
|
||||
chmod +x k3s
|
||||
mv k3s /usr/local/bin/k3s
|
||||
|
||||
Reference in New Issue
Block a user