This example shows how to create a BSU volume and consume it from container dynamically.
- Kubernetes 1.20+ (CSI 1.5.0).
- The osc-bsu-csi-driver driver is installed.
- Create a sample app along with the StorageClass and the PersistentVolumeClaim:
kubectl apply -f specs/
- Validate the volume was created and
volumeHandle
contains an BSU volumeID:
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/