You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 4m25s default-scheduler Successfully assigned nloop-overlay/core-77786dbcc9-d2wbd to k3d-devops-local-nloop-00-server-0
Warning FailedMount 84s kubelet MountVolume.SetUp failed for volume "document-generation-engine-datastore" : mount failed: exit status 255
Mounting command: mount
Mounting arguments: -t nfs -o nfsvers=4.2 host.k3d.internal:/mnt/devops-local-nloop-00-server /var/lib/kubelet/pods/8e09c42b-0377-4722-a7d8-7eac5abf0333/volumes/kubernetes.io~nfs/document-generation-engine-datastore
Output: mount: mounting host.k3d.internal:/mnt/devops-local-nloop-00-server on /var/lib/kubelet/pods/8e09c42b-0377-4722-a7d8-7eac5abf0333/volumes/kubernetes.io~nfs/document-generation-engine-datastore failed: Operation timed out
Warning FailedMount 3s (x2 over 2m22s) kubelet Unable to attach or mount volumes: unmounted volumes=[document-generation-engine-datastore], unattached volumes=[document-generation-engine-datastore default-token-v7fll]: timed out waiting for the condition
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 4m41s default-scheduler Successfully assigned nloop-overlay/nfs-subdir-external-provisioner-5f88856969-lwdfk to k3d-devops-local-nloop-00-agent-0
Warning FailedMount 34s (x4 over 3m40s) kubelet MountVolume.SetUp failed for volume "nfs-subdir-external-provisioner-root" : mount failed: exit status 255
Mounting command: mount
Mounting arguments: -t nfs host.k3d.internal:/mnt/devops-local-nloop-00-server /var/lib/kubelet/pods/f6218464-175e-469d-a892-9bdc41d1090a/volumes/kubernetes.io~nfs/nfs-subdir-external-provisioner-root
Output: mount: mounting host.k3d.internal:/mnt/devops-local-nloop-00-server on /var/lib/kubelet/pods/f6218464-175e-469d-a892-9bdc41d1090a/volumes/kubernetes.io~nfs/nfs-subdir-external-provisioner-root failed: Operation timed out
Warning FailedMount 20s (x2 over 2m38s) kubelet Unable to attach or mount volumes: unmounted volumes=[nfs-subdir-external-provisioner-root], unattached volumes=[nfs-subdir-external-provisioner-root nfs-subdir-external-provisioner-token-sfx7r]: timed out waiting for the condition
Which OS & Architecture
Linux DaringLion 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Which version of k3d
k3d version v5.1.0
k3s version v1.21.5-k3s2 (default)
docker
docker version
Client: Docker Engine - Community
Version: 20.10.11
API version: 1.41
Go version: go1.16.9
Git commit: dea9396
Built: Thu Nov 18 00:37:06 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.11
API version: 1.41 (minimum version 1.12)
Go version: go1.16.9
Git commit: 847da18
Built: Thu Nov 18 00:35:15 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.12
GitCommit: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What did you do
k3d cluster create -c k3d.yaml
(runs with sudo, and without, fail the same way)k3d.yaml
What did you expect to happen
Persistent volume mounts NFS in pod
Screenshots or terminal output
tail /etc/exports -n 2
nfs-common is installed via the Dockerfile
kubectl get node -o wide | awk '!/NAME/ {print $1FS$6}'
kubectl describe pv document-generation-engine-datastore
kubectl describe pvc document-generation-engine-datastore
kubectl desctibe pod core-7b65d64b9b-tp72k
kubectl exec -it document-generation-engine-776bc48959-jbcsh -- dig host.k3d.internal
At this point I tried using a dynamic provisioner instead. however, even the provisioner fails to mount with the same error
helm upgrade -i nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner --set nfs.server=host.k3d.internal --set nfs.path=/mnt/devops-local-nloop-00-server
Which OS & Architecture
Linux DaringLion 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Which version of
k3d
docker
docker version
docker info
Beta Was this translation helpful? Give feedback.
All reactions