diff --git a/Chart.yaml b/Chart.yaml index 712121e..06d086b 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: 0.23.2 description: A Matrix-Signal puppeting bridge. name: mautrix-signal -version: 0.2.1 +version: 0.3.0 type: application keywords: - synapse diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 615f0ff..396a09d 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -78,6 +78,11 @@ spec: - name: http containerPort: {{ required "need config.appservice.port" .Values.config.appservice.port }} protocol: TCP + {{- if .Values.config.metrics.enabled }} + - name: metrics + containerPort: {{ .Values.config.metrics.listen_port }} + protocol: TCP + {{- end }} {{- with .Values.probes.liveness }} livenessProbe: httpGet: diff --git a/templates/service.yaml b/templates/service.yaml index 8b052f8..d332467 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -14,6 +14,12 @@ spec: targetPort: http protocol: TCP name: http + {{- if .Values.config.metrics.enabled }} + - port: {{ .Values.config.metrics.listen_port }} + targetPort: metrics + protocol: TCP + name: metrics + {{- end }} selector: {{- include "mautrix-signal.selectorLabels" . | nindent 4 }} {{- end }}