Project-MONAI/monai-deploy-informatics-gateway

Use K8s DNS Service name for endpoint in Appsettings.json instead of IP address

nakfour opened this issue · 2 comments

Is your feature request related to a problem? Please describe.
The problem with IP address is that it renders K8s horizontal scaling mute. We would like to make sure all services that provide an endpoint such as RabbitMQ Cluster and MinIO tenants are scalable and services can scale up and down. If IG only goes to the IP address that limits which pod it goes to.

Describe the solution you'd like
endpoint field in appsettings.yaml should be in the form of <my-svc.my-namespace.svc.cluster-domain.example> as described in K8s documentation.

cc @mocsharp

IG supports connecting to external services via host names. The only exception is when the SCP service validates the external application entity's IP Address.

Do you see any issues? Please ensure that the host (or within the container) can resolve the host name.

Closing as it is already supported