Skip to content

Commit b393f65

Browse files
author
Alexey Khodos
committed
v2.3.2 release
1 parent 5a72a8b commit b393f65

12 files changed

+103
-13
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,17 @@ Edit `/etc/exascaler-csi-file-driver-v1.0/exascaler-csi-file-driver-config.yaml`
270270
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.
271271
For dynamically provisioned volumes, Kubernetes generates volume name automatically (for example `pvc-ns-cfc67950-fe3c-11e8-a3ca-005056b857f8-projectId-1001`).
272272

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
273284
```yaml
274285
apiVersion: storage.k8s.io/v1
275286
kind: StorageClass
@@ -284,13 +295,14 @@ allowedTopologies:
284295
mountOptions: # list of options for `mount -o ...` command
285296
# - noatime #
286297
parameters:
287-
projectId: "100001" # Points to EXA project id to be used to set volume quota. Automatically generated by the driver if not provided.
288298
exaMountUid: "1001" # Uid which will be used to access the volume in pod. Should be synced between EXA server and clients.
289299
exaMountGid: "1002" # Gid which will be used to access the volume in pod. Should be synced between EXA server and clients.
290300
bindMount: "true" # Determines, whether volume will bind mounted or as a separate lustre mount.
291301
exaFS: "10.204.86.114@tcp:/testfs" # Overrides exaFS value from config. Use this to support multiple EXA filesystems.
292302
mountPoint: /exaFS # Overrides mountPoint value from config. Use this to support multiple EXA filesystems.
293303
mountOptions: ro,noflock
304+
minProjectId: 10001 # project id range for this storage class
305+
maxProjectId: 20000
294306
```
295307
296308
#### Example
@@ -399,6 +411,8 @@ trailing slash (“/” at the end). | `/csi-pcc` |
399411
| `pccPurgeInterval` | `pccPurgeInterval` | Interval for lpcc_purge to check cache device usage, in seconds. Defaults to 30. | `30` |
400412
| `pccPurgeLogLevel` | `pccPurgeLogLevel` | Log level for lpcc_purge: either “fatal”, “error”, “warn”, “normal”, “info” (default), or “debug”. | `info` |
401413
| `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` |
402416

403417
#### _PersistentVolumeClaim_ (pointing to created _PersistentVolume_)
404418

bin/exascaler-csi-file-driver.tar

39.5 KB
Binary file not shown.

deploy/helm-chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ volumeNamePrefix: "pvc-exa"
66

77
image:
88
repository: "quay.io/ddn/exascaler-csi-file-driver"
9-
tag: v2.3.1
9+
tag: v2.3.2
1010
pullPolicy: "Always"
1111
# Overrides the image tag whose default is the chart appVersion.
1212
resources:

deploy/kubernetes/exascaler-csi-file-driver.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ spec:
271271
capabilities:
272272
add: ['SYS_ADMIN']
273273
allowPrivilegeEscalation: true
274-
image: quay.io/ddn/exascaler-csi-file-driver:v2.3.1
274+
image: quay.io/ddn/exascaler-csi-file-driver:v2.3.2
275275
imagePullPolicy: Always
276276
args:
277277
- --nodeid=$(KUBE_NODE_NAME)
@@ -397,7 +397,7 @@ spec:
397397
capabilities:
398398
add: ['SYS_ADMIN']
399399
allowPrivilegeEscalation: true
400-
image: quay.io/ddn/exascaler-csi-file-driver:v2.3.1
400+
image: quay.io/ddn/exascaler-csi-file-driver:v2.3.2
401401
imagePullPolicy: Always
402402
args:
403403
- --nodeid=$(KUBE_NODE_NAME)

deploy/openshift/exascaler-csi-file-driver-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
exascaler_map:
88
exa1:
9-
bindMount: false
9+
bindMount: true
1010
mountPoint: /exaFS # mountpoint on the host where the exaFS will be mounted
1111
exaFS: 10.204.86.217@tcp:/testfs # default path to exa filesystem
1212
zone: zone-1

deploy/openshift/exascaler-csi-file-driver.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ spec:
356356
volumeMounts:
357357
- name: socket-dir
358358
mountPath: /csi/
359-
- image: quay.io/ddn/exascaler-openshift-file-driver:v2.3.1
359+
- image: quay.io/ddn/exascaler-openshift-file-driver:v2.3.2
360360
imagePullPolicy: Always
361361
args:
362362
- --nodeid=$(KUBE_NODE_NAME)
@@ -448,7 +448,7 @@ spec:
448448
securityContext:
449449
privileged: true
450450
allowPrivilegeEscalation: true
451-
image: quay.io/ddn/exascaler-openshift-file-driver:v2.3.1
451+
image: quay.io/ddn/exascaler-openshift-file-driver:v2.3.2
452452
imagePullPolicy: Always
453453
args:
454454
- --nodeid=$(KUBE_NODE_NAME)

examples/exa-dynamic-nginx-2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ parameters:
1212
# projectId: "100001" # Points to a project id to be used to set volume quota.
1313
exaMountUid: "1001" # Uid which will be used to access the volume in pod. Should be synced between EXA server and clients.
1414
exaMountGid: "1001" # Gid which will be used to access the volume in pod. Should be synced between EXA server and clients.
15-
bindMount: "false"
15+
bindMount: "true"
1616
volumeDirPermissions: "1750"
1717
hotNodes: "true"
1818
pccCache: "/mnt/csi-1"

examples/exa-dynamic-nginx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ allowVolumeExpansion: true
1717
parameters:
1818
exaMountUid: "1001" # Uid which will be used to access the volume in pod. Should be synced between EXA server and clients.
1919
# projectId: "100001" # Points to a project id to be used to set volume quota.
20-
# bindMount: "false"
20+
# bindMount: "true"
2121
---
2222

2323
# ------------------------------------------------

examples/nginx-combined-volumes.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ allowVolumeExpansion: true
1111
parameters:
1212
projectId: "100001" # Points to a project id to be used to set volume quota.
1313
exaMountUid: "1001" # Uid which will be used to access the volume in pod.
14-
bindMount: "false" # Determines, whether volume will bind mounted or as a separate lustre mount.
14+
bindMount: "true" # Determines, whether volume will bind mounted or as a separate lustre mount.
1515
mountOptions: ro,noflock
1616
---
1717

@@ -66,7 +66,7 @@ spec:
6666
volumeHandle: exa1:/exaFS/nginx-persistent
6767
volumeAttributes: # volumeAttributes are the alternative of storageClass params for static (precreated) volumes.
6868
exaMountUid: "1001" # Uid which will be used to access the volume from the pod.
69-
bindMount: "false" # Determines, whether volume will bind mounted or as a separate lustre mount.
69+
bindMount: "true" # Determines, whether volume will bind mounted or as a separate lustre mount.
7070
#mountOptions: ro,flock # list of options for `mount` command
7171
---
7272

examples/nginx-from-snapshot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ allowVolumeExpansion: true
1111
parameters:
1212
projectId: "100001" # Points to a project id to be used to set volume quota.
1313
exaMountUid: "1001" # Uid which will be used to access the volume in pod. Should be synced between EXA server and clients.
14-
bindMount: "false"
14+
bindMount: "true"
1515
---
1616

1717
# ------------------------------------------------

0 commit comments

Comments
 (0)