I created 2 applications running on 2 Pods. One is to accept incoming files via SFTP and store them on a persistent volume. Another one is to trigger some actions based on WatchService monitoring on the same persistent volume.
The issue is the WatchService on the second Pod cannot be triggered when files are uploaded in the first Pod providing that both Pods are already using the same directory in the same persistent volume. Nothing happens when files come. If I create a file manually on the second Pod, WatchService can be triggered.
Is there any way to solve it so that actions in second Pod can be triggered?