To eliminate the need for the application to be able to access the K8S API server we should provide a ServiceDiscovery implementation that does not rely on the use of the API.
We could do this by just leveraging the platform service discovery and then fetch the port via a lookup.
Another option would be to implement a service discovery server which exclusively talks to the k8s api server and have clients fetch service information from this server (kind of like a eureka server).
To eliminate the need for the application to be able to access the K8S API server we should provide a
ServiceDiscoveryimplementation that does not rely on the use of the API.We could do this by just leveraging the platform service discovery and then fetch the port via a lookup.
Another option would be to implement a service discovery server which exclusively talks to the k8s api server and have clients fetch service information from this server (kind of like a eureka server).