k8s-config/docs/upgrading-k3s-notes.md

54 lines
1.7 KiB
Markdown

# Notes on updating k3s and cilium
Notes:
1. Cilium need to be uninstalled with the cilium cli version it was installed with,
then reinstalled using the new cilium cli and the new installation instructions.
2. K3S can be updated by calling the install script with the same options as before.
Update k3s.
Update cilium.
Update k3s.
j7s-cluster:
```
export INSTALL_K3S_EXEC="server --disable traefik --flannel-backend=none --disable-network-policy --cluster-cidr 10.46.0.0/16 --service-cidr 10.47.0.0/16 --cluster-dns 10.47.0.10 --selinux --resolv-conf /run/systemd/resolve/resolv.conf"
curl -sfL https://get.k3s.io | sh -s -
```
infra-cluster:
```
export INSTALL_K3S_EXEC="server --disable traefik --flannel-backend=none --disable-network-policy --cluster-cidr 10.44.0.0/16 --service-cidr 10.45.0.0/16 --cluster-dns 10.45.0.10 --selinux"
curl -sfL https://get.k3s.io | sh -s -
```
I don't know why I needed resolve-conf in one but not the other, but I did confirm it was not set in the infra-cluster systemd file...
Update cilium:
1. Move cilium binary to cilium-original
For j7s-cluster:
2. `export KUBECONFIG=~/.kube/j7s-cluster.yaml`
3. `cilium-original uninstall`
4. `cilium install --version 1.15.5 --set=ipam.operator.clusterPoolIPv4PodCIDRList="10.46.0.0/16"`
5. `ssh jimmy@192.168.1.103`
6. `sudo su`
7. `iptables-save | grep -v '\-A' | iptables-restore`
8. `exit` `exit`
For infra cluster:
2. `export KUBECONFIG=~/.kube/infra.yaml`
3. `cilium-original uninstall`
4. `cilium install --version 1.15.5 --set=ipam.operator.clusterPoolIPv4PodCIDRList="10.44.0.0/16"`
wait......
5. `ssh jimmy@192.168.1.112`
6. `sudo su`
7. `iptables-save | grep -v '\-A' | iptables-restore`
8. `exit` `exit`
I didn't wait where I put wait..... and had to rstart k3s...