From 5b2f036a0456b02eb31d3757a33f0b7aaa7a4466 Mon Sep 17 00:00:00 2001 From: Ashwin Venkatesh Date: Thu, 12 Jan 2023 14:22:21 -0500 Subject: [PATCH] Create annotation to allows users to use proxy health check (#1824) --- CHANGELOG.md | 2 ++ control-plane/connect-inject/annotations.go | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce2f6f5208..3ecbe9ed66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ IMPROVEMENTS: * Helm: * Add a `global.extraLabels` stanza to allow setting global Kubernetes labels for all components deployed by the `consul-k8s` Helm chart. [[GH-1778](https://github.com/hashicorp/consul-k8s/pull/1778)] +* Control-Plane + * Add support for the annotation `consul.hashicorp.com/use-proxy-health-check`. [[GH-1824](https://github.com/hashicorp/consul-k8s/pull/1824)] BUG FIXES: * Control Plane diff --git a/control-plane/connect-inject/annotations.go b/control-plane/connect-inject/annotations.go index fa35959160..e63a7b1935 100644 --- a/control-plane/connect-inject/annotations.go +++ b/control-plane/connect-inject/annotations.go @@ -78,6 +78,11 @@ const ( // Deprecated: This annotation is no longer supported. annotationSyncPeriod = "consul.hashicorp.com/connect-sync-period" + // annotationUseProxyHealthCheck creates a readiness listener on the sidecar proxy and + // queries this instead of the application health check for the status of the application. + // Enable this only if the application does not support health checks. + annotationUseProxyHealthCheck = "consul.hashicorp.com/use-proxy-health-check" + // annotations for sidecar proxy resource limits. annotationSidecarProxyCPULimit = "consul.hashicorp.com/sidecar-proxy-cpu-limit" annotationSidecarProxyCPURequest = "consul.hashicorp.com/sidecar-proxy-cpu-request"