Upgrading Antrea with antrea-operator on Openshift cluster
Environment
On prem
Cause
New version release
Resolution
Prepare the manifests and image (antrea-operator/antrea/antrea-interworking) with the new version.
To deploy a released version of Antrea, pick a deployment manifest from the list of releases. For any given release <TAG> (e.g. v0.1.0), you can deploy Antrea as follows:
Update the role with the command oc apply -f role.yaml.
Upgrade antrea-operator by replacing the old image with the new image.You can either edit operator.yaml or edit the deployment with the command oc -n antrea-operator edit deploy antrea-operator. Make sure that the antrea-operator pod is running.
Upgrade Antrea and antrea-interworking.
Edit antreainstall CR.You can either edit operator.antrea.vmware.com_v1_antreainstall_cr.yaml or run the command oc -n antrea-operator edit antreainstall antrea-install. Update antreaImage with the new image.
(Optional) If antrea-interworking is enabled, update interworkingImage with the new antrea-interworking image.
Apply the changes.
Check the status.
Make sure that antrea-controller and antrea-agent are running.
Check the version of cluster operator antrea with the command oc get co antrea