juicefs-csi-driver
juicefs-csi-driver copied to clipboard
MountVolume SetUp failed for volume
Warning FailedMount 112s (X3 over 3m55) kubelet MountVolume. SetUp failed for volume "pvc-88469490-63c 4300-8efa-73607754749c" : rpc error: code = Internal desc = Could not mount juicefs: mount juicefs at /jfs/pvc-8846949 63c4-4300-8efa-73607754749c-znjva failed: 2023-12-25 09:44:42.439088 Configuration file: /root/.juicefs/juicefs.conf t exist.
I use the community. but I added this file at every k8s node, it still not work. And the document never mention, why and what should I do ?
I am using a CSI plugin, following the instructions in the documentation. Then, a pod mounted a PVC
here the yamls
yaml
apiVersion: v1
kind: Pod
metadata:
name: test-pod
namespace: fangyuxuan
spec:
containers:
- name: test-container
image: busybox
command: ["sleep", "3600"]
volumeMounts:
- name: test-volume
mountPath: /mnt
- name: juicefs-config
mountPath: /root/.juicefs
readOnly: true
volumes:
- name: test-volume
persistentVolumeClaim:
claimName: juicepvc1
- name: juicefs-config
secret:
secretName: juicefs-secret
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: juicepvc1 namespace: fangyuxuan spec: accessModes: - ReadWriteMany storageClassName: juicefs-sc resources: requests: storage: 1Gi