Install Portworx on-prem using the Operator
This topic provides instructions for installing Portworx with Kubernetes on-prem using the Operator.
Install the Operator
Enter the following
kubectl createcommand to deploy the Operator:
kubectl create -f https://install.portworx.com/?comp=pxoperator
Generate the specs
To install Portworx with Kubernetes, you must first generate Kubernetes manifests that you will deploy in your cluster:
- Navigate to PX-Central and log in, or create an account
Select Install and Run to open the Spec Generator
Select New Spec
Choose either Portworx Enterprise or Portworx Essentials , depending on which license you intend to use:
Apply the specs
Apply the generated specs to your cluster.
kubectl apply -f px-spec.yaml
Monitor the Portworx nodes
Enter the following kubectl get command, waiting until all Portworx nodes show as ready in the output:
kubectl -n kube-system get storagenodes -l name=portworx
Enter the following kubectl describe command with the NAME of one of the Portworx nodes to show the current installation status for individual nodes:
kubectl -n kube-system describe storagenode <portworx-node-name>
Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal PortworxMonitorImagePullInPrgress 7m48s portworx, k8s-node-2 Portworx image portworx/px-enterprise:2.5.0 pull and extraction in progress Warning NodeStateChange 5m26s portworx, k8s-node-2 Node is not in quorum. Waiting to connect to peer nodes on port 9002. Normal NodeStartSuccess 5m7s portworx, k8s-node-2 PX is ready on this nodeNOTE: In your output, the image pulled will differ based on your chosen Portworx license type and version.
Once you have a running Portworx installation, below sections are useful.
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