Msg="error running loki" err="mkdir /loki/index_cache: permission denied

I am using EFS as persistent volume of my Loki pod which is collecting logs from my EKS Fargate application, I followed this blog ([New – AWS Fargate for Amazon EKS now supports Amazon EFS | AWS News Blog](https://New – AWS Fargate for Amazon EKS now supports Amazon EFS)) to mount EFS volume but got msg="error running loki" err="mkdir /loki/index_cache: permission denied. Anyone could help me to figure out the reason behind?

Thank you!

my sc, pv and pvc yaml

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: efs-sc
  namespace: fargate-api-dev
provisioner: efs.csi.aws.com

---

apiVersion: v1
kind: PersistentVolume
metadata:
  name: loki-efs-pv
  namespace: fargate-api-dev
spec:
  capacity:
    storage: 1Gi
  volumeMode: Filesystem
  accessModes:
    - ReadWriteMany
  persistentVolumeReclaimPolicy: Retain
  storageClassName: efs-sc
  csi:
    driver: efs.csi.aws.com
    volumeHandle: fs-01139d583276c5e90

---

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: loki-efs-pvc
  namespace: fargate-api-dev
spec:
  accessModes:
    - ReadWriteMany
  storageClassName: efs-sc
  resources:
    requests:
      storage: 1Gi

deployment.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: fargate-api-dev
  name: loki
spec:
  selector:
    matchLabels:
      app: loki
  template:
    metadata:
      labels:
        app: loki
    spec:
      volumes: 
        - name: loki-config
          configMap:
            name: loki-config
        - name: loki-efs-pv
          persistentVolumeClaim:
            claimName: loki-efs-pvc


      containers:
        - name: loki
          image: loki:2.6.1
          args:
            - -print-config-stderr=true
            - -config.file=/tmp/loki.yaml
          
          resources:
            limits:
              memory: "500Mi"
              cpu: "200m"
          ports:
            - containerPort: 3100
          volumeMounts:
            - name: loki-config
              mountPath: /tmp
              #/loki/rules-temp
              readOnly: false
            - name: loki-efs-pv
              mountPath: /loki