forked from spring-petclinic/spring-petclinic-cloud
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapplication-for-appconfig.yaml
105 lines (99 loc) · 2.43 KB
/
application-for-appconfig.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
server:
shutdown: graceful
lifecycle:
timeout-per-shutdown-phase: 15
port: 8080
compression:
enabled: true
mime-types: application/json,text/css,application/javascript
min-response-size: 2048
# Logging
logging.level.org.springframework: INFO
# Metrics
management:
endpoint:
health:
probes:
enabled: true
health:
livenessState:
enabled: true
readinessState:
enabled: true
restart:
enabled: true
metrics:
enabled: true
prometheus:
enabled: true
endpoints:
web:
exposure:
include: '*'
metrics:
export:
prometheus:
enabled: false
wavefront:
enabled: false
customers-service-id: http://customers-service.spring-petclinic-stage.svc.cluster.local:8080
visits-service-id: http://vists-service.spring-petclinic-stage.svc.cluster.local:8080
spring:
datasource:
schema: classpath*:db/mysql/schema.sql
data: classpath*:db/mysql/data.sql
platform: mysql
initialization-mode: always
jpa:
show-sql: true
hibernate:
ddl-auto: none
generate-ddl: false
sleuth:
sampler:
probability: 1.0
config:
# Allow the microservices to override the remote properties with their own System properties or config file
allow-override: true
# Override configuration with any local property source
override-none: true
messages:
basename: messages/messages
cloud:
kubernetes:
discovery:
enabled: true
loadbalancer:
ribbon:
enabled: false
gateway:
x-forwarded:
enabled: true
for-enabled: true
proto-enabled: true
host-append: false
port-append: false
proto-append: false
routes:
- id: vets-service
uri: http://vets-service.spring-petclinic-stage.svc.cluster.local:8080
predicates:
- Path=/api/vet/**
filters:
- StripPrefix=2
- id: visits-service
uri: http://visits-service.spring-petclinic-stage.svc.cluster.local:8080
predicates:
- Path=/api/visit/**
filters:
- StripPrefix=2
- id: customers-service
uri: http://customers-service.spring-petclinic-stage.svc.cluster.local:8080
predicates:
- Path=/api/customer/**
filters:
- StripPrefix=2
vets:
cache:
ttl: 60
heap-size: 101