File tree 4 files changed +13
-3
lines changed
4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ type: application
7
7
# This is the chart version. This version number should be incremented each time you make changes
8
8
# to the chart and its templates, including the app version.
9
9
# Versions are expected to follow Semantic Versioning (https://semver.org/)
10
- version : 16.8 .0
10
+ version : 16.9 .0
11
11
12
12
# This is the version number of the application being deployed. This version number should be
13
13
# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change 15
15
ports :
16
16
{{- range .Values.service.ports }}
17
17
- {{ toYaml . | indent 6 | trim }}
18
- targetPort : 8080
19
18
{{- end }}
19
+ {{ if eq .Values.serviceMonitor.enabled true -}}
20
+ - name : metrics
21
+ protocol : TCP
22
+ port : {{ .Values.env.PROMETHEUS_MONITORING_PORT }}
23
+ targetPort : {{ .Values.env.PROMETHEUS_MONITORING_PORT }}
24
+ {{ end }}
20
25
{{ if eq .Values.service.type "ClusterIP" -}}
21
26
{{ if .Values.service.clusterIP }}
22
27
clusterIP : {{ .Values.service.clusterIP }}
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ metadata:
8
8
app : weaviate
9
9
app.kubernetes.io/name : weaviate
10
10
app.kubernetes.io/managed-by : helm
11
+ {{- if .Values.serviceMonitor.additionalLabels }}
12
+ {{- toYaml .Values.serviceMonitor.additionalLabels | nindent 4 }}
13
+ {{- end }}
11
14
spec :
12
15
jobLabel : weaviate
13
16
selector :
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ service:
106
106
- name : http
107
107
protocol : TCP
108
108
port : 80
109
- # Target port is going to be the same for every port
109
+ targetPort : 8080
110
110
type : LoadBalancer
111
111
loadBalancerSourceRanges : []
112
112
# optionally set cluster IP if you want to set a static IP
@@ -137,6 +137,7 @@ serviceMonitor:
137
137
enabled : false
138
138
interval : 30s
139
139
scrapeTimeout : 10s
140
+ additionalLabels : {}
140
141
141
142
# Adjust liveness, readiness and startup probes configuration
142
143
startupProbe :
229
230
# Expose metrics on port 2112 for Prometheus to scrape
230
231
PROMETHEUS_MONITORING_ENABLED : false
231
232
PROMETHEUS_MONITORING_GROUP : false
233
+ PROMETHEUS_MONITORING_PORT : 2112
232
234
233
235
# Set a MEM limit for the Weaviate Pod so it can help you both increase GC-related
234
236
# performance as well as avoid GC-related out-of-memory (“OOM”) situations
You can’t perform that action at this time.
0 commit comments