Deploy Portworx using the Operator
The Portworx Enterprise Operator takes a 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.
For more information about the StorageCluster
object and how the Operator manages changes, refer to the StorageCluster article.
Install Portworx using the OpenShift console
To install Portworx with OpenShift, you will first generate StorageCluster
spec that you will deploy in your cluster.
Generate the
StorageCluster
spec with the Portworx spec generator tool. close
CloseWithin the Portworx Operator page, select Create Instance to create a
StorageCluster
object.The spec displayed here represents a very basic default spec. Copy the spec you created with the spec generator and paste it over the default spec in the YAML editor on the OpenShift Console. Select Create to deploy Portworx.
Verify that Portworx has deployed successfully by navigating to the Storage Cluster tab of the Installed Operators page. Once Portworx has fully deployed, the status will show as Online.
Install Portworx using the command line
If you’re not using the OpenShift console, you can create the StorageCluster object using the oc
command:
Apply the generated specs to your cluster with the
oc apply
command:oc apply -f px-spec.yaml
Using the
oc get pods
command, monitor the Portworx deployment process. Wait until all Portworx pods show as ready:oc get pods -o wide -n kube-system -l name=portworx
Verify that Portworx has deployed by checking its status with the following command:
PX_POD=$(oc get pods -l name=portworx -n kube-system -o jsonpath='{.items[0].metadata.name}') oc exec $PX_POD -n kube-system -- /opt/pwx/bin/pxctl status
Post-Install
Once you have a running Portworx installation, below sections are useful.
-
Storage operations
Learn how to perform various storage operations using Portworx on Kubernetes
-
Stateful applications on Kubernetes
Learn how to install various applications with Portworx on Kubernetes
-
Operate and Maintain
Operations guide for running Portworx in Production with Kubernetes