Description
Executing the command:
helm install -n nfs-provisioning --create-namespace nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \ --set nfs.server=XXX.XXX.XX.XXX \ --set nfs.path=/volume/share
Checking the status pod:
kubectl get all -n nfs-provisioning
Check result:
NAME READY STATUS RESTARTS AGE pod/nfs-subdir-external-provisioner-b57659bf4-6v4bc 0/1 ContainerCreating 0 7s
Error creating container:
`
Name: nfs-subdir-external-provisioner-b57659bf4-6v4bc
Namespace: nfs-provisioning
Priority: 0
Service Account: nfs-subdir-external-provisioner
Node: k8s-dev-04/192.168.9.18
Start Time: Mon, 14 Jul 2025 14:49:45 +0300
Labels: app=nfs-subdir-external-provisioner
pod-template-hash=b57659bf4
release=nfs-subdir-external-provisioner
Annotations:
Status: Pending
IP:
IPs:
Controlled By: ReplicaSet/nfs-subdir-external-provisioner-b57659bf4
Containers:
nfs-subdir-external-provisioner:
Container ID:
Image: registry.k8s.io/sig-storage/nfs-subdir-external-provisioner:v4.0.2
Image ID:
Port:
Host Port:
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment:
PROVISIONER_NAME: cluster.local/nfs-subdir-external-provisioner
NFS_SERVER: 192.168.10.250
NFS_PATH: /volume1/k8s_share
Mounts:
/persistentvolumes from nfs-subdir-external-provisioner-root (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-8d2rb (ro)
Conditions:
Type Status
PodReadyToStartContainers False
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
nfs-subdir-external-provisioner-root:
Type: NFS (an NFS mount that lasts the lifetime of a pod)
Server: 192.168.10.250
Path: /volume1/k8s_share
ReadOnly: false
kube-api-access-8d2rb:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional:
DownwardAPI: true
QoS Class: BestEffort
Node-Selectors:
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
Normal Scheduled 11m default-scheduler Successfully assigned nfs-provisioning/nfs-subdir-external-provisioner-b57659bf4-6v4bc to k8s-dev-04
Warning FailedMount 60s (x13 over 11m) kubelet MountVolume.SetUp failed for volume "nfs-subdir-external-provisioner-root" : mount failed: exit status 32
Mounting command: mount
Mounting arguments: -t nfs 192.168.10.250:/volume1/k8s_share /var/lib/kubelet/pods/4b5bf8e7-dbf6-4bbf-812d-3ef6824723e2/volumes/kubernetes.ionfs/nfs-subdir-external-provisioner-rootnfs/nfs-subdir-external-provisioner-root: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program.
Output: mount: /var/lib/kubelet/pods/4b5bf8e7-dbf6-4bbf-812d-3ef6824723e2/volumes/kubernetes.io
dmesg(1) may have more information after failed mount system call.
`
Please help me to solve the problem of mounting the NFS directory.
All commands are taken from your manual.