Closed mnwato closed 1 month ago
Solved with bellow eureka client config:
# Eureka client configuration
eureka_client.init(
eureka_server=envs["EUREKA_URL"],
app_name=envs["EUREKA_APPNAME"],
instance_port=int(envs["API_PORT"]),
instance_ip=envs["HOST_IP_ADDRESS"],
instance_host=envs["HOST_IP_ADDRESS"],
renewal_interval_in_secs=5
)
Here is eureka_client.init:
At the first my fastapi application registered with docker range ip address (172.19...) in eureka. After setting
instance_ip
it registered with my machine ip address but still does not work when loading service from gateway. Unfortunatly i have not access to eureka server machine.Any help is appriciated