This example shows how to configure Kubernetes storageclass to provision PowerVS volumes with various configuration parameters. IBM PowerVS Block CSI Driver is compatiable with in-tree PowerVS plugin on StorageClass parameters.
-
Edit the StorageClass spec in example manifest and update storageclass parameters to desired value. In this example, a
tier1
PowerVS volume will be created and formatted toxfs
filesystem. -
Deploy the example:
kubectl apply -f specs/
- Verify the volume is created:
kubectl describe pv
- Validate the pod successfully wrote data to the volume:
kubectl exec -it app cat /data/out.txt
- Cleanup resources:
kubectl delete -f specs/