Skip to content

Commit

Permalink
Merge pull request #47 from Sporqist/patch-scrapingport
Browse files Browse the repository at this point in the history
[Fix] Use prometheusScraping variables
  • Loading branch information
r0zbot authored Mar 9, 2022
2 parents d93451a + 273a1b3 commit f860325
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions rocketchat/templates/chat-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@ spec:
ports:
- name: http
containerPort: 3000
{{- if .Values.prometheusScraping.enabled }}
- name: metrics
containerPort: 9458
containerPort: {{ .Values.prometheusScraping.port }}
{{- end}}
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
httpGet:
Expand Down Expand Up @@ -214,4 +216,4 @@ spec:
app.kubernetes.io/name: {{ include "rocketchat.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{- end }}
{{- end }}
8 changes: 7 additions & 1 deletion rocketchat/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ spec:
nodePort: {{ $service.nodePort }}
{{- end }}
protocol: TCP
{{- if .Values.prometheusScraping.enabled }}
- name: metrics
port: {{ .Values.prometheusScraping.port }}
targetPort: metrics
protocol: TCP
{{- end }}
selector:
app.kubernetes.io/name: {{ include "rocketchat.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/instance: {{ .Release.Name }}

0 comments on commit f860325

Please sign in to comment.