forked from kkc/prometheus-thanos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththanos-store.yaml
More file actions
71 lines (70 loc) · 1.7 KB
/
thanos-store.yaml
File metadata and controls
71 lines (70 loc) · 1.7 KB
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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: thanos-store
namespace: monitoring
labels:
app: thanos-store
thanos-peer: "true"
spec:
serviceName: "thanos-store"
replicas: 1
selector:
matchLabels:
app: thanos-store
thanos-peer: "true"
template:
metadata:
labels:
app: thanos-store
thanos-peer: "true"
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "10902"
spec:
containers:
- name: thanos-store
# Always use explicit image tags (release or master-<date>-sha) instead of ambigous `latest` or `master`.
image: improbable/thanos:v0.2.1
args:
- "store"
- "--log.level=debug"
- "--data-dir=/var/thanos/store"
- "--cluster.peers=thanos-peers.monitoring.svc.cluster.local:10900"
- "--objstore.config-file=/config/thanos-store.yml"
ports:
- name: http
containerPort: 10902
- name: grpc
containerPort: 10901
- name: cluster
containerPort: 10900
volumeMounts:
- name: config
mountPath: /config/
readOnly: true
- name: data
mountPath: /var/thanos/store
volumes:
- name: data
emptyDir: {}
- name: config
configMap:
name: thanos-store-config
---
apiVersion: v1
kind: ConfigMap
metadata:
name: thanos-store-config
namespace: monitoring
data:
thanos-store.yml: |-
type: S3
config:
bucket: test-prometheus-thanos
endpoint: "s3.us-west-2.amazonaws.com"
insecure: false
signature_version2: false
encrypt_sse: true
http_config:
idle_conn_timeout: 0s