Open KrishnaST opened 1 month ago
What discovery system are you using? What versions? What is your configuration?
Discovery Server
spring-cloud-starter-netflix-eureka-server : 4.1.2
Gateway Dependencies
Spring Boot : 3.3.2
spring-cloud-starter-gateway: 4.1.5
spring-cloud-starter-netflix-eureka-client : 4.1.3
MicroService Dependencies
Spring Boot Version : 3.3.2
spring-cloud-starter-netflix-eureka-client : 4.1.2
Microservice SSL configuration
server:
ssl:
key-alias: ****
key-store: classpath:imps/ssl.pfx
key-store-password: ***
key-store-type: PKCS12
enabled: true
Gateway Configuration
spring:
application:
name: gateway
cloud:
gateway:
routes:
- id: issuer-route
uri: lb://IMPS-BENEFICIARY-SERVICE
predicates:
- Path=/imps/Req**/**
discovery:
locator:
enabled: true
lower-case-service-id: true
Please add the eureka configuration for the services
Microservice Eureka Configuration
eureka:
client:
register-with-eureka: true
fetch-registry: true
serviceUrl:
defaultZone: 'http://admin:password@localhost:8761/eureka/'
instance:
preferIpAddress: true
instanceId: '${spring.application.name}:${random.int}'
Resolved by setting 'secure-port-enabled' to true. Couldn't find this anywhere in documentation.
eureka:
client:
register-with-eureka: true
fetch-registry: true
serviceUrl:
defaultZone: 'http://admin:password@localhost:8761/eureka/'
instance:
preferIpAddress: true
instanceId: '${spring.application.name}:${random.int}'
secure-port-enabled: true
secure-port: ${server.port}
status-page-url: https://${eureka.hostname}:${server.port}/actuator/info
health-check-url: https://${eureka.hostname}:${server.port}/actuator/health
home-page-url: https://${eureka.hostname}${server.port}/
Microservice 'IMPS-BENEFICIARY-SERVICE' is https enabled. Not sure if the issue with eureka discovery mechanism or the gateway.