health check: add TlsOptions for overrides (#9378)

Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>

Mirrored from https://github.com/envoyproxy/envoy @ 3e30f21c23597cb9a27d8e938c13b408118ab46e
master-ci-test
data-plane-api(CircleCI) 5 years ago
parent d19559df4a
commit d7158b618b
  1. 17
      envoy/api/v2/core/health_check.proto
  2. 21
      envoy/config/core/v3alpha/health_check.proto

@ -51,7 +51,7 @@ enum HealthStatus {
DEGRADED = 5;
}
// [#next-free-field: 21]
// [#next-free-field: 22]
message HealthCheck {
// Describes the encoding of the payload bytes in the payload.
message Payload {
@ -178,6 +178,18 @@ message HealthCheck {
}
}
// Health checks occur over the transport socket specified for the cluster. This implies that if a
// cluster is using a TLS-enabled transport socket, the health check will also occur over TLS.
//
// This allows overriding the cluster TLS settings, just for health check connections.
message TlsOptions {
// Specifies the ALPN protocols for health check connections. This is useful if the
// corresponding upstream is using ALPN-based :ref:`FilterChainMatch
// <envoy_api_msg_listener.FilterChainMatch>` along with different protocols for health checks
// versus data connections. If empty, no ALPN protocols will be set on health check connections.
repeated string alpn_protocols = 1;
}
reserved 10;
// The time to wait for a health check response. If the timeout is reached the
@ -282,4 +294,7 @@ message HealthCheck {
// initial health check failure event will be logged.
// The default value is false.
bool always_log_health_check_failures = 19;
// This allows overriding the cluster TLS settings, just for health check connections.
TlsOptions tls_options = 21;
}

@ -51,7 +51,7 @@ enum HealthStatus {
DEGRADED = 5;
}
// [#next-free-field: 21]
// [#next-free-field: 22]
message HealthCheck {
option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.core.HealthCheck";
@ -190,6 +190,22 @@ message HealthCheck {
}
}
// Health checks occur over the transport socket specified for the cluster. This implies that if a
// cluster is using a TLS-enabled transport socket, the health check will also occur over TLS.
//
// This allows overriding the cluster TLS settings, just for health check connections.
message TlsOptions {
option (udpa.annotations.versioning).previous_message_type =
"envoy.api.v2.core.HealthCheck.TlsOptions";
// Specifies the ALPN protocols for health check connections. This is useful if the
// corresponding upstream is using ALPN-based :ref:`FilterChainMatch
// <envoy_api_msg_config.listener.v3alpha.FilterChainMatch>` along with different protocols for
// health checks versus data connections. If empty, no ALPN protocols will be set on health
// check connections.
repeated string alpn_protocols = 1;
}
reserved 10;
// The time to wait for a health check response. If the timeout is reached the
@ -294,4 +310,7 @@ message HealthCheck {
// initial health check failure event will be logged.
// The default value is false.
bool always_log_health_check_failures = 19;
// This allows overriding the cluster TLS settings, just for health check connections.
TlsOptions tls_options = 21;
}

Loading…
Cancel
Save