Skip to main content
Version: 3.1

StorageClass for CSI

The following CSI StorageClass enables your tenants to create volumes using their token stored in a secret in their namespace.

When using CSI, the storage class references the secret for the three types of supported operations:

  • provision

  • node-publish (mount/unmount)

  • controller-expand

    kind: StorageClass
    name: px-storage
    repl: "1" px-user-token ${pvc.namespace} px-user-token ${pvc.namespace} px-user-token ${pvc.namespace}
    allowVolumeExpansion: true

Note the value ${pvc.namespace}. This will ensure that the CSI controller gets the appropriate token, which is tied to the namespace of the PVC.

Was this page helpful?