I created persistent volume.
apiVersion: v1 kind: PersistentVolume metadata: name: local-pv labels: type: local spec: storageClassName: manual capacity: storage: 1Gi accessModes: - ReadWriteOnce hostPath: path: "/C/GIT/practice"
and It also created these directories in my minikube container
and i mounted this path "/C/GIT/practice" as "/output" in my deployment file
For example :i used this as to create file in my java code like output/messages.txt
i got error like /deployments/output/messages.txt (No such file or directory)
then i use this path "C:\GIT\practice\messages.txt" it doesn't show error but the file is not there.
Please instruct me is there any mistakes i have done or is there any other way to create file in minikube container.