Packs
The following are common scenarios that you may encounter when using Packs.
Scenario - Control Plane Node Fails to Upgrade in Sequential MicroK8s Upgrades
In clusters that use MicroK8s as the
Kubernetes distribution, there is a known issue when using the InPlaceUpgrade
strategy for sequential Kubernetes
upgrades. For example, upgrading from version 1.25.x to version 1.26.x and then to version 1.27.x may cause the control
plane node to fail to upgrade. Use the following steps to troubleshoot and resolve the issue.
Debug Steps
-
Execute the first MicroK8s upgrade in your cluster. For example, upgrade from version 1.25.x to version 1.26.x.
-
Ensure you can access your cluster using kubectl. Refer to the Access Cluster with CLI guide for more information.
-
After the first upgrade is complete, issue the following command to delete the pod named
upgrade-pod
.kubectl delete pod upgrade-pod --namespace default
-
Once the pod is deleted, proceed to the next upgrade. For example, upgrade from version 1.26.x to version 1.27.x.
-
Within a few minutes, the control plane node will be upgraded correctly.