Upgrade Kubernetes components(Kurl.sh)
In the ever-evolving landscape of Kubernetes, keeping your cluster components up-to-date is crucial for security, stability, and performance. Regular updates ensure that you have access to the latest features, bug fixes, and security patches. However, updating Kubernetes cluster components can be a complex task that demands careful planning and execution. Here are the steps to navigate the process smoothly:
Server preparation and downtime
Carrying out system updates and rebooting when necessary is essential for maintaining the security, stability, and performance of your server. Apply any pending updates through your system’s package manager and reboot the server. Schedule about at least two hours of downtime.
Backup your server
Take the time to back up your entire server, including configuration files, application data, and any custom resources(PostgreSQL Database). This ensures that you can roll back to a previous state in case anything goes wrong during the update process.
Download the latest package
Create a new directory on the server:
mkdir -p 3yd_v_23_10_0 && cd 3yd_v_23_10_0
Download the archive package from the link provided by the 3YD Technical Support team:
curl -o 3yd_v_23_10_0.tgz “<download_ink>“
Extract the package
tar xvf 3yd_v_23_10_0.tgz
Copy the values.yaml
and pv.yaml
files from the previous version directory in the new one e.g
cp /path-to/3yd_v_23_4_0/values.yaml /path-to/3yd_v_23_10_0/values.yaml
cp /path-to/3yd_v_23_4_0/pv.yaml /path-to/3yd_v_23_10_0/pv.yaml
Uninstall 3YD app and reset the Kubernetes system
Stop the 3YD application stack
./helm uninstall order-management
Stop and reset the Kubernetes stack
kubeadm reset
The reset process does not clean CNI configuration. To do so, you must remove /etc/cni/net.d
rm -rf /etc/cni/net.d
Reboot the server
reboot now
Run the install.sh script
./install.sh $DOMAIN $UPLOADS_DIR; exec bash -l
Confirm the Kubernetes stack is updated and the 3YD app is running
kubectl get node -o wide
kubectl get pods -A
Changelog:
Release 24.12 LTS, December 2024
Kubernetes - updated to 1.31.1
Contour - updated to 1.30.0
Flannel - updated to 0.25.7
Containerd - updated to 1.6.33
Up to LTS release 23.11 | After LTS release 24.12 |
---|---|
spec:
kubernetes:
version: "1.27.4"
flannel:
version: "0.22.1"
contour:
version: "1.25.2"
containerd:
version: "1.6.21"
kurl:
installerVersion: "v2023.08.10-0" | spec:
kubernetes:
version: "1.31.1"
flannel:
version: "0.25.7"
contour:
version: "1.30.0"
containerd:
version: "1.6.33"
kurl:
installerVersion: "v2024.10.24-0" |
Release 23.10 LTS, October 2023
Kubernetes - updated to 1.27.4
Contour - updated to 1.25.2
Weave - deprecated and replaced by Flannel
Docker - deprecated and replaced by Containerd
Up to LTS release 23.4 | After LTS release 23.10 |
---|---|
spec:
kubernetes:
version: "1.21.1"
weave:
version: "2.8.1"
contour:
version: "1.15.1"
docker:
version: "20.10.5" |