I am new to openshift ,I have deployed one application on openshift which uses persistent volume to store the files,and there is another application which pick that file and process it. Now my challenge is I am not able to understand how to use same persistent volume for two application, and how to pick the file from persistent volume is it mountPath where files get stored ?
You can address your requirement using one of the below option
To leverage shared storage for use by two separate containers (in two independent pods) configure PV of type NFS, or other shared storage such as GlusterFS etc.
A basic example using NFS available here Sharing an NFS Persistent Volume (PV) Across Two Pods