File tree Expand file tree Collapse file tree 3 files changed +37
-2
lines changed
mse-simple-demo/helm/mse-simple-demo/templates Expand file tree Collapse file tree 3 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 1+ apiVersion : monitoring.coreos.com/v1
2+ kind : PodMonitor
3+ metadata :
4+ name : spring-cloud-b
5+ namespace : {{ .Release.Namespace }}
6+ spec :
7+ podMetricsEndpoints :
8+ - interval : 30s
9+ port : http-port
10+ path : /actuator/prometheus
11+ namespaceSelector :
12+ matchNames :
13+ - {{ .Release.Namespace }}
14+ selector :
15+ matchLabels :
16+ app : spring-cloud-b
17+
18+ ---
19+ apiVersion : monitoring.coreos.com/v1
20+ kind : PodMonitor
21+ metadata :
22+ name : spring-cloud-gateway
23+ namespace : {{ .Release.Namespace }}
24+ spec :
25+ podMetricsEndpoints :
26+ - interval : 30s
27+ port : http-port
28+ path : /actuator/prometheus
29+ namespaceSelector :
30+ matchNames :
31+ - {{ .Release.Namespace }}
32+ selector :
33+ matchLabels :
34+ app : spring-cloud-gateway
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ metadata:
44 name : spring-cloud-b
55 namespace : {{ .Release.Namespace }}
66spec :
7- replicas : 2
7+ replicas : 1
88 selector :
99 matchLabels :
1010 app : spring-cloud-b
Original file line number Diff line number Diff line change 4848 memory : {{ .Values.resources.limit.memory }}
4949 {{ end }}
5050 ports :
51- - containerPort : 20000
51+ - name : http-port
52+ containerPort : 20000
5253 hostAliases :
5354 {{ toYaml .Values.hostAliases | nindent 8 }}
5455 affinity :
You can’t perform that action at this time.
0 commit comments