forked from pablokbs/peladonerd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
03-thanos-compactor.yaml
43 lines (43 loc) · 1002 Bytes
/
03-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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: thanos-compactor
namespace: monitoring
labels:
app: thanos-compactor
spec:
replicas: 1
selector:
matchLabels:
app: thanos-compactor
serviceName: thanos-compactor
template:
metadata:
labels:
app: thanos-compactor
spec:
containers:
- name: thanos
image: quay.io/thanos/thanos:v0.10.0
args:
- compact
- --log.level=debug
- --data-dir=/data
- --objstore.config=$(OBJSTORE_CONFIG)
- --wait
env:
- name: OBJSTORE_CONFIG
valueFrom:
secretKeyRef:
key: thanos.yaml
name: thanos-objectstorage
ports:
- name: http
containerPort: 10902
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: "100m"
memory: 256Mi