Login into Azure and OpenShift cluster
-
From Azure VM, login into Azure with the command
az loginNote: Logging into Azure connects you to your default subscription by default. If you have multiple subscriptions, ensure you switch to the correct context before connecting to ARO cluster. -
From Azure VM, login into Azure Red Hat OpenShift (ARO) cluster with the command
oc loginExample of Linux login script:
# Define your variables RESOURCE_GROUP="<ARO cluster resource group name>" CLUSTER_NAME="<ARO cluster name>" # Retrieve the admin password ADMIN_PW=$(az aro list-credentials \ --name $CLUSTER_NAME \ --resource-group $RESOURCE_GROUP \ --query "kubeadminPassword" -o tsv) # Retrieve the API server URL API_URL=$(az aro show \ --name $CLUSTER_NAME \ --resource-group $RESOURCE_GROUP \ --query "apiserverProfile.url" -o tsv) # ARO login oc login $API_URL -u kubeadmin -p $ADMIN_PW
Create portworx namespace
On the ARO cluster, create the portworx namespace:
oc create namespace portworx
Enable user‑workload monitoring for Portworx
Create the cluster-monitoring-config ConfigMap in openshift-monitoring namespace. This lets OpenShift monitoring scrape Portworx metrics.
Create cluster-monitoring-config.yaml file:
apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-monitoring-config
namespace: openshift-monitoring
data:
config.yaml: |
enableUserWorkload: true
and apply it:
oc apply -f cluster-monitoring-config.yaml
Install Portworx Operator on ARO cluster
-
Log into the ARO web console.
-
Go to Ecosystem → Software Catalog, search for Portworx Enterprise, select it, and click on Install.
-
Choose “A specific namespace on the cluster” and select the already created
portworxnamespace. -
Optional - for the Console plugin, choose Enable to get the Portworx console inside the ARO UI, set Update approval to Automatic for automatic upgrades of Portworx Operator.
-
Click Install to deploy the operator into
portworxnamespace. Do NOT create a Storage Cluster now, it will be created later after all necessary configurations are finished.
Configure multipath and udev rules on ARO worker nodes
-
Create
multipath.conffile for Everpure Cloud Dedicated array (example configuration file is here, the file is the same for all ARO worker nodes) and set:○ Disable user‑friendly names:
user_friendly_names noâ—‹ Set:
find_multipaths no(each controller has a single path) -
Create
udev.rulesfile to set appropriate queue depth and tuning per Linux with Everpure Cloud Dedicated recommendations here (the file is the same for all ARO worker nodes). -
Create an OpenShift MachineConfig file with base64‑encoded contents of those two files:
# Example how to create single-line base64 for MachineConfig base64 -w0 multipath.conf base64 -w0 udev.rulesMachineConfig file (
98-worker-pure-multipath.yaml) with base64 output of previous command inserted:apiVersion: machineconfiguration.openshift.io/v1 kind: MachineConfig metadata: name: 98-worker-pure-multipath labels: machineconfiguration.openshift.io/role: worker spec: config: ignition: version: 3.2.0 storage: files: - path: /etc/multipath.conf mode: 0644 contents: source: data:text/plain;charset=utf-8;base64,<insert base64-multipath-conf> - path: /etc/udev/rules.d/99-pure-storage.rules mode: 0644 contents: source: data:text/plain;charset=utf-8;base64,<insert base64-udev-rules> systemd: units: - name: iscsid.service enabled: true - name: multipathd.service enabled: true -
Use an OpenShift MachineConfig file to apply both
multipath.confand theudev.rulesfiles to all ARO worker nodes.In Azure Red Hat OpenShift, applying a MachineConfig declaratively updates the host-level operating system on worker nodes, such as systemd services, kernel settings, or /etc/ files.
The Machine Config Operator (MCO) manages this by merging the update into the worker MachineConfigPool and performing a rolling update across the cluster. To maintain uptime, the MCO cordons, drains, applies the configuration, and reboots worker nodes one at a time before restoring them to ready status.
Apply the MachineConfig file now and wait for all worker nodes to roll.
oc apply -f 98-worker-pure-multipath.yaml # after a short time after applying the MachineConfig file, the Status will change to Updating - # watch worker pool and wait for all workers are updated (Status = Ready, Updated = True) oc get mcp worker -w -
After the roll-out is finished, verify the configuration is applied to all worker nodes (verify that both
multipath.confandudev.rulesfiles are applied):# 1) Get node name oc get nodes # 2) Start a debug pod on that node and chroot into the host oc debug node/<worker-node-name> -T -- chroot /host # Check config files cat /etc/multipath.conf cat /etc/udev/rules.d/99-pure-storage.rules # Check services (ensure iscsid and multipathd services are enabled and restarted on workers) systemctl restart iscsid systemctl restart multipathd systemctl status iscsid systemctl status multipathd
Create Everpure Cloud Dedicated user and API token
Create user and configure API token for PX-CSI driver connection to the Everpure Cloud Dedicated array.
-
Create a user with Storage Admin role (or an equivalent realm‑scoped role in secure multi‑tenancy setups).
-
Generate an API token for this user.
-
If using secure multi‑tenancy:
○ Create realm, pod, and management‑access policy objects.
â—‹ Associate the user with that policy.
â—‹ Generate an API token scoped to the correct realm/pod.
Use this Purity CLI commands to create new user and API token:
# Run as pureuser or another Array Admin.
# Enter and confirm the password when prompted (the storage_admin policy permits storage operations but not global/system configuration changes)
pureadmin create --access-policy storage_admin px-pure-user
#Then SSH to the array as the new user and generate its API token:
ssh px-pure-user@<array-management-IP>
pureadmin create --api-token
Build pure.json configuration file for PX-CSI
Create a pure.json file describing the Everpure Cloud Dedicated array(s) for PX‑CSI driver, for example:
{
"FlashArrays": [
{
"MgmtEndPoint": "<pure-storage-cloud-dedicated-management-endpoint-IP>",
"APIToken": "<pure-storage-cloud-dedicated-api-token>"
}
]
}
-
For secure multi‑tenancy, include a Realm (and if needed, Pod) field in each array entry.
-
If you want topology‑aware provisioning, you can add topology labels in pure.json file and plan to label Kubernetes nodes accordingly (e.g. availability zone / rack).
Create the px-pure-secret in ARO cluster
Create a secret from pure.json file in the namespace where PX‑CSI is installed:
oc create secret generic px-pure-secret \
--namespace <portworx-namespace> \
--from-file=pure.json=/path/to/pure.json
Verify connectivity from ARO nodes to Everpure Cloud Dedicated
Login to ARO worker nodes and verify if Everpure Cloud Dedicated iSCSI endpoint is reachable:
# 1) Get node name
oc get nodes
# 2) Start a debug pod on that node and chroot into the host
oc debug node/<worker-node-name> -T -- chroot /host
# 3) Discover Everpure Cloud iSCSI targets from a worker node
iscsiadm -m discovery -t st -p <pure-storage-cloud-dedicated-iscsi-interface-endpoint IP>
# 4) Confirm unique initiator per worker node
cat /etc/iscsi/initiatorname.iscsi
# 5) If you need to set a new initiator name:
echo "InitiatorName=`/sbin/iscsi-iname`" > /etc/iscsi/initiatorname.iscsi
systemctl restart iscsid
Generate the PX-CSI StorageCluster spec (Portworx Central)
Use Portworx Central to get a correct ARO-flavoured StorageCluster spec file:
-
Go to Portworx Central → Spec List → Create New Spec → PX-CSI.
-
On **Generate PX-CSI Spec** fill following information:
â—‹ PX-CSI Version: choose a supported release (e.g. 26.1.x).
â—‹ Namespace: the namespace where the Portworx Operator is already installed (e.g. portworx).
â—‹ Distribution Name: Azure Red Hat OpenShift (ARO)+ if exposed, otherwise generic OpenShift is fine (the YAML is valid for both).
â—‹ Access type: Block Storage
â—‹ Storage Area Network Type: iSCSI
â—‹ Optionally Install Prometheus if you want CSI metrics.
Leave other fields with their defaults.
-
Click Save and Download to download the StorageCluster manifest file.
Apply PX-CSI StorageCluster manifest on ARO cluster
-
Ensure the operator is present (you should have this already, but for completeness):
ARO UI → Ecosystem → Software Catalog → search Portworx Enterprise operator → Install into portworx namespace.
# Check for Portworx Enterprise operator status in the portworx namespace (PHASE output should be "Succeeded") oc get csv -n portworx
-
Ensure px-pure-secret is created in the portworx namespace
Apply the PX-CSI StorageCluster YAML file into the cluster:
# if operator + px-pure-secret are in "portworx" namespace
oc project portworx
oc apply -f px-csi-storagecluster.yaml
The Storage Cluster will be created with name like px-cluster-xxxxxxxx-..., monitor Storage Cluster status in ARO UI until the status will be "Running".
During the StorageCluster creation, PX-CSI will auto-discovers Everpure Cloud Dedicated credentials:
-
Read
px-pure-secretin its namespace. -
Parse
pure.jsonfile (FlashArrays list). -
Use those Everpure Cloud Dedicated endpoints + token to manage storage volumes.