Skip to content

Commit a615b93

Browse files
committed
Merge branch 'main' of github.com:drycc/monitor into main
2 parents 1788dec + f1b744c commit a615b93

6 files changed

Lines changed: 2441 additions & 1 deletion

File tree

charts/monitor/templates/monitor-telegraf-deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,15 @@ spec:
117117
name: redis-creds
118118
key: password
119119
{{- end }}
120+
{{- if eq .Values.global.storageLocation "on-cluster" }}
121+
- name: PD_ADDRS
122+
valueFrom:
123+
secretKeyRef:
124+
name: storage-meta-creds
125+
key: pd_addrs
126+
- name: TIKV_ADDRS
127+
valueFrom:
128+
secretKeyRef:
129+
name: storage-meta-creds
130+
key: tikv_addrs
131+
{{- end }}

charts/monitor/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ global:
9090
# - on-cluster: Run Redis within the Kubernetes cluster
9191
# - off-cluster: Run Redis outside the Kubernetes cluster (configure in redis section)
9292
redisLocation: "on-cluster"
93+
storageLocation: "on-cluster"
9394
# Role-Based Access Control for Kubernetes >= 1.5
9495
rbac: false
9596
ingressClass: ""

0 commit comments

Comments
 (0)