In this article
Bind the active probe to the intended service identity and test a wrong-service response; HTTP success alone does not establish endpoint suitability.
The health URL answers from a replacement workload
A service instance disappears and its address is reused by another workload exposing the same generic health URL. The proxy receives a successful response and may admit the wrong endpoint. Reachability and status alone did not establish that the intended service occupies the address.
The health-checking guide describes this address-reuse problem and a service identity check. The failure is different from a correctly identified model that is still warming up: the probe may have reached an entirely different service.
Keep request routing and response identity separate
Record the configured probe path, request host and actual upstream address. Those fields describe where the probe is sent, not necessarily what service generated its response. A shared health path can be valid for several unrelated workloads.
The health-check API defines service_name_matcher separately. Its response comparison adds another condition beyond the expected status. Preserve the matcher type and accepted identity rather than assuming that adding any nonempty string enables the intended check.
Inspect the reported service name
The guide describes comparing the x-envoy-upstream-healthchecked-cluster response header with the configured matcher. The upstream health-check filter derives that reported name from its service-cluster configuration. Preserve both sides of that contract.
A wrong or broadly matched name can defeat the accidental-reuse protection. Confirm that the expected identity belongs to the intended workload and is not copied indiscriminately across every deployment. Configuration naming is part of the check, not merely decorative telemetry.
Test the misleading success
In an isolated fixture, provide a healthy intended service and another service returning the same successful status on the same path. Vary only the reported identity, then confirm the matcher rejects the wrong service. Include a missing identity response as a separate case.
Keep the probe transport and application path representative. A test using a different listener or bypassing the configured health-check filter can validate a contract the real deployment never exercises.
Acceptance for service eligibility
Accept the check when the actual endpoint response satisfies the intended identity and health conditions, and the wrong-service fixture is excluded. Then validate the required application operation independently; matching the service name does not prove weights, tools or data dependencies are usable.
Route-probe scope explains the distinction between a successful method and inference. Readiness decisions explain which operational action should follow each result.
This header is not an authorization credential
A response name is not a cryptographic identity or proof against a malicious peer able to forge it. Transport authentication and authorization require their own policy. The useful guarantee here is narrower: under the trusted configuration, an accidentally reused address cannot pass solely by returning a generic successful health response. Preserve that boundary rather than advertising the matcher as complete service authentication.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.