File tree 12 files changed +18
-70
lines changed
charts/application-template
12 files changed +18
-70
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ maintainers:
9
9
- name : modusign
10
10
url : https://github.com/modusign
11
11
name : application-template
12
- version : 1.4.1
12
+ version : 1.4.2
Original file line number Diff line number Diff line change @@ -103,11 +103,6 @@ spec:
103
103
containerPort : {{ .targetPort }}
104
104
protocol : TCP
105
105
{{- end }}
106
- {{- if .Values.global.observability.prometheus.enabled }}
107
- - name : metrics
108
- containerPort : {{ default .Values.global.observability.prometheus.port .Values.global.observability.prometheus.targetPort }}
109
- protocol : TCP
110
- {{- end }}
111
106
{{- with .Values.scheduler.livenessProbe }}
112
107
livenessProbe :
113
108
httpGet :
Original file line number Diff line number Diff line change @@ -107,11 +107,6 @@ spec:
107
107
containerPort : {{ .targetPort }}
108
108
protocol : TCP
109
109
{{- end }}
110
- {{- if .Values.global.observability.prometheus.enabled }}
111
- - name : metrics
112
- containerPort : {{ default .Values.global.observability.prometheus.port .Values.global.observability.prometheus.targetPort }}
113
- protocol : TCP
114
- {{- end }}
115
110
{{- with .Values.scheduler.livenessProbe }}
116
111
livenessProbe :
117
112
httpGet :
Original file line number Diff line number Diff line change 12
12
port : {{ .port }}
13
13
targetPort : {{ .targetPort }}
14
14
protocol : TCP
15
- {{- end }}
16
- {{- if .Values.global.observability.prometheus.enabled }}
17
- {{- with .Values.global.observability.prometheus }}
18
- - name : metrics
19
- port : {{ .port }}
20
- {{- if .targetPort }}
21
- targetPort : {{ .targetPort }}
22
- {{- end }}
23
- protocol : TCP
24
- {{- end }}
25
15
{{- end }}
26
16
selector :
27
17
{{- include "application.scheduler.selectorLabels" . | nindent 4 }}
Original file line number Diff line number Diff line change @@ -103,11 +103,6 @@ spec:
103
103
containerPort : {{ .targetPort }}
104
104
protocol : TCP
105
105
{{- end }}
106
- {{- if .Values.global.observability.prometheus.enabled }}
107
- - name : metrics
108
- containerPort : {{ default .Values.global.observability.prometheus.port .Values.global.observability.prometheus.targetPort }}
109
- protocol : TCP
110
- {{- end }}
111
106
{{- with .Values.server.livenessProbe }}
112
107
livenessProbe :
113
108
httpGet :
Original file line number Diff line number Diff line change @@ -107,11 +107,6 @@ spec:
107
107
containerPort : {{ .targetPort }}
108
108
protocol : TCP
109
109
{{- end }}
110
- {{- if .Values.global.observability.prometheus.enabled }}
111
- - name : metrics
112
- containerPort : {{ default .Values.global.observability.prometheus.port .Values.global.observability.prometheus.targetPort }}
113
- protocol : TCP
114
- {{- end }}
115
110
{{- with .Values.server.livenessProbe }}
116
111
livenessProbe :
117
112
httpGet :
Original file line number Diff line number Diff line change 12
12
port : {{ .port }}
13
13
targetPort : {{ .targetPort }}
14
14
protocol : TCP
15
- {{- end }}
16
- {{- if .Values.global.observability.prometheus.enabled }}
17
- {{- with .Values.global.observability.prometheus }}
18
- - name : metrics
19
- port : {{ .port }}
20
- {{- if .targetPort }}
21
- targetPort : {{ .targetPort }}
22
- {{- end }}
23
- protocol : TCP
24
- {{- end }}
25
15
{{- end }}
26
16
selector :
27
17
{{- include "application.server.selectorLabels" . | nindent 4 }}
Original file line number Diff line number Diff line change 1
- {{- if and .Values.global.observability.prometheus.enabled .Values.global.observability.prometheus.serviceMonitor.enabled }}
1
+ {{- if .Values.global.observability.prometheus.serviceMonitor.enabled }}
2
2
apiVersion : monitoring.coreos.com/v1
3
3
kind : ServiceMonitor
4
4
metadata :
@@ -7,8 +7,8 @@ metadata:
7
7
{{- include "application.commonLabels" . | nindent 4 }}
8
8
spec :
9
9
endpoints :
10
- - path : {{ .Values.global.observability.prometheus.path }}
11
- port : metrics
10
+ - path : {{ .Values.global.observability.prometheus.serviceMonitor. path }}
11
+ port : {{ .Values.global.observability.prometheus.serviceMonitor.portName }}
12
12
namespaceSelector :
13
13
matchNames :
14
14
- {{ .Release.Namespace }}
Original file line number Diff line number Diff line change @@ -103,11 +103,6 @@ spec:
103
103
containerPort : {{ .targetPort }}
104
104
protocol : TCP
105
105
{{- end }}
106
- {{- if .Values.global.observability.prometheus.enabled }}
107
- - name : metrics
108
- containerPort : {{ default .Values.global.observability.prometheus.port .Values.global.observability.prometheus.targetPort }}
109
- protocol : TCP
110
- {{- end }}
111
106
{{- with .Values.worker.livenessProbe }}
112
107
livenessProbe :
113
108
httpGet :
Original file line number Diff line number Diff line change @@ -107,11 +107,6 @@ spec:
107
107
containerPort : {{ .targetPort }}
108
108
protocol : TCP
109
109
{{- end }}
110
- {{- if .Values.global.observability.prometheus.enabled }}
111
- - name : metrics
112
- containerPort : {{ default .Values.global.observability.prometheus.port .Values.global.observability.prometheus.targetPort }}
113
- protocol : TCP
114
- {{- end }}
115
110
{{- with .Values.worker.livenessProbe }}
116
111
livenessProbe :
117
112
httpGet :
Original file line number Diff line number Diff line change 12
12
port : {{ .port }}
13
13
targetPort : {{ .targetPort }}
14
14
protocol : TCP
15
- {{- end }}
16
- {{- if .Values.global.observability.prometheus.enabled }}
17
- {{- with .Values.global.observability.prometheus }}
18
- - name : metrics
19
- port : {{ .port }}
20
- {{- if .targetPort }}
21
- targetPort : {{ .targetPort }}
22
- {{- end }}
23
- protocol : TCP
24
- {{- end }}
25
15
{{- end }}
26
16
selector :
27
17
{{- include "application.worker.selectorLabels" . | nindent 4 }}
Original file line number Diff line number Diff line change @@ -107,13 +107,12 @@ global:
107
107
enabled : false
108
108
# -- set up additional service port and setup
109
109
prometheus :
110
- enabled : false
111
- port : 9100
112
- # targetPort: 9100
113
- path : /metrics
114
- # -- create Prometheus Operator ServiceMonitorCR
110
+ # -- create Prometheus Operator ServiceMonitor CR
115
111
serviceMonitor :
116
- enabled : true
112
+ enabled : false
113
+ # port name of Service. e.g. server.ports[].name
114
+ portName : metrics
115
+ path : /metrics
117
116
118
117
# # Server
119
118
server :
@@ -235,6 +234,9 @@ server:
235
234
- name : http
236
235
port : 80
237
236
targetPort : 3000
237
+ # - name: metrics
238
+ # port: 9100
239
+ # targetPort: 3001
238
240
239
241
# # Readiness and liveness probes for default backend
240
242
# # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
@@ -476,6 +478,9 @@ worker:
476
478
- name : http
477
479
port : 80
478
480
targetPort : 3000
481
+ # - name: metrics
482
+ # port: 9100
483
+ # targetPort: 3001
479
484
480
485
# # Readiness and liveness probes for default backend
481
486
# # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
@@ -720,6 +725,9 @@ scheduler:
720
725
- name : http
721
726
port : 80
722
727
targetPort : 3000
728
+ # - name: metrics
729
+ # port: 9100
730
+ # targetPort: 3001
723
731
724
732
# # Readiness and liveness probes for default backend
725
733
# # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
You can’t perform that action at this time.
0 commit comments