Upgrading to the latest reference implementation
This topic describes how to upgrade to the latest reference implementation of Component Pack Services.
Before you begin
Note:
- The upgrade steps will only provide zero down-time to your environment if you have three or more master machines, two or more generic workers, and two or more infrastructure workers. If this is not the case, then schedule downtime for the upgrade.
- If you enable the Pod Security Policies admission controller during the cluster upgrade, and you are still running Component Pack 6.0.0.6/7 pods without Pod Security Policies enabled, there will be downtime as pods will fail to be recreated during the failover process because they will not meet any of the policy rules until you upgrade to 6.0.0.8.
- In High Availability deployments, it is advised to ensure all evicted pods are in a ready state on an alternate node, before moving on to upgrading the next node.
Before beginning the upgrade, ensure that the following requirements are in place:
- Your current reference implementation should have a kubeadm Kubernetes cluster running any version from 1.11.0 to 1.11.6 as there is a known issue (kubeadm upgrade apply failure with same kubernetes version) when trying to do a "same version" kubeadm cluster upgrade on v1.11. You may want to do a "same version" upgrade if you are already on v1.11.9 and do not have the Pod Security Policy admission controller enable, but would now like to enable it. See the following technote for a suggested workaround: kubeadm upgrade apply failure with same kubernetes version.
- Yum must be working on all servers to install the new required packages.
- You must have sudo privileges on all servers.
- Ensure that there are enough resources to handle failover on all machine's by complying with the required minimum specifications as per Component Pack installation roadmap and requirements.
About this task
Upgrading the reference implementation involves upgrading the primary master, the secondary masters, all worker nodes, and the Calico network.
Procedure
Begin by completing the following steps to upgrade the primary master:
Upgrading the secondary masters
Procedure
Upgrading the worker nodes
Procedure
Upgrading the Calico network
Procedure
Complete the following steps to upgrade the Calico network add-on to version 3.3. The
upgrade path can be followed without affecting connectivity or network policy for any existing pods.
However, it is recommended that you do not deploy new pods to a node that is being
upgraded.