chore(nginx): monitoring port expose
Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
parent
a99c0e929d
commit
f7ece00c13
2 changed files with 19 additions and 0 deletions
|
|
@ -41,6 +41,9 @@ spec:
|
|||
- name: http
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
- name: metrics
|
||||
containerPort: 9145
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue