The proxy runs the check that matches the destination’s declared protocol. An HTTP or gRPC destination falls back to a TCP check only when its protocol-specific check is explicitly disabled and a tcp block is enabled.
HTTP destinations get HTTP/1 probes, and HTTP/2 destinations get HTTP/2 probes. If probes fail
but a manual request succeeds, check the service’s declared protocol.
http accepts the following fields:
|
Field
|
Governs
|
Default
|
path
|
Path the probe requests.
|
/
|
expectedStatuses
|
Response statuses treated as healthy, from 100 to 599.
|
200 only
|
requestHeadersToAdd
|
Headers to set (replace) or add (append) on each probe.
|
none
|
tcp accepts the following fields:
send: a literal string to write.
receive: literal strings expected in the response, in order but not necessarily adjacent.
The proxy sends and compares both as plain bytes.
Without receive, the probe only checks that a TCP connection opens. A successful connection proves the endpoint
accepts connections, not that the application works.
grpc accepts the following fields:
serviceName: passed to the destination’s gRPC health service.
authority: the :authority header on the probe. Defaults to the name of the check’s
cluster.
The destination must implement the gRPC health-check service.