forked from pablokbs/peladonerd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
02-thanos-querier.yaml
87 lines (86 loc) · 1.66 KB
/
02-thanos-querier.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# This allow us to do
# SRV lookup: thanos-store-api.default.svc
apiVersion: v1
kind: Service
metadata:
name: thanos-store-gateway
namespace: monitoring
spec:
type: ClusterIP
clusterIP: None
ports:
- name: grpc
port: 10901
targetPort: grpc
selector:
thanos-store-api: "true"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: thanos-querier
labels:
app: thanos-querier
spec:
replicas: 1
selector:
matchLabels:
app: thanos-querier
template:
metadata:
labels:
app: thanos-querier
spec:
containers:
- name: thanos
image: quay.io/thanos/thanos:v0.10.0
args:
- query
- --log.level=debug
- --query.replica-label=replica
# - --cluster.disable
# Discover local store APIs using DNS SRV.
- --store=dnssrv+thanos-store-gateway.default.svc
# Get remote store APIs by IP:Port.
- --store=161.35.240.36:10901
- --store=161.35.240.44:10901
ports:
- name: http
containerPort: 10902
- name: grpc
containerPort: 10901
livenessProbe:
httpGet:
path: /-/healthy
port: http
---
apiVersion: v1
kind: Service
metadata:
labels:
app: thanos-querier
name: thanos-querier-svc
spec:
ports:
- port: 9090
protocol: TCP
targetPort: http
name: http
selector:
app: thanos-querier
---
apiVersion: v1
kind: Service
metadata:
labels:
app: thanos-querier
name: thanos-querier-svc-nodeport
spec:
ports:
- port: 9090
protocol: TCP
targetPort: http
name: http
selector:
app: thanos-querier
type: NodePort