diff --git a/charts/tidb-cluster/templates/monitor-deployment.yaml b/charts/tidb-cluster/templates/monitor-deployment.yaml index e970edf199..2cfd4b5c1f 100644 --- a/charts/tidb-cluster/templates/monitor-deployment.yaml +++ b/charts/tidb-cluster/templates/monitor-deployment.yaml @@ -64,6 +64,10 @@ spec: value: {{ .Values.binlog.pump.create | default false | quote }} - name: PROM_CONFIG_PATH value: /prometheus-rules + - name: PROM_PERSISTENT_DIR + value: /data + - name: TIDB_VERSION + value: {{ .Values.tidb.image }} - name: GF_K8S_PROMETHEUS_URL value: {{ .Values.monitor.initializer.config.K8S_PROMETHEUS_URL }} - name: GF_TIDB_PROMETHEUS_URL @@ -132,6 +136,8 @@ spec: imagePullPolicy: {{ .Values.monitor.reloader.imagePullPolicy | default "IfNotPresent" }} command: - /bin/reload + - --root-store-path=/data + - --sub-store-path={{ .Values.tidb.image }} - --watch-path=/prometheus-rules/rules - --prometheus-url=http://127.0.0.1:9090 ports: @@ -142,6 +148,8 @@ spec: - name: prometheus-rules mountPath: /prometheus-rules readOnly: false + - name: monitor-data + mountPath: /data resources: {{ toYaml .Values.monitor.reloader.resources | indent 10 }} {{- end }} diff --git a/charts/tidb-cluster/values.yaml b/charts/tidb-cluster/values.yaml index 6cbf813699..22f29780dc 100644 --- a/charts/tidb-cluster/values.yaml +++ b/charts/tidb-cluster/values.yaml @@ -445,7 +445,7 @@ monitor: # memory: 64Mi reloader: create: true - image: pingcap/tidb-monitor-reloader:v1.0.0 + image: pingcap/tidb-monitor-reloader:v1.0.1 imagePullPolicy: IfNotPresent service: type: NodePort