Internal communication between pods at Kubernetes with code


Maybe this question is very wrong but my research so far hasn't been very helpful.
My plan is to deploy a server app to multiple pods , as replicas (same code running in multiple pods) and I want each pod to be able to communicate with the rest pods.
More specifically I need to broadcast a message to all the rest pods every x minutes.

I cannot find examples of how I could do that with Python code or anything helpful related to the communication internally between the pods. I can see some instructions for the yaml configurations that I should use to make that possible , but no practical examples , which makes me think that maybe using Kubernetes is not the best technology service for what I am trying to do (?).

Any advice/suggestion/documentation is more than needed. Thank you



Read more here: https://stackoverflow.com/questions/65877205/internal-communication-between-pods-at-kubernetes-with-code

Content Attribution

This content was originally published by Flora Biletsiou at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: