fix: add health probes for gateway and nacos

This commit is contained in:
tsiji 2026-10-03 15:58:58 +08:00
parent 60b036fc40
commit 1ed2e73dbf
2 changed files with 42 additions and 0 deletions

View File

@ -91,6 +91,27 @@ spec:
ports:
- containerPort: 9999
protocol: TCP
startupProbe:
httpGet:
path: /actuator/health/liveness
port: 9999
failureThreshold: 60
periodSeconds: 5
timeoutSeconds: 3
readinessProbe:
httpGet:
path: /actuator/health/readiness
port: 9999
failureThreshold: 2
periodSeconds: 5
timeoutSeconds: 3
livenessProbe:
httpGet:
path: /actuator/health/liveness
port: 9999
failureThreshold: 3
periodSeconds: 10
timeoutSeconds: 3
resources:
limits:
memory: 4Gi

View File

@ -75,6 +75,27 @@ spec:
ports:
- containerPort: 8848
protocol: TCP
startupProbe:
httpGet:
path: /nacos/v1/console/health/readiness
port: 8848
failureThreshold: 60
periodSeconds: 5
timeoutSeconds: 3
readinessProbe:
httpGet:
path: /nacos/v1/console/health/readiness
port: 8848
failureThreshold: 2
periodSeconds: 5
timeoutSeconds: 3
livenessProbe:
httpGet:
path: /nacos/v1/console/health/liveness
port: 8848
failureThreshold: 3
periodSeconds: 10
timeoutSeconds: 3
resources:
limits:
memory: 4Gi