forked from kkc/prometheus-thanos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
thanos-compactor.yaml
46 lines (46 loc) · 1.12 KB
/
thanos-compactor.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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: thanos-compactor
namespace: monitoring
labels:
app: thanos-compactor
thanos-peer: "true"
spec:
serviceName: "thanos-compactor"
replicas: 1
selector:
matchLabels:
app: thanos-compactor
thanos-peer: "true"
template:
metadata:
labels:
app: thanos-compactor
thanos-peer: "true"
spec:
containers:
- name: thanos-compactor
# Always use explicit image tags (release or master-<date>-sha) instead of ambigous `latest` or `master`.
image: improbable/thanos:v0.2.1
args:
- "compact"
- "--log.level=debug"
- "--data-dir=/var/thanos/store"
- "--objstore.config-file=/config/thanos-store.yml"
- "--wait"
ports:
- name: http
containerPort: 10902
volumeMounts:
- name: config
mountPath: /config/
readOnly: true
- name: data
mountPath: /var/thanos/store
volumes:
- name: data
emptyDir: {}
- name: config
configMap:
name: thanos-store-config