[英]amazon-efs failed, reason given by server: No such file or directory
apiVersion: v1
kind: PersistentVolume
metadata:
name: ****-pv-public
namespace: ****
spec:
storageClassName: efs-sc
capacity:
storage: 3Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
csi:
driver: efs.csi.aws.com
volumeHandle: fs-***
volumeAttributes:
path: /***/public
Mounting arguments: -t efs -o tls fs-2f974c54:/****/public /var/lib/kubelet/pods/9784d80e-4678-4b0b-96ae-a5cccf7db7a0/volumes/kubernetes.io~csi/******/mount
Output: Could not start amazon-efs-mount-watchdog, unrecognized init system "aws-efs-csi-dri"
b'mount.nfs4: mounting 127.0.0.1:/****/public failed, reason given by server: No such file or directory'
Here, how I fixed it first, create an access point在这里,我首先如何修复它,创建一个接入点
apiVersion: v1
kind: PersistentVolume
metadata:
name: **-pv-public
namespace: laravel-test
spec:
storageClassName: efs-sc
capacity:
storage: 3Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
csi:
driver: efs.csi.aws.com
volumeHandle: fs-**::fsap-***
and fs-::fsap-* (::) not (:)和 fs-::fsap-* (::) 不是 (:)
does the sub directory exists
which you're mounting?您正在挂载的
sub directory exists
? also can you try adding like this?你也可以尝试这样添加吗? As per the example the path should exists.
根据示例,路径应该存在。
Replace FileSystemId of the EFS filesystem ID that needs to be mounted. And replace Path with a existing path on the filesystem.
you can refer this link:你可以参考这个链接:
https://github.com/kube.netes-sigs/aws-efs-csi-driver/tree/master/examples/kube.netes/volume_path https://github.com/kube.netes-sigs/aws-efs-csi-driver/tree/master/examples/kube.netes/volume_path
apiVersion: v1
kind: PersistentVolume
metadata:
name: efs-****-pv
spec:
capacity:
storage: 15Gi
volumeMode: Filesystem
mountOptions:
- tls
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
storageClassName: efs-sc
csi:
driver: efs.csi.aws.com
volumeHandle: fs-*****:/****
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.