Skip to content

Commit

Permalink
docs - add service weights docs
Browse files Browse the repository at this point in the history
  • Loading branch information
David Yu authored Jul 6, 2023
1 parent f7d399f commit e1bf428
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions website/content/docs/k8s/annotations-and-labels.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit e1bf428

Please sign in to comment.