chore(nginx): monitoring port expose

Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
Rajesh Rajendran 2022-01-28 20:46:16 +05:30
parent a99c0e929d
commit f7ece00c13
2 changed files with 19 additions and 0 deletions

View file

@ -41,6 +41,9 @@ spec:
- name: http
containerPort: 80
protocol: TCP
- name: metrics
containerPort: 9145
protocol: TCP
livenessProbe:
httpGet:
path: /healthz

View file

@ -19,3 +19,19 @@ spec:
{{- end }}
selector:
{{- include "nginx-ingress.selectorLabels" . | nindent 4 }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "nginx-ingress.fullname" . }}-metrics
labels:
{{- include "nginx-ingress.labels" . | nindent 4 }}
openreplay/monitoring: nginx-ingress-metrics
spec:
selector:
{{- include "nginx-ingress.selectorLabels" . | nindent 4 }}
ports:
- name: metrics
port: 9145
targetPort: 9145
protocol: TCP