From e1bf4284947af9edd36e9d6f4d2c32e2d1fe9b14 Mon Sep 17 00:00:00 2001 From: David Yu Date: Thu, 6 Jul 2023 09:50:11 -0700 Subject: [PATCH] docs - add service weights docs Docs for https://github.com/hashicorp/consul-k8s/pull/2293 --- website/content/docs/k8s/annotations-and-labels.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/website/content/docs/k8s/annotations-and-labels.mdx b/website/content/docs/k8s/annotations-and-labels.mdx index 547a82a6cc..a896af8c3e 100644 --- a/website/content/docs/k8s/annotations-and-labels.mdx +++ b/website/content/docs/k8s/annotations-and-labels.mdx @@ -191,6 +191,13 @@ The following Kubernetes resource annotations could be used on a pod to control consul.hashicorp.com/kubernetes-service: 'service-name-to-use' ``` +- `consul.hashicorp.com/service-weight:` - Configure ability to support weighted loadbalancing by service annotation for Catalog Sync. The integer provided will be applied as a weight for the `passing` state for the health of the service. See [weights](/consul/docs/services/configuration/services-configuration-reference#weights) in service configuration for more information on how this is leveraged for services in the Catalog. + + ```yaml + annotations: + consul.hashicorp.com/service-weight: 10 + ``` + - `consul.hashicorp.com/service-tags` - A comma separated list of tags that will be applied to the Consul service and its sidecar.