From 0785a498e961e38a5e9d35ec2a55a7ee00f5822f Mon Sep 17 00:00:00 2001 From: sn1p4am Date: Thu, 16 Apr 2026 14:09:36 +0800 Subject: [PATCH] fix: use explicit localhost for docreader health probes --- docker-compose.dev.yml | 2 +- docker-compose.yml | 2 +- docreader/README.md | 2 +- helm/templates/docreader.yaml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 84cb6712..de4bbeac 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -150,7 +150,7 @@ services: - MINERU_ENDPOINT=${MINERU_ENDPOINT:-} - MAX_FILE_SIZE_MB=${MAX_FILE_SIZE_MB:-} healthcheck: - test: ["CMD", "grpc_health_probe", "-addr=:50051"] + test: ["CMD", "grpc_health_probe", "-addr=localhost:50051"] interval: 30s timeout: 10s retries: 3 diff --git a/docker-compose.yml b/docker-compose.yml index 54549cbe..b7fc5bb7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -171,7 +171,7 @@ services: - DOCREADER_IMAGE_OUTPUT_DIR=/tmp/docreader - MAX_FILE_SIZE_MB=${MAX_FILE_SIZE_MB:-} healthcheck: - test: ["CMD", "grpc_health_probe", "-addr=:50051"] + test: ["CMD", "grpc_health_probe", "-addr=localhost:50051"] interval: 30s timeout: 10s retries: 3 diff --git a/docreader/README.md b/docreader/README.md index 19f49541..680cd6dc 100644 --- a/docreader/README.md +++ b/docreader/README.md @@ -229,7 +229,7 @@ DocReader 服务配置了健康检查: ```yaml healthcheck: - test: ["CMD", "grpc_health_probe", "-addr=:50051"] + test: ["CMD", "grpc_health_probe", "-addr=localhost:50051"] interval: 30s timeout: 10s retries: 3 diff --git a/helm/templates/docreader.yaml b/helm/templates/docreader.yaml index c95ebe7b..229f8bc2 100644 --- a/helm/templates/docreader.yaml +++ b/helm/templates/docreader.yaml @@ -55,7 +55,7 @@ spec: exec: command: - grpc_health_probe - - -addr=:50051 + - -addr=localhost:50051 initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds: 5 @@ -64,7 +64,7 @@ spec: exec: command: - grpc_health_probe - - -addr=:50051 + - -addr=localhost:50051 initialDelaySeconds: 10 periodSeconds: 5 timeoutSeconds: 3