Many storage providers, including FreeNAS, now come with a Kubernetes Container Storage Interface driver. This allows storage to be managed declaratively in kubernetes yaml files. Would be great to add Rockstor to this list.
Most implementations of this, eg FreeNAS’, are on github, so hopefully not too hard to adapt. This project’s documentation links should help get started. Would satisfy other’s calls to “link shares to persistent volumes and persistent volume claims”.