Unable to use external files for jobs through mounting #12304
Labels
kind/improvement
Categorizes issue or PR as related to improving upon a current feature.
os/wsl-windows
microsoft wsl related issues
I'm using:
minikube start --driver=docker
I have a kubernetes yaml that runs a job that runs a pod which suppose to load data to a postgres database (another pod).
I'm running everything inside wsl 2.
The yaml is defined to use /mnt/AppData path on the local machine, when trying to use it I see that the pods are accessing the minikube vm /mnt/AppData instead of the local machine one.
Usually we put a file (for our new system installation) in that path and the script is accessing this file and using that file,
So I the pods can't access the local machine (wsl 2) storage for persistent or load of files.
I can't change the yaml files as this is our production files and we're using minikube for development purposes.
I saw some documentation on minikube mount command but it doesn't seem to work (returns an error):
stderr:
mount: /mnt: mount(2) system call failed: Connection refused.
How can I make my pods use and save files on my local machine? (through their defined volumes)
The text was updated successfully, but these errors were encountered: