2. Deploy Portworx

The Portworx Enterprise Operator takes a new custom Kubernetes resource called StorageCluster as input. The StorageCluster is a representation of your Portworx cluster configuration. Once the StorageCluster object is created, the operator will deploy a Portworx cluster corresponding to the specification in the StorageCluster object. The operator will watch for changes on the StorageCluster and update your cluster according to the latest specifications.

To know more details of the StorageCluster object and how operator manages changes, visit the Portworx Operator page.

Generate the specs

To install Portworx with Openshift, you will first generate StorageCluster spec that you will deploy in your cluster. To generate the spec, click Generating the Portworx cluster spec close

  • Under the Portworx Operator, you can click on Create New to create a StorageCluster object.

Create Storage Cluster

  • Copy the spec created from the spec generator and paste in the YAML editor on the Openshift Console.

Storage Cluster Spec

You can also create the StorageCluster object using oc or kubectl as show below.

Apply the specs

Apply the generated specs to your cluster.

kubectl apply -f px-spec.yaml
Monitor the portworx pods

Wait till all Portworx pods show as ready in the below output:

kubectl get pods -o wide -n kube-system -l name=portworx
Monitor Portworx cluster status
PX_POD=$(kubectl get pods -l name=portworx -n kube-system -o jsonpath='{.items[0].metadata.name}')
kubectl exec $PX_POD -n kube-system -- /opt/pwx/bin/pxctl status


Once you have a running Portworx installation, below sections are useful.

Last edited: Thursday, Aug 8, 2019