Skip to content

Conversation

@laurencehook-lr
Copy link

@laurencehook-lr laurencehook-lr commented Jul 7, 2025

Summary

Adds grpc_health_probe to enable native health checks for gRPC services in Kubernetes and AWS ECS.

Usage

Kubernetes

livenessProbe:
  exec:
    command:
    - /bin/grpc_health_probe
    - -addr=localhost:50051
  initialDelaySeconds: 30
  periodSeconds: 10

readinessProbe:
  exec:
    command:
    - /bin/grpc_health_probe
    - -addr=localhost:50051
  initialDelaySeconds: 10
  periodSeconds: 5

AWS ECS

"healthCheck": {
  "command": [
    "CMD-SHELL",
    "/bin/grpc_health_probe -addr=localhost:50051 || exit 1"
  ],
  "interval": 30,
  "timeout": 5,
  "retries": 3,
  "startPeriod": 60
}

Test

docker exec <container_id> /bin/grpc_health_probe -addr=localhost:50051
# Expected: status: SERVING

🤖 Generated with Claude Code

The grpc_health_probe binary was being installed in the builder stage but not copied to the final Alpine image, making it unavailable at runtime. This fix ensures the health probe is available for ECS health checks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant