From e308dfa278d25eceeb199156357789c90b5fb7fb Mon Sep 17 00:00:00 2001
From: Abdellatif Kebraoui <Kebraoui.abdellatif@gmail.com>
Date: Tue, 25 Mar 2025 15:47:06 +0100
Subject: [PATCH] [FEAT] enhance eureka client configuration for user
 management service

---
 src/main/resources/application-cloud.yml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/application-cloud.yml b/src/main/resources/application-cloud.yml
index ac4e1a3..52124da 100644
--- a/src/main/resources/application-cloud.yml
+++ b/src/main/resources/application-cloud.yml
@@ -21,11 +21,18 @@ eureka:
   client:
     serviceUrl:
       defaultZone: https://eureka-service-682610574114.europe-west1.run.app/eureka/
+    registryFetchIntervalSeconds: 30
+    healthcheck:
+      enabled: true
   instance:
     prefer-ip-address: true
-    hostname: ${K_SERVICE:invoice-service}.${K_REVISION:default}.${K_CONFIGURATION:default}.run.app
+    hostname: ${K_SERVICE:user-management-service}.${K_REVISION:default}.${K_CONFIGURATION:default}.run.app
     secure-port: ${PORT:8080}
     secure-port-enabled: true
     non-secure-port-enabled: false
     instance-id: ${spring.application.name}:${random.uuid}
-    ip-address: ${K_REVISION:localhost}
\ No newline at end of file
+    ip-address: ${K_REVISION:localhost}
+    leaseRenewalIntervalInSeconds: 30
+    leaseExpirationDurationInSeconds: 90
+    metadataMap:
+      instanceId: ${spring.application.name}:${random.uuid}
\ No newline at end of file
-- 
GitLab