using azurefile-csi-driver in k3d #1001
-
I'm following the instructions here: https://github.com/kubernetes-sigs/azurefile-csi-driver/blob/master/deploy/example/e2e_usage.md#option2-pvpvc I have a clean k3d cluster and I'm able to mount my azure file share from the host and the node. Should this work? I've tried all of the different methods on that page and get the same error. Everything looks good but when I deploy the nginx app (or any app) that uses the PVC, the pod hangs in creating. After a couple of minutes, I get the following errrors:
Here's my PV/PVC yaml apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-azurefile
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
storageClassName: azurefile-csi
mountOptions:
- dir_mode=0777
- file_mode=0777
- uid=0
- gid=0
- mfsymlinks
- cache=strict # https://linux.die.net/man/8/mount.cifs
- nosharesock
csi:
driver: file.csi.azure.com
readOnly: false
# make sure this volumeid is unique in the cluster
# `#` is not allowed in self defined volumeHandle
volumeHandle: upload-volumeid
volumeAttributes:
shareName: uploadvolume
nodeStageSecretRef:
name: azure-secret
namespace: default
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-azurefile
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
storageClassName: azurefile-csi
k describe pvc pvc-azure output
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
what's the k8s version? not sure why there is |
Beta Was this translation helpful? Give feedback.
what's the k8s version? not sure why there is
attachdetach-controller AttachVolume.Attach
process, and what's the csi driver version you have deployed? With latest release version(v1.16.0), there should be onlykubelet MountVolume.MountDevice
events directly using PV/PVC way.