Skip to content

Instantly share code, notes, and snippets.

@ilozano2
Created July 24, 2023 16:26
Show Gist options
  • Save ilozano2/9bcf7af0a0dd6dabefe1a047537c66d1 to your computer and use it in GitHub Desktop.
Save ilozano2/9bcf7af0a0dd6dabefe1a047537c66d1 to your computer and use it in GitHub Desktop.
Health check configurations per Service
spring:
cloud:
clients:
hello-service:
health-check:
port: 9090
path: xxx
interval:
hint: {}
discovery:
client:
simple: # SimpleDiscoveryClient to configure statically services
instances:
hello-service:
- secure: false
port: 8090
host: localhost
serviceId: hello-service
instanceId: hello-service-1
- secure: false
port: 8091
host: localhost
serviceId: hello-service
instanceId: hello-service-2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment