Storage size which I specified in the persistent volume claim ignores with using nfs as a storage backend.
I want to attach persistent volume to container with specified volume size. The following is the yaml file which I used to create pvc.
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: test-claim
annotations:
volume.beta.kubernetes.io/storage-class: "managed-nfs-storage"
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Mi
The following is the result of created pvc.
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
test-claim Bound pvc-bd0fdb84-f73c-11e7-bdd5-0050569b0869 1Mi RWX managed-nfs-storage 6m
Finally, I attached created volume to container and see the size of mounted file system, it shows the total amount of disk size which I export using NFS.
Does anybody know how to enable request storage size parameter? In other words, Is there any way to specify the size of volumes when using NSF as a backend storage?