Upgrading Antrea
search cancel

Upgrading Antrea

book

Article ID: 370538

calendar_today

Updated On:

Products

VMware NSX VMware Container Networking with Antrea

Issue/Introduction

Upgrading Antrea with antrea-operator on Openshift cluster

Environment

On prem

Cause

New version release

Resolution

  1. Prepare the manifests and image (antrea-operator/antrea/antrea-interworking) with the new version.
    1. 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:
      kubectl apply -f https://github.com/antrea-io/antrea/releases/download/<TAG>/antrea.yml
    2. To deploy the latest version of Antrea (built from the main branch), use the checked-in deployment yaml:
      kubectl apply -f https://raw.githubusercontent.com/antrea-io/antrea/main/build/yamls/antrea.yml
  2. Update the role with the command oc apply -f role.yaml.
  3. 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.
  4. Upgrade Antrea and antrea-interworking.
    1. 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.
    2. (Optional) If antrea-interworking is enabled, update interworkingImage with the new antrea-interworking image.
    3. Apply the changes.
  5. Check the status.
    1. Make sure that antrea-controller and antrea-agent are running.
    2. Check the version of cluster operator antrea with the command oc get co antrea

Additional Information