Reputation: 146
I have a project on openshift, I am using volume of the type NFS to store some files from the application to the NFS share point. While creating PVC I mentioned capacity as PV:
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
storageClassName: classic-nfs
mountOptions:
- hard
- nfsvers=3
nfs:
path: /somePath
server: someDNSname
readOnly: false
PVC:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
storageClassName: classic-nfs
volumeName: pv
Now, I see that the store keeps on decreasing if I see the PersistenceVolumeClaim on openshift as shown in the below pic.
My question is , since we are using NFS type volume, does mentioning storage capacity (ex: 10GB) really matters here?
Upvotes: 2
Views: 1060
Reputation: 4800
I really might be missing something because I don't understand why you think the request size wouldn't matter for NFS? (More on this latter)
Here are the docs for NFS persistent storage.
I think the key bits from the docs are:
I feel like I'm missing something about your question. Because, of course, from an OpenShift perspective it matters how much space is in the volume. If your question is whether it really matters because you are doing some overallocation on the backend of your storage provider, I guess that depends on your backend.
Upvotes: 1