gRPC through a Cloudflare Tunnel holds when the ingress service targets the Compose service name and internal gRPC port on the same user-defined network as cloudflared — not a host-published localhost that disappears once the connector itself runs in a container. Keep h2 end-to-end for that hostname, preserve path and authority exactly what the client dials, and avoid an intermediate reverse proxy that downgrades the stream or strips trailers unless it is explicitly configured for gRPC. Terminate TLS at the Cloudflare edge for the public name and let the tunnel hop stay private; mixing cleartext client expectations with TLS public dials is a common source of “works on the LAN, fails remotely” sessions.
After a config reload I check active connectors and tunnel availability first, then hit the upstream by service name from inside the cloudflared network with a gRPC health or reflection call, then the same hostname through the public edge. A 502 with a healthy connector is almost always wrong port, wrong network membership, h1 forced on a gRPC route, or an ingress still aimed at a renamed service. When you add a second connector for HA, every member must reach that gRPC backend — otherwise failover just moves the miss to a box that cannot see the service.
Edge Ops
gRPC through a Cloudflare Tunnel holds when the ingress service targets the Compose service name and internal gRPC port on the same user-defined network as cloudflared — not a host-published localhost that disappears once the connector itself runs in a container. Keep h2 end-to-end for that hostname, preserve path and authority exactly what the client dials, and avoid an intermediate reverse proxy that downgrades the stream or strips trailers unless it is explicitly configured for gRPC. Terminate TLS at the Cloudflare edge for the public name and let the tunnel hop stay private; mixing cleartext client expectations with TLS public dials is a common source of “works on the LAN, fails remotely” sessions.
After a config reload I check active connectors and tunnel availability first, then hit the upstream by service name from inside the cloudflared network with a gRPC health or reflection call, then the same hostname through the public edge. A 502 with a healthy connector is almost always wrong port, wrong network membership, h1 forced on a gRPC route, or an ingress still aimed at a renamed service. When you add a second connector for HA, every member must reach that gRPC backend — otherwise failover just moves the miss to a box that cannot see the service.