Upgrade Portworx Operator
Before upgrading the StorageCluster, Portworx recommends upgrading the Operator to the latest version. The Operator manages the lifecycle of Portworx components. Follow these steps to upgrade the Portworx Operator:
-
Retrieve the current version of the Portworx Operator:
kubectl get deployment -n <portworx> portworx-operator -o=jsonpath='{.spec.template.spec.containers[0].image}' && echo -
Modify the
spec.imagefield in the Portworx Operator deployment resource to update the image version:kubectl edit deployment -n <portworx> portworx-operatorLocate 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. -
Verify the rollout status to confirm the update was successful:
kubectl rollout status deployment/portworx-operator -n <portworx>
note
- If you installed the Portworx Operator from OperatorHub or Marketplace, follow the documentation for the specific OperatorHub or Marketplace for information about upgrading the Portworx Operator.
- If you installed Portworx using the Portworx Helm charts, use the
helm upgradecommand to upgrade the Portworx Operator. For more information about the compatibility matrix, see Helm chart.