Till now, there was no option to specify various volume types and specifications of the dynamically provisioned volumes in GlusterFS provisioner in Kubernetes or Openshift. This functionality has been added some time back to Kubernetes upstream and now a kubernetes/Openshift admin can choose the volume and its specification like volume types in Storage Class parameter.
This has been added in below format to the gluster plugins’ storage class.
`volumetype` : The volume type and it's parameters can be configured with this optional value. If the volume type is not mentioned, it's up to the provisioner to decide the volume type.
`volumetype: replicate:3` where '3' is replica count.
`volumetype: disperse:4:2` where '4' is data and '2' is the redundancy count.
Based on above mention, the volumes will be created in the trusted storage pool .
Please let me know if you have any comments/suggestions/feedback about this functionality or if you would like to see any other enhancements to Gluster Dynamic Provisioner in Kubernetes/Openshift.