Skip to content

Commit

Permalink
add k8s comment for service discovery (#1841)
Browse files Browse the repository at this point in the history
Signed-off-by: Xiang Dai <764524258@qq.com>
  • Loading branch information
daixiang0 authored and bwplotka committed Dec 5, 2019
1 parent a90c527 commit 9193730
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/service-discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ An example using this lookup with a static flag:
--store=dnssrv+_thanosstores._tcp.mycompany.org
```
It is also work in kubernetes cluster. An example:
```
--store=dnssrv+_grpc._tcp.thanos-store.monitoring.svc
```
It means that in kubernetes cluster, there is a service named "thanos-store" in `monitoring` namespace with a port defined named "grpc".
* `dnssrvnoa+` - the domain name after this prefix will be looked up as a SRV query, with no A/AAAA lookup made after that. Similar to the `dnssrv+` case, you do not need to specify a port. An example:
```
Expand Down

0 comments on commit 9193730

Please sign in to comment.