Skip to content

Commit

Permalink
Add customepnameprefix storage class option.
Browse files Browse the repository at this point in the history
customepnameprefix has been added to glusterfs storage class
via PR# kubernetes/kubernetes#69419
This patch add its documentation to example files and README.

Signed-off-by: hchiramm <[email protected]>
  • Loading branch information
humblec committed Nov 12, 2018
1 parent 0b0859e commit 2a84bf3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions staging/persistent-volume-provisioning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ parameters:
volumeoptions: "client.ssl on, server.ssl on"
volumenameprefix: "dept-dev"
snapfactor: "10"
customepnameprefix: "dbstorage"
```

Example storageclass can be found in [glusterfs-storageclass.yaml](glusterfs/glusterfs-storageclass.yaml).
Expand Down Expand Up @@ -188,6 +189,10 @@ Please note that, the value for this parameter cannot contain `_` in storageclas

*`snapfactor`: Dynamically provisioned volume's thinpool size can be configured with this parameter. The value for the parameter should be in range of 1-100, this value will be taken into account while creating thinpool for the provisioned volume. This is an optional parameter with default value of 1.

* `customepnameprefix` : By default dynamically provisioned volumes has an endpoint and service created with the naming schema of `glusterfs-dynamic-<PVC UUID` format. With this option present in storageclass, an admin can now prefix the desired endpoint from storageclass. If `customepnameprefix` storageclass parameter is set, the dynamically provisioned volumes will have an endpoint and service created in below format where `-` is the field separator/delimiter:

`customepnameprefix-<PVC UUID>`

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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ parameters:
volumeoptions: "client.ssl on, server.ssl on"
volumenameprefix: "dept-dev"
snapfactor: "10"
customepnameprefix: "dbstorage"

0 comments on commit 2a84bf3

Please sign in to comment.