Details
Description
With HDFS-13017 and HDFS-13018 the cblock/jscsi server could be used in a kubernetes cluster as the backend for iscsi persistent volumes.
Unfortunatelly we need to create all the required cblocks manually with 'hdfs cblok -c user volume...' for all the Persistent Volumes.
But it could be handled with a simple optional component. An additional service could listen on the kubernetes event stream. In case of new PersistentVolumeClaim (where the storageClassName is cblock) the cblock server could create cblock in advance AND create the persistent volume could be created.
The code is very simple, and this additional component could be optional in the cblock server.