You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For dynamic volume provisioning, the administrator needs to set up a _StorageClass_ in the PV yaml (/opt/exascaler-csi-file-driver/examples/exa-dynamic-nginx.yaml for this example) pointing to the driver.
271
271
For dynamically provisioned volumes, Kubernetes generates volume name automatically (for example `pvc-ns-cfc67950-fe3c-11e8-a3ca-005056b857f8-projectId-1001`).
272
272
273
+
Basic storage class example, uses config to access Exascaler
274
+
```yaml
275
+
apiVersion: storage.k8s.io/v1
276
+
kind: StorageClass
277
+
metadata:
278
+
name: exascaler-csi-file-driver-sc-nginx-dynamic
279
+
provisioner: exa.csi.ddn.com
280
+
configName: exa1
281
+
```
282
+
283
+
The following example shows how to use storage class to override config values
273
284
```yaml
274
285
apiVersion: storage.k8s.io/v1
275
286
kind: StorageClass
@@ -284,13 +295,14 @@ allowedTopologies:
284
295
mountOptions: # list of options for `mount -o ...` command
285
296
# - noatime #
286
297
parameters:
287
-
projectId: "100001"# Points to EXA project id to be used to set volume quota. Automatically generated by the driver if not provided.
288
298
exaMountUid: "1001"# Uid which will be used to access the volume in pod. Should be synced between EXA server and clients.
289
299
exaMountGid: "1002"# Gid which will be used to access the volume in pod. Should be synced between EXA server and clients.
290
300
bindMount: "true"# Determines, whether volume will bind mounted or as a separate lustre mount.
291
301
exaFS: "10.204.86.114@tcp:/testfs"# Overrides exaFS value from config. Use this to support multiple EXA filesystems.
292
302
mountPoint: /exaFS # Overrides mountPoint value from config. Use this to support multiple EXA filesystems.
293
303
mountOptions: ro,noflock
304
+
minProjectId: 10001# project id range for this storage class
305
+
maxProjectId: 20000
294
306
```
295
307
296
308
#### Example
@@ -399,6 +411,8 @@ trailing slash (“/” at the end). | `/csi-pcc` |
399
411
|`pccPurgeInterval`|`pccPurgeInterval`| Interval for lpcc_purge to check cache device usage, in seconds. Defaults to 30. |`30`|
400
412
|`pccPurgeLogLevel`|`pccPurgeLogLevel`| Log level for lpcc_purge: either “fatal”, “error”, “warn”, “normal”, “info” (default), or “debug”. |`info`|
401
413
|`pccPurgeForceScanInterval`|`pccPurgeForceScanInterval`| Scan PCC backends forcefully after this number of seconds to refresh statistic data. |`30`|
414
+
| - |`compression`| Algorithm ["lz4", "gzip", "lzo"] to use for data compression. default is "false" |`false`|
415
+
| - |`configName`| Config entry name to use from the config map |`exa1`|
402
416
403
417
#### _PersistentVolumeClaim_ (pointing to created _PersistentVolume_)
0 commit comments