From 8faef8f8d8ebf06f50d9bec1d659ddb36bef7970 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 8 Oct 2025 19:37:49 +0200 Subject: [PATCH] Cleanup and added Prometheus metric port --- backend-api-internal/service.yaml | 6 ++++++ backend-api/service.yaml | 6 ++++++ mysql/kustomization.yaml | 7 ------- 3 files changed, 12 insertions(+), 7 deletions(-) delete mode 100644 mysql/kustomization.yaml diff --git a/backend-api-internal/service.yaml b/backend-api-internal/service.yaml index 0bf6df3..a7da8ac 100644 --- a/backend-api-internal/service.yaml +++ b/backend-api-internal/service.yaml @@ -11,4 +11,10 @@ spec: port: 8101 targetPort: 8101 nodePort: 30101 + name: fastapi + - protocol: TCP + port: 9000 + targetPort: 9000 + nodePort: 30900 + name: prometheus-metrics type: NodePort diff --git a/backend-api/service.yaml b/backend-api/service.yaml index 5a70eae..39750cf 100644 --- a/backend-api/service.yaml +++ b/backend-api/service.yaml @@ -11,4 +11,10 @@ spec: port: 8100 targetPort: 8100 nodePort: 30100 + name: fastapi + - protocol: TCP + port: 9000 + targetPort: 9000 + nodePort: 30900 + name: prometheus-metrics type: NodePort diff --git a/mysql/kustomization.yaml b/mysql/kustomization.yaml deleted file mode 100644 index a09caee..0000000 --- a/mysql/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -configMapGenerator: - - name: mysql-initdb - files: - - initdb/app_database.sql