|
|
@@ -62,7 +62,7 @@ gateway:
|
|
|
# 健康检查
|
|
|
livenessProbe:
|
|
|
httpGet:
|
|
|
- path: /health
|
|
|
+ path: /actuator/health
|
|
|
port: 8080
|
|
|
initialDelaySeconds: 30
|
|
|
periodSeconds: 10
|
|
|
@@ -71,7 +71,7 @@ gateway:
|
|
|
|
|
|
readinessProbe:
|
|
|
httpGet:
|
|
|
- path: /health
|
|
|
+ path: /actuator/health
|
|
|
port: 8080
|
|
|
initialDelaySeconds: 20
|
|
|
periodSeconds: 5
|
|
|
@@ -81,14 +81,12 @@ gateway:
|
|
|
# 服务配置
|
|
|
# 启动探针 - 给 Java 应用充分的启动时间(5分钟才开始检查)
|
|
|
startupProbe:
|
|
|
- httpGet:
|
|
|
- path: /health
|
|
|
+ tcpSocket:
|
|
|
port: 8080
|
|
|
- initialDelaySeconds: 300
|
|
|
- periodSeconds: 10
|
|
|
- timeoutSeconds: 5
|
|
|
- failureThreshold: 60
|
|
|
-
|
|
|
+ initialDelaySeconds: 0
|
|
|
+ periodSeconds: 5
|
|
|
+ timeoutSeconds: 2
|
|
|
+ failureThreshold: 120
|
|
|
service:
|
|
|
type: ClusterIP
|
|
|
port: 8080
|
|
|
@@ -170,15 +168,10 @@ orderService:
|
|
|
|
|
|
javaOpts: "-Xms256m -Xmx512m -XX:+UseG1GC"
|
|
|
springProfiles: "kubernetes"
|
|
|
-
|
|
|
- # 环境变量
|
|
|
- env:
|
|
|
- SPRING_CONFIG_LOCATION: "file:///etc/config/application.yml"
|
|
|
- SPRING_MAIN_WEB_APPLICATION_TYPE: "reactive"
|
|
|
|
|
|
livenessProbe:
|
|
|
httpGet:
|
|
|
- path: /health
|
|
|
+ path: /actuator/health
|
|
|
port: 8081
|
|
|
initialDelaySeconds: 30
|
|
|
periodSeconds: 10
|
|
|
@@ -187,7 +180,7 @@ orderService:
|
|
|
|
|
|
readinessProbe:
|
|
|
httpGet:
|
|
|
- path: /health
|
|
|
+ path: /actuator/health
|
|
|
port: 8081
|
|
|
initialDelaySeconds: 20
|
|
|
periodSeconds: 5
|
|
|
@@ -196,14 +189,12 @@ orderService:
|
|
|
|
|
|
# 启动探针 - 给 Java 应用充分的启动时间(5分钟才开始检查)
|
|
|
startupProbe:
|
|
|
- httpGet:
|
|
|
- path: /health
|
|
|
+ tcpSocket:
|
|
|
port: 8081
|
|
|
- initialDelaySeconds: 300
|
|
|
- periodSeconds: 10
|
|
|
- timeoutSeconds: 5
|
|
|
- failureThreshold: 60
|
|
|
-
|
|
|
+ initialDelaySeconds: 0
|
|
|
+ periodSeconds: 5
|
|
|
+ timeoutSeconds: 2
|
|
|
+ failureThreshold: 120
|
|
|
service:
|
|
|
type: ClusterIP
|
|
|
port: 8081
|
|
|
@@ -239,15 +230,10 @@ paymentService:
|
|
|
|
|
|
javaOpts: "-Xms256m -Xmx512m -XX:+UseG1GC"
|
|
|
springProfiles: "kubernetes"
|
|
|
-
|
|
|
- # 环境变量
|
|
|
- env:
|
|
|
- SPRING_CONFIG_LOCATION: "file:///etc/config/application.yml"
|
|
|
- SPRING_MAIN_WEB_APPLICATION_TYPE: "reactive"
|
|
|
|
|
|
livenessProbe:
|
|
|
httpGet:
|
|
|
- path: /health
|
|
|
+ path: /actuator/health
|
|
|
port: 8082
|
|
|
initialDelaySeconds: 30
|
|
|
periodSeconds: 10
|
|
|
@@ -256,7 +242,7 @@ paymentService:
|
|
|
|
|
|
readinessProbe:
|
|
|
httpGet:
|
|
|
- path: /health
|
|
|
+ path: /actuator/health
|
|
|
port: 8082
|
|
|
initialDelaySeconds: 20
|
|
|
periodSeconds: 5
|
|
|
@@ -264,15 +250,12 @@ paymentService:
|
|
|
failureThreshold: 3
|
|
|
# 启动探针 - 给 Java 应用充分的启动时间(5分钟才开始检查)
|
|
|
startupProbe:
|
|
|
- httpGet:
|
|
|
- path: /health
|
|
|
+ tcpSocket:
|
|
|
port: 8082
|
|
|
- initialDelaySeconds: 300
|
|
|
- periodSeconds: 10
|
|
|
- timeoutSeconds: 5
|
|
|
- failureThreshold: 60
|
|
|
-
|
|
|
-
|
|
|
+ initialDelaySeconds: 0
|
|
|
+ periodSeconds: 5
|
|
|
+ timeoutSeconds: 2
|
|
|
+ failureThreshold: 120
|
|
|
service:
|
|
|
type: ClusterIP
|
|
|
port: 8082
|
|
|
@@ -308,7 +291,7 @@ webFrontend:
|
|
|
|
|
|
livenessProbe:
|
|
|
httpGet:
|
|
|
- path: /health
|
|
|
+ path: /actuator/health
|
|
|
port: 80
|
|
|
initialDelaySeconds: 10
|
|
|
periodSeconds: 10
|