#5097·go-zero

k8s grpc probe authentication issue

Author: githubzhaoqianCreated Aug 18, 2025Updated Aug 21, 2026
Labelsstale

Describe the bug k8s grpc 探针关于 认证的问题。

grpcurl -d {} -plaintext 0.0.0.0:8084 grpc.health.v1.Health.Check Error invoking method "grpc.health.v1.Health/Check": rpc error: code = Unauthenticated desc = failed to query for service descriptor "grpc.health.v1.Health": app/token required

  1. The config is
yaml
#开启auth认证
Auth: true
#认证严格模式
StrictControl: true
#请求超时时间
Timeout: 15000
#健康检测
Health: true
#redis cofig
Redis:
  Host: 192.168.xxxx
  Type: node
  Pass: ""
  Key: rpc:auth:server

如果grpc开启了 auth,k8s 需要如何配置grpc探针呢?没看到k8s探针支持grpc额外参数,能不能grpc auth 排除grpc.health.v1.Health 服务。 我们现在使用 grpc_health_probe 感觉怪怪的