Enable Portworx OpenShift Dynamic Plugin
The Portworx OpenShift Dynamic plugin is an OpenShift console plugin that provides integrated storage observability and management directly within the OpenShift console. It simplifies Day-2 operations, monitoring, and troubleshooting for Portworx storage clusters, Kubernetes applications, and OpenShift integrations such as KubeVirt.
When enabled, the plugin adds:
- A Portworx option in the left navigation pane of the OpenShift console, allowing you to access details of your Portworx cluster.
- A Portworx tab on the KubeVirt VirtualMachine page, allowing you to view and manage PVCs or Disks for KubeVirt VMs.
For more information, see Observing Portworx PVCs and Disks for KubeVirt VMs. - Portworx tabs on other storage-related pages such as StorageClasses and PersistentVolumeClaims, allowing you to view detailed information about your Portworx-backed resources.
This topic describes the steps to enable the Portworx OpenShift Dynamic plugin from the OpenShift console. It also explains how to upgrade the plugin installed on your cluster.
Pre-requisites
- You must have the Portworx Operator installed in your cluster.
- You cluster must be running OpenShift version 4.12 or later.
Procedure
To enable the Portworx OpenShift Dynamic plugin, follow these steps:
-
Sign in to the OpenShift Container Platform web console.
-
From the left navigation pane, click Installed Operators.
-
Click Portworx Enterprise.
-
In the Console plugin section, click the pencil icon.
The system displays the Console plugin enablement window. -
Select Enable and click Save.
The system enables the plugin and displays the Portworx option in the left navigation pane.
Upgrade Portworx OpenShift Dynamic Plugin
To upgrade Portworx OpenShift Dynamic plugin and ensure your Portworx deployment is using the latest recommended components, follow the appropriate procedure based on your setup:
With Portworx Upgrade
When you upgrade Portworx, Portworx OpenShift Dynamic Plugin is automatically upgraded. The updated plugin version is aligned with the Portworx version you are upgrading to.
Without Portworx Upgrade
To upgrade the plugin to the version aligned with a Portworx version without upgrading Portworx:
-
Add the
autoUpdateComponentsfield to the storage cluster specification:kind: StorageCluster
spec:
autoUpdateComponents: OnceThis prompts the Portworx Operator to reconcile all components and retrieve the latest images corresponding to the Portworx version.
noteTo upgrade only the plugin, you must create a ConfigMap to scope the update; otherwise, all components are upgraded.
With Portworx Upgrade (with configmap)
-
Download the latest Portworx version manifest:
curl -o versions.yaml "https://install.portworx.com/$<portworx-version>/version?kbver=$<kubernetes-version>&opver=$<operator-version>"Replace:
<portworx_version>with the Portworx version you want to use.<kubernetes-version>with the Kubernetes version you want to use.<operator-version>with the Operator version you want to use.
-
Update the px-versions configmap with the downloaded version manifest:
kubectl -n <px-namespace> delete configmap px-versions
kubectl -n <px-namespace> create configmap px-versions --from-file=versions.yaml -
Add the
autoUpdateComponentsfield to the storage cluster specification:kind: StorageCluster
spec:
autoUpdateComponents: OnceThis prompts the Portworx Operator to reconcile all components and retrieve the latest images from the configmap if available, or download them from the manifest if not.
To a custom image (Without Portworx upgrade)
To upgrade Portworx OpenShift Dynamic plugin to a custom image:
-
Update the
configmap/px-versionswith the desired custom plugin image. -
Add the
autoUpdateComponentsfield to the storage cluster specification:kind: StorageCluster
spec:
autoUpdateComponents: OnceThis prompts the Portworx Operator to reconcile all components and retrieve the latest images from the configmap if available, or download them from the manifest if not.