| Although subPath can be managed by the PersistentVolumeClaim, it is not possible to use a different subPath in different pods as there is a 1:1 relation between PV and PVC. In my situation, I have a single NFS storage, a "build cache", and I need to distribute that storage to multiple pods. I don't want to assign the same build cache to all build pods, thus I need to partition the storage with sub-folders. NFSVolume could be used with a different server path, but providing server information shortcuts what PVs are for. PersistentVolumeClaim as it is now requires builds pods to create a subfolder themselves before storing their cache, or build jobs to state mountPath using pipeline, effectively duplicating the configuration in many places. Anyone found a more elegant way to do this? Perhaps a PR modifying PodTemplateBuilder.build() would be acceptable? |