forked from thanos-io/thanos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththanos-store.yaml
54 lines (54 loc) · 1.43 KB
/
thanos-store.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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: thanos-store
spec:
serviceName: "thanos-store"
replicas: 1
selector:
matchLabels:
app: thanos
thanos-peer: "true"
template:
metadata:
labels:
app: thanos
thanos-peer: "true"
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "10902"
spec:
containers:
- name: thanos-store
image: improbable/thanos:master
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /creds/gcs-credentials.json
args:
- "store"
- "--log.level=debug"
- "--tsdb.path=/var/thanos/store"
- "--cluster.peers=thanos-peers.default.svc.cluster.local:10900"
# NOTE: This is required to be added in GCS prior startup of this.
- "--gcs.bucket=<bucket-name>"
ports:
- name: http
containerPort: 10902
- name: grpc
containerPort: 10901
- name: cluster
containerPort: 10900
volumeMounts:
- mountPath: /creds/
name: gcs-credentials
readOnly: true
- name: data
mountPath: /var/thanos/store
volumes:
- name: data
emptyDir: {}
- name: gcs-credentials
secret:
defaultMode: 420
# NOTE: gcs-credentials secret with single file gcs-credentials.json is required.
secretName: gcs-credentials