I have set up a kubernetes cluster. Everything is working great. But at the moment I'm not sure if my configuration is wise regarding the inclusion of persistent volumes.
This is my use case:
At the moment the configuratation consists of a persistent volume plus a persistent volume claim for each deployment. Therefore I had to specify the capacity of the volumes and its claims. Each claim claims the full capacity of its persistent volume. In my opinion this shouldn't be necessary because there is no customer-"third party" accessing the volumes through volume claims. Hence limiting capacity isn't needed. So I ask myself if it might not be wiser to mount the NFS volume directly from the pods instead of creating persistent volumes and persistent volumes claims. But perhaps persistent volumes have other advantages that I am not yet aware of. Should I switch or retain the configuration? I am interested in the pros and cons in relation to my use case. Thank you so far!
On this page both configuration options are compared: https://docs.docker.com/ee/ucp/kubernetes/storage/use-nfs-volumes/