github.com/qsunny/k8s@v0.0.0-20220101153623-e6dca256d5bf/examples-master/volumes/storageos/storageos-pv.yaml (about)

     1  apiVersion: v1
     2  kind: PersistentVolume
     3  metadata:
     4    name: pv0001
     5  spec:
     6    capacity:
     7      storage: 5Gi
     8    accessModes:
     9      - ReadWriteOnce
    10    persistentVolumeReclaimPolicy: Delete
    11    storageClassName: fast
    12    storageos:
    13      # This volume must already exist within StorageOS
    14      volumeName: pv0001
    15      # volumeNamespace is optional, and specifies the volume scope within
    16      # StorageOS.  Set to `default` or leave blank if you are not using
    17      # namespaces.
    18      #volumeNamespace: default
    19      # The filesystem type to create on the volume, if required.
    20      fsType: ext4
    21      # The secret name for API credentials
    22      secretName: storageos-secret