How do I automatically create a directory and mount a GlusterFS volume on Kubernetes workers?

Posted January 14, 2021 94 views


I’m just getting started deploying, managing and utilising Kubernetesfor parts of my workloads (the part of the workloads that are stateless). I’m therefore running an external storage cluster using GlusterFS. I know how to manage GlusterFS etc, but since there is no access to SSH on the worker nodes, and the amount of worker nodes scale up and down automatically depending on the performance and traffic of the cluster, I wondered if there was a way that I could tell my Kubernetes master to automatically create the folder and mount the GlusterFS volume to this folder.

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!