I have an issue with k8s volumes
The structure
We talk about 2 services (pods) that service one generates files and the other service expose those files over the web.
Service number one needs a UDP connection open to the world and also a TCP connection to communicate between other pods.
(two services, one for UDP and one for TCP)
Service Number two needs a connection to the world (web).
(one service that connects to ingress)
The Issue
I need volume in memory between those two pods, to speed up the R/W process.
The solution I checked, to work with the multi-container structure using EmptyDir volume (there is an option to run this volume in memory)
The problem with this solution is that I can't connect the k8s service object for those containers, service connects only to pods, and only the pod gets IP but containers not.
there is any solution or idea for this situation?
p.s. I'm running on AKS if it's matters.