diff --git a/scripts/helmcharts/openreplay/charts/nginx-ingress/templates/deployment.yaml b/scripts/helmcharts/openreplay/charts/nginx-ingress/templates/deployment.yaml index 7a64f5886..95c05aa67 100644 --- a/scripts/helmcharts/openreplay/charts/nginx-ingress/templates/deployment.yaml +++ b/scripts/helmcharts/openreplay/charts/nginx-ingress/templates/deployment.yaml @@ -41,6 +41,9 @@ spec: - name: http containerPort: 80 protocol: TCP + - name: metrics + containerPort: 9145 + protocol: TCP livenessProbe: httpGet: path: /healthz diff --git a/scripts/helmcharts/openreplay/charts/nginx-ingress/templates/service.yaml b/scripts/helmcharts/openreplay/charts/nginx-ingress/templates/service.yaml index 35d6d969c..c7bcb12be 100644 --- a/scripts/helmcharts/openreplay/charts/nginx-ingress/templates/service.yaml +++ b/scripts/helmcharts/openreplay/charts/nginx-ingress/templates/service.yaml @@ -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