diff --git a/staging/persistent-volume-provisioning/README.md b/staging/persistent-volume-provisioning/README.md index 19a7055c..7eeca698 100644 --- a/staging/persistent-volume-provisioning/README.md +++ b/staging/persistent-volume-provisioning/README.md @@ -101,7 +101,7 @@ For a complete example refer ([Portworx Volume docs](../volumes/portworx/README. apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: - name: slow + name: fast provisioner: kubernetes.io/glusterfs parameters: resturl: "http://127.0.0.1:8081" @@ -151,6 +151,12 @@ For available volume types and its administration options refer: ([Administratio For available volume options and its administration refer: ([Administration Guide](https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/3.2/html/administration_guide/chap-managing_red_hat_storage_volumes)) +* `volumenameprefix` : By default dynamically provisioned volumes has the naming schema of `vol_UUID` format. With this option present in storageclass, an admin can now prefix the desired volume name from storageclass. If `volumenameprefix` storageclass parameter is set, the dynamically provisioned volumes are created in below format where `_` is the field seperator/delimiter: + +`customvolumeprefix_PVCname_randomUUID` + +Please note that, the value for this parameter cannot contain `_` in storageclass. This is an optional parameter. + Reference : ([How to configure Gluster on Kubernetes](https://github.com/gluster/gluster-kubernetes/blob/master/docs/setup-guide.md)) Reference : ([How to configure Heketi](https://github.com/heketi/heketi/wiki/Setting-up-the-topology)) diff --git a/staging/persistent-volume-provisioning/glusterfs/glusterfs-storageclass.yaml b/staging/persistent-volume-provisioning/glusterfs/glusterfs-storageclass.yaml index 75a062c8..c3a409d0 100644 --- a/staging/persistent-volume-provisioning/glusterfs/glusterfs-storageclass.yaml +++ b/staging/persistent-volume-provisioning/glusterfs/glusterfs-storageclass.yaml @@ -13,3 +13,4 @@ parameters: gidMax: "50000" volumetype: "replicate:3" volumeoptions: "client.ssl on, server.ssl on" + volumenameprefix: "dept-dev"