From 2d27ba430963308f4410f7b80dad1fb193be5b73 Mon Sep 17 00:00:00 2001
From: Leah Tacke genannt Unterberg <leah.tgu@pads.rwth-aachen.de>
Date: Mon, 4 Nov 2024 10:53:49 +0100
Subject: [PATCH] finally got the deployment almost working

---
 backend-deployment.yaml | 1 +
 services.yaml           | 4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/backend-deployment.yaml b/backend-deployment.yaml
index 080b123..085902a 100644
--- a/backend-deployment.yaml
+++ b/backend-deployment.yaml
@@ -22,6 +22,7 @@ spec:
           imagePullPolicy: Always
           ports:
             - containerPort: 8080
+              protocol: TCP
           envFrom:
             - configMapRef:
                 name: maed-exporter-env
diff --git a/services.yaml b/services.yaml
index 62e4c25..4330d49 100644
--- a/services.yaml
+++ b/services.yaml
@@ -28,6 +28,4 @@ spec:
     - protocol: TCP
       port: 8090
       targetPort: 8090  # Port on the frontend container
-  type: NodePort
-  externalTrafficPolicy: Cluster
-  sessionAffinity: ClientIP
\ No newline at end of file
+  type: NodePort
\ No newline at end of file
-- 
GitLab