Skip to content

Commit

Permalink
fix(installer): modify the thanos components replicas and volume moun…
Browse files Browse the repository at this point in the history
…ts (#1291)

* fix(installer): modify the thanos components replicas and volume mounts

* fix(installer): fix thanos receiver nodeport svc selector

Co-authored-by: trevdeng <[email protected]>
  • Loading branch information
t1mt and trevdeng authored Oct 19, 2021
1 parent e126e4d commit 24f26a6
Showing 1 changed file with 14 additions and 24 deletions.
38 changes: 14 additions & 24 deletions cmd/tke-installer/app/installer/manifests/thanos/thanos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ spec:
targetPort: 19291
nodePort: 31141
selector:
kubernetes.io/name: thanos-receive
app.kubernetes.io/component: database-write-hashring
app.kubernetes.io/instance: thanos-receive
app.kubernetes.io/name: thanos-receive
type: NodePort

---
Expand All @@ -69,7 +71,9 @@ data:
"hashring": "soft-tenants",
"endpoints":
[
"thanos-receive-0.thanos-receive.thanos.svc.cluster.local:10901"
"thanos-receive-0.thanos-receive.tke.svc.cluster.local:10901",
"thanos-receive-1.thanos-receive.tke.svc.cluster.local:10901",
"thanos-receive-2.thanos-receive.tke.svc.cluster.local:10901"
]
}
]
Expand All @@ -86,7 +90,7 @@ metadata:
name: thanos-receive
namespace: tke
spec:
replicas: 1
replicas: 3
selector:
matchLabels:
app.kubernetes.io/component: database-write-hashring
Expand Down Expand Up @@ -156,7 +160,6 @@ spec:
volumeMounts:
- mountPath: /var/thanos/receive
name: data
readOnly: false
- mountPath: /etc/thanos/thanos-receive-hashrings.json
name: thanos-receive-hashrings
subPath: thanos-receive-hashrings.json
Expand All @@ -167,9 +170,7 @@ spec:
name: thanos-receive-hashrings
name: thanos-receive-hashrings
- name: data
hostPath:
path: /data/thanos-receive
type: DirectoryOrCreate
emptyDir: {}

---
apiVersion: v1
Expand Down Expand Up @@ -208,7 +209,7 @@ metadata:
name: thanos-store
namespace: tke
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app.kubernetes.io/component: object-store-gateway
Expand Down Expand Up @@ -261,14 +262,10 @@ spec:
volumeMounts:
- mountPath: /var/thanos/store
name: data
readOnly: false
terminationGracePeriodSeconds: 120
volumes:
- name: data
hostPath:
path: /data/thanos-store
type: DirectoryOrCreate

emptyDir: {}

---
apiVersion: v1
Expand Down Expand Up @@ -358,14 +355,10 @@ spec:
volumeMounts:
- mountPath: /var/thanos/compact
name: data
readOnly: false
terminationGracePeriodSeconds: 120
volumes:
- name: data
hostPath:
path: /data/thanos-compact
type: DirectoryOrCreate

emptyDir: {}

---
apiVersion: v1
Expand Down Expand Up @@ -403,7 +396,7 @@ metadata:
name: thanos-query
namespace: tke
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app.kubernetes.io/component: query-layer
Expand Down Expand Up @@ -489,7 +482,7 @@ metadata:
name: thanos-rule
namespace: tke
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app.kubernetes.io/component: rule-evaluation-engine
Expand Down Expand Up @@ -551,17 +544,14 @@ spec:
volumeMounts:
- mountPath: /var/thanos/rule
name: data
readOnly: false
- name: thanos-rules
mountPath: /etc/thanos/rules
volumes:
- name: thanos-rules
configMap:
name: thanos-rules
- name: data
hostPath:
path: /data/thanos-rule
type: DirectoryOrCreate
emptyDir: {}

---
apiVersion: v1
Expand Down

0 comments on commit 24f26a6

Please sign in to comment.