Hi, I see that we have an example to use localFile with volumeMounts
But somehow I just following the yaml format , and exec to the pod, the file that I needed is not there. I just described the pod also and there is no volume expected created. Is there any possibility of uncomplete yaml? Here is my yaml file
Welcome
Thanks for the fast response
I just try that way and it works. But the necessary is we need to access a file from outside, like a configurable file for a test scenario. Is that possible running with localFile to have volumeMounts also?
Do you have a mix of files, some local in the docker image and some that you mount via volumeClaim? We could better advise if you can share a sanitized example of the test and where it reads the external data. And clarify if it’s the test itself that is external and the data local, or how you need to mix those.
Hi, I’ll share you the expected directory.
|__src
|___conf.js (this is expected come from volumeMounts configMap)
We have built the /src into the image, and we need to set a volume Mount from configMap and store it to conf.js
We need to choose the localFile way based on several consideration.