|
| 1 | +apiVersion: storage.k8s.io/v1 |
| 2 | +kind: StorageClass |
| 3 | +metadata: |
| 4 | + name: storageclass-wekafs-dir-api |
| 5 | +provisioner: csi.weka.io |
| 6 | +reclaimPolicy: Delete |
| 7 | +volumeBindingMode: Immediate |
| 8 | +allowVolumeExpansion: true |
| 9 | +parameters: |
| 10 | + volumeType: dir/v1 |
| 11 | + filesystemName: default |
| 12 | + # optional parameters setting UID, GID and permissions on volume |
| 13 | + # UID of the volume owner, default 0 (root) |
| 14 | + # ownerUid: "1000" |
| 15 | + |
| 16 | + # GID of the volume owner, default 0 (root) |
| 17 | + # ownerGid: "1000" |
| 18 | + |
| 19 | + # permissions in Unix octal format, default "0750" |
| 20 | + # permissions: "0775" |
| 21 | + |
| 22 | + # capacity enforcement mode (either SOFT or HARD) |
| 23 | + # - HARD or unspecified: pod will not be able to write above quota |
| 24 | + # - SOFT: warning will be issued on Weka cluster, but writing will not be blocked |
| 25 | + capacityEnforcement: HARD |
| 26 | + # name of the secret that stores API credentials for a cluster |
| 27 | + # change the name of secret to match secret of a particular cluster (if you have several Weka clusters) |
| 28 | + csi.storage.k8s.io/provisioner-secret-name: &secretName csi-wekafs-api-secret |
| 29 | + # change the name of the namespace in which the cluster API credentials |
| 30 | + csi.storage.k8s.io/provisioner-secret-namespace: &secretNamespace csi-wekafsplugin |
| 31 | + # do not change anything below this line, or set to same parameters as above |
| 32 | + csi.storage.k8s.io/controller-publish-secret-name: *secretName |
| 33 | + csi.storage.k8s.io/controller-publish-secret-namespace: *secretNamespace |
| 34 | + csi.storage.k8s.io/controller-expand-secret-name: *secretName |
| 35 | + csi.storage.k8s.io/controller-expand-secret-namespace: *secretNamespace |
| 36 | + csi.storage.k8s.io/node-stage-secret-name: *secretName |
| 37 | + csi.storage.k8s.io/node-stage-secret-namespace: *secretNamespace |
| 38 | + csi.storage.k8s.io/node-publish-secret-name: *secretName |
| 39 | + csi.storage.k8s.io/node-publish-secret-namespace: *secretNamespace |
0 commit comments