Kubernetes peristent volume mount point

Kubernetes Volume mount , I created docker file , where working dir is data-temp, all the data is going to write in data-temp,

I am need to get data saved in azure storage, here is my pod .yml.

apiVersion: v1

kind: Pod

metadata:

name: pullandmerge

spec:

containers:

volumes:

    - name: my-azurefile-volume

      persistentVolumeClaim:

        claimName: my-azurefile-pvc

for mountpath if i change it to /data-temp , i get backoff error and kubectl log error

I got following error Warning BackOff 7s (x4 over 34s) kubelet Back-off restarting failed container

#kubectl logs pullandmerge
python3: can’t open file ‘/data-temp/data-exploration/pull_and_merge_data.py’: [Errno 2] No such file or directory

Hello Shanman,

Check this full example Create a persistent volume with Azure Files in Azure Kubernetes Service (AKS) - Azure Kubernetes Service | Microsoft Learn

Thanks,
KodeKloud Support