I am trying to transfer an old legacy system to k8s.
I have a custom server that client apps connect to in order to communicate with one another. Both the server and clients were originally created to run on the same system and communicate using localhost.
I Dockerized both server and client apps. I tested that they work well in the same pod (everything runs well using localhost). Now I would like to separate the server and apps into their own pods. I would like the apps to automatically connect to the server.
Question: How do I connect the client apps to the server without changing the source code of the client apps or server?