Skip to main content
Version: 3.6

Upgrade Portworx Operator

Before upgrading the StorageCluster, you must upgrade the Portworx Operator to the latest version. The Operator manages the lifecycle of Portworx components, so keeping it current ensures compatibility with the Portworx Enterprise version you're upgrading to.

The method you use to upgrade the Operator depends on how you installed it:

Upgrade Operator installed using Portworx Central

Depending on your Portworx deployment type, select one of the following tabs.

  1. Retrieve the current version of the Portworx Operator:

    kubectl get deployment -n <portworx> portworx-operator -o=jsonpath='{.spec.template.spec.containers[0].image}' && echo
  2. Modify the spec.image field in the Portworx Operator deployment resource to update the image version:

    kubectl edit deployment -n <portworx> portworx-operator

    Locate this section:

    spec:
    template:
    spec:
    containers:
    - name: portworx-operator
    image: portworx/px-operator:<current-version>

    Replace <current-version> with <latest-version>, and save the changes.

  3. Verify the rollout status to confirm the update was successful:

    kubectl rollout status deployment/portworx-operator -n <portworx>

Upgrade Operator installed using the OpenShift console

Use this method if you installed the Portworx Operator from OperatorHub on OpenShift. Upgrading the Operator to version 23.5.0 or later also provides access to the Portworx Cluster dashboard in the OpenShift console to view and manage the Portworx deployment running in your cluster.

If you selected the automatic upgrade option during Portworx Operator installation, the Operator upgrades automatically when a new version is released, and no action is needed. If you selected the manual upgrade option, follow these steps to upgrade the Operator.

  1. Sign in to the OpenShift web console.

  2. In the navigation pane, select Operators > Installed Operators.
    A list of operators installed on your OpenShift cluster appears.

  3. From the Project dropdown menu, select portworx.
    The version of the Portworx Operator installed on your cluster appears.

  4. Under Status, select Upgrade available. Upgrade Portworx Operator

  5. Select Preview InstallPlan to review your installation plan.

  6. Select Approve.
    The Portworx Operator upgrades.

In this topic: