https://github.com/kubernetes-incubator/external-storage/tree/master/nfs
nfs-common and nfs-utils need to be installed on kubelet, otherwise error log might include:
- bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.
- Warning FailedMount 24m kubelet, MountVolume.SetUp failed for volume "pvc-2c49da00-3431-4e3c-a1cc-84d1daa4a6ab" : mount failed: exit status 32
In case there is error: pod has unbound immediate PersistentVolumeClaims, it has nothing with storage provision, which just indicates that pod does not not have storage class defined in manifest file or K8S doesn't have default storage class.
To set up default storage class in kubernetes:
- kubectl patch storageclass storage-class-name -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
No comments:
Post a Comment