File tree Expand file tree Collapse file tree 4 files changed +27
-3
lines changed Expand file tree Collapse file tree 4 files changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ version: 2.2.0
21
21
# incremented each time you make changes to the application. Versions are not expected to
22
22
# follow Semantic Versioning. They should reflect the version the application is using.
23
23
# It is recommended to use it with quotes.
24
- appVersion : " v0.7.1 "
24
+ appVersion : " v0.7.2 "
25
25
26
26
sources :
27
27
- " https://github.com/clusterpedia-io/clusterpedia-helm"
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ kind: Service
3
3
metadata :
4
4
name : {{ include "clusterpedia.clustersynchroManager.fullname" . }}-metrics
5
5
namespace : {{ .Release.Namespace }}
6
- labels : {{- include "common.labels.standard" . | nindent 4 }}
6
+ labels :
7
+ app : {{ include "clusterpedia.clustersynchroManager.fullname" . }}
8
+ {{- include "common.labels.standard" . | nindent 4 }}
7
9
spec :
8
10
ports :
9
11
- name : metrics
Original file line number Diff line number Diff line change
1
+ {{- if .Capabilities.APIVersions.Has "monitoring.coreos.com/v1/ServiceMonitor" }}
2
+ apiVersion : monitoring.coreos.com/v1
3
+ kind : ServiceMonitor
4
+ metadata :
5
+ name : {{ include "clusterpedia.clustersynchroManager.fullname" . }}-service-monitor
6
+ namespace : {{ .Release.Namespace }}
7
+ labels :
8
+ app : {{ include "clusterpedia.clustersynchroManager.fullname" . }}
9
+ {{- if .Values.clustersynchroManager.serviceMonitor.labels }}
10
+ {{- include "common.tplvalues.render" (dict "value" .Values.clustersynchroManager.serviceMonitor.labels "context" $) | nindent 4 }}
11
+ {{- end }}
12
+ spec :
13
+ selector :
14
+ matchLabels :
15
+ app : {{ include "clusterpedia.clustersynchroManager.fullname" . }}
16
+ {{- include "common.labels.standard" . | nindent 6 }}
17
+ endpoints :
18
+ - port : metrics
19
+ path : /metrics
20
+ {{- end }}
Original file line number Diff line number Diff line change @@ -277,6 +277,8 @@ clustersynchroManager:
277
277
resourceLock : " leases"
278
278
kubeStateMetrics :
279
279
enabled : false
280
+ serviceMonitor :
281
+ labels : { }
280
282
281
283
# # controller manager config
282
284
controllerManager :
@@ -432,4 +434,4 @@ hookJob:
432
434
registry : ghcr.io
433
435
repository : cloudtty/cloudshell
434
436
tag : " v0.4.0"
435
- pullPolicy : IfNotPresent
437
+ pullPolicy : IfNotPresent
You can’t perform that action at this time.
0 commit comments