From af68d91fe093841de0c2b957a58b67beba792f88 Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Fri, 12 Jul 2024 14:27:44 +0100 Subject: [PATCH] services for everything that needs too be monitored (#3785) Signed-off-by: Chris Martin Co-authored-by: Chris Martin --- deployment/event-ingester/templates/service.yaml | 14 ++++++++++++++ .../lookout-ingester-v2/templates/service.yaml | 14 ++++++++++++++ deployment/lookout-v2/templates/service.yaml | 4 ++++ .../templates/scheduler-ingester-service.yaml | 14 ++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 deployment/event-ingester/templates/service.yaml create mode 100644 deployment/lookout-ingester-v2/templates/service.yaml create mode 100644 deployment/scheduler/templates/scheduler-ingester-service.yaml diff --git a/deployment/event-ingester/templates/service.yaml b/deployment/event-ingester/templates/service.yaml new file mode 100644 index 00000000000..53315535eaa --- /dev/null +++ b/deployment/event-ingester/templates/service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "event_ingester.name" . }} + namespace: {{ .Release.Namespace }} + labels: + {{- include "event_ingester.labels.all" . | nindent 4 }} +spec: + selector: + {{- include "event_ingester.labels.identity" . | nindent 4 }} + ports: + - name: metrics + protocol: TCP + port: {{ .Values.applicationConfig.metricsPort }} diff --git a/deployment/lookout-ingester-v2/templates/service.yaml b/deployment/lookout-ingester-v2/templates/service.yaml new file mode 100644 index 00000000000..9358898a025 --- /dev/null +++ b/deployment/lookout-ingester-v2/templates/service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "lookout_ingester_v2.name" . }} + namespace: {{ .Release.Namespace }} + labels: + {{- include "lookout_ingester_v2.labels.all" . | nindent 4 }} +spec: + selector: + {{- include "lookout_ingester_v2.labels.identity" . | nindent 4 }} + ports: + - name: metrics + protocol: TCP + port: {{ .Values.applicationConfig.metricsPort }} diff --git a/deployment/lookout-v2/templates/service.yaml b/deployment/lookout-v2/templates/service.yaml index 05e3bb1d59c..a4ba7a2903c 100644 --- a/deployment/lookout-v2/templates/service.yaml +++ b/deployment/lookout-v2/templates/service.yaml @@ -18,3 +18,7 @@ spec: {{- if .Values.httpNodePort }} nodePort: {{ .Values.httpNodePort }} {{- end }} + - name: metrics + protocol: TCP + port: {{ .Values.applicationConfig.metricsPort }} + diff --git a/deployment/scheduler/templates/scheduler-ingester-service.yaml b/deployment/scheduler/templates/scheduler-ingester-service.yaml new file mode 100644 index 00000000000..a0adeb8fae3 --- /dev/null +++ b/deployment/scheduler/templates/scheduler-ingester-service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "armada-scheduler.name" . }}-ingester + namespace: {{ .Release.Namespace }} + labels: + {{- include "armada-scheduler-ingester.labels.all" . | nindent 4 }} +spec: + selector: + {{- include "armada-scheduler-ingester.labels.identity" . | nindent 4 }} + ports: + - name: metrics + protocol: TCP + port: {{ .Values.ingester.applicationConfig.metricsPort }}