mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-25 01:10:22 +00:00
.. | ||
readme.md |
Recommendations Before Upgrading
- Snapshot / Backup your VMs!
- Backup data and volumes if necessary
- Drain nodes / scale down deployments
Upgrade Rancher
helm upgrade rancher rancher-latest/rancher \
--namespace cattle-system \
--set hostname=rancher.my.org
Upgrade RKE2 (Each node, not Admin!)
sudo curl -sfL https://get.rke2.io | INSTALL_RKE2_CHANNEL=latest sh -
then servers:
sudo systemctl restart rke2-server
or agents
sudo systemctl restart rke2-agent
Upgrade K3S (Each node, not Admin!)
sudo curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=latest <EXISTING_K3S_ENV> sh -s - <EXISTING_K3S_ARGS>
then servers:
sudo systemctl restart k3s
or agents
sudo systemctl restart k3s-agent
Upgrade Longhorn
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.5.3/deploy/longhorn.yaml
Upgrade Metallb
- Change version on the delete command to the version you are currently running (e.g., v0.13.11)
- Change version on the apply to the new version (e.g., v0.13.12)
- Ensure your Lbrange is still the one you want (check ipAddressPool.yaml)
kubectl delete -f https://raw.githubusercontent.com/metallb/metallb/v0.13.11/config/manifests/metallb-native.yaml
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.12/config/manifests/metallb-native.yaml
kubectl apply -f ipAddressPool.yaml
kubectl apply -f https://raw.githubusercontent.com/JamesTurland/JimsGarage/main/Kubernetes/RKE2/l2Advertisement.yaml
Upgrade Kube-VIP
- Delete the daemonset in Rancher or use kubectl delete
- Redeploy the daemonset with updated values (check kube-vip file)
kubectl delete -f kube-vip
kubectl apply -f kube-vip