I have an app in which there are a few tasks that communicate using publisher/subscriber. The main problem is that the pub/sub discovery works by multicasting information to the other tasks, but when I deploy those tasks in k8s, the pods can't multicast between them as they have private IPs assigned.
I have read about using services, but it didn't convince me because I would lose the peer to peer structure.
Is there a way to enable 2 pods from the same cluster to see each other using multicast? For additional info, the pub/sub I am using is Zenoh.