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:
-
name: pullandmerge
image: hylacr.azurecr.io/pullandmerge:v1
volumeMounts:
- name: my-azurefile-volume mountPath: "/data"
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