Merge pull request #170 from humblec/volnameprefix
Add `volumenameprefix` storageclass parameter in GlusterFS dynamic PV provisioning example section.
This commit is contained in:
commit
3930ecc7ff
|
|
@ -101,7 +101,7 @@ For a complete example refer ([Portworx Volume docs](../volumes/portworx/README.
|
||||||
apiVersion: storage.k8s.io/v1
|
apiVersion: storage.k8s.io/v1
|
||||||
kind: StorageClass
|
kind: StorageClass
|
||||||
metadata:
|
metadata:
|
||||||
name: slow
|
name: fast
|
||||||
provisioner: kubernetes.io/glusterfs
|
provisioner: kubernetes.io/glusterfs
|
||||||
parameters:
|
parameters:
|
||||||
resturl: "http://127.0.0.1:8081"
|
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))
|
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 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))
|
Reference : ([How to configure Heketi](https://github.com/heketi/heketi/wiki/Setting-up-the-topology))
|
||||||
|
|
|
||||||
|
|
@ -13,3 +13,4 @@ parameters:
|
||||||
gidMax: "50000"
|
gidMax: "50000"
|
||||||
volumetype: "replicate:3"
|
volumetype: "replicate:3"
|
||||||
volumeoptions: "client.ssl on, server.ssl on"
|
volumeoptions: "client.ssl on, server.ssl on"
|
||||||
|
volumenameprefix: "dept-dev"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue