I want to transfer my files generated by one of the pod of my application to the Kubernetes cronjob pod. Is there any method to transfer files between the two pods of a cluster?
You can use hostdir
if you don't want to persist data. however, you can use PVC and any type of shared volume to store data which can be accessible by both pods cronjobs & pod.
Create a persistent-volume
and mount the same volume to both the containers