fix: use explicit localhost for docreader health probes
This commit is contained in:
@@ -150,7 +150,7 @@ services:
|
|||||||
- MINERU_ENDPOINT=${MINERU_ENDPOINT:-}
|
- MINERU_ENDPOINT=${MINERU_ENDPOINT:-}
|
||||||
- MAX_FILE_SIZE_MB=${MAX_FILE_SIZE_MB:-}
|
- MAX_FILE_SIZE_MB=${MAX_FILE_SIZE_MB:-}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "grpc_health_probe", "-addr=:50051"]
|
test: ["CMD", "grpc_health_probe", "-addr=localhost:50051"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
+1
-1
@@ -171,7 +171,7 @@ services:
|
|||||||
- DOCREADER_IMAGE_OUTPUT_DIR=/tmp/docreader
|
- DOCREADER_IMAGE_OUTPUT_DIR=/tmp/docreader
|
||||||
- MAX_FILE_SIZE_MB=${MAX_FILE_SIZE_MB:-}
|
- MAX_FILE_SIZE_MB=${MAX_FILE_SIZE_MB:-}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "grpc_health_probe", "-addr=:50051"]
|
test: ["CMD", "grpc_health_probe", "-addr=localhost:50051"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
+1
-1
@@ -229,7 +229,7 @@ DocReader 服务配置了健康检查:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "grpc_health_probe", "-addr=:50051"]
|
test: ["CMD", "grpc_health_probe", "-addr=localhost:50051"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ spec:
|
|||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- grpc_health_probe
|
- grpc_health_probe
|
||||||
- -addr=:50051
|
- -addr=localhost:50051
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
@@ -64,7 +64,7 @@ spec:
|
|||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- grpc_health_probe
|
- grpc_health_probe
|
||||||
- -addr=:50051
|
- -addr=localhost:50051
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user