Portworx CSI Storage Class

To use a CSI base storage class with Portworx ensure that your installation was setup with CSI enabled, if your Portworx installation isn't running with CSI enabled view the Portworx document here to enable CSI.

Once Portworx is running you need to create a storage class with the fowling configuration, this can be applied via the Platform9 SaaS Management Plane using the Storage Class dashboards.

YAML
Copy

Create Storage Class

Navigate to the Storage Class dashboard and click Add New Storage Class.

Next, enter the details for the storage class.

Finally, review the configuration, ensure it matches the example below including the replication parameter at the bottom of the YAML spec. Once the YAML is correct click Complete and Platform9 will create the storage class.

YAML
Copy

Create a Test PVC

You can test the CSI based storage class by creating a PVC with the following YAML spec and applying it to your cluster. Copy the YAML to a file locally and use kubectl to add the PVC. Ensure the StorageClassName matches the storage class that you created above

YAML
Copy

Create the PVC from the YAML file with the command below:

Bash
Copy
output
Copy

To view the state of the PVC run

Bash
Copy
Output
Copy

Use Kubectl to apply the YAML spec below to create an example MySQL application to use the new PVC.

Bash
Copy
YAML
Copy

Run kubectl get all -n default command to view the running deployment.

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard