From 62a85230a95b5d1c656f67aec03410f0a0a23089 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Thu, 17 Apr 2025 15:31:13 +0200 Subject: [PATCH] Fixed conflict with service links --- manifests/deployment.yaml | 2 ++ manifests/ingress-route.yaml | 2 +- manifests/service.yaml | 5 ++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/manifests/deployment.yaml b/manifests/deployment.yaml index 6cf9917..55f4b48 100644 --- a/manifests/deployment.yaml +++ b/manifests/deployment.yaml @@ -17,6 +17,8 @@ spec: annotations: kubectl.kubernetes.io/default-container: siranga spec: + # Service links cause issues with the HTTP_PORT and SSH_PORT env variables + enableServiceLinks: false containers: - name: siranga image: git.huizinga.dev/dreaded_x/siranga@${DIGEST} diff --git a/manifests/ingress-route.yaml b/manifests/ingress-route.yaml index bfaf618..532ad32 100644 --- a/manifests/ingress-route.yaml +++ b/manifests/ingress-route.yaml @@ -10,6 +10,6 @@ spec: kind: Rule services: - name: http - port: 3000 + port: http tls: secretName: tunnel-tls diff --git a/manifests/service.yaml b/manifests/service.yaml index f8eebd6..318db1c 100644 --- a/manifests/service.yaml +++ b/manifests/service.yaml @@ -4,9 +4,8 @@ metadata: name: http spec: ports: - - name: "3000" + - name: http port: 3000 - targetPort: 3000 selector: app: siranga --- @@ -19,7 +18,7 @@ metadata: spec: type: LoadBalancer ports: - - name: "2222" + - name: ssh port: 22 targetPort: 2222 selector: