Skip to content

Files

29 lines (22 loc) · 688 Bytes

File metadata and controls

29 lines (22 loc) · 688 Bytes

Dynamic Volume Provisioning

This example shows how to create a BSU volume that will be encrypted and consume it from container dynamically.

Prerequisites

  1. Kubernetes 1.20+ (CSI 1.5.0).
  2. The osc-bsu-csi-driver driver is installed.

Usage

  1. Create a sample app along with the StorageClass and the PersistentVolumeClaim:
kubectl apply -f specs/
  1. Validate the volume was created and volumeHandle contains an BSU volumeID:
kubectl describe pv
  1. Validate the pod successfully wrote data to the volume:
kubectl exec -it app cat /data/out.txt
  1. Cleanup resources:
kubectl delete -f specs/