<p>How would we create a directory inside the kubernetes persistent volume to mount to use in the  container as subPath ?  eg: mysql directory should be created while claiming the persistent volume </p>

<p>I would probably put an init container into my podspec that simply mounts the volume and runs a <code>mkdir -p</code> to create the directory and then exit. You could also do this in the target container itself with some kind of script.</p>

<p><a href="https://kubernetes.io/docs/concepts/workloads/pods/init-containers/" rel="noreferrer">https://kubernetes.io/docs/concepts/workloads/pods/init-containers/</a></p>
