From d32fa5f92d0574fc52180428d990cfc3e3c52550 Mon Sep 17 00:00:00 2001 From: Jeffrey Smith Date: Thu, 26 Mar 2026 13:13:57 +0000 Subject: [PATCH] fix container port: nginx listens on 80, not 8080 The unified image uses nginx on port 80 as the entrypoint, which reverse-proxies to the Go backend on 127.0.0.1:8080 internally. K8s was exposing 8080 directly, bypassing nginx entirely. Co-Authored-By: Claude Opus 4.6 (1M context) --- k8s/ingress.yaml | 2 +- k8s/switchboard.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/k8s/ingress.yaml b/k8s/ingress.yaml index 4bb5c8a..1a353ba 100644 --- a/k8s/ingress.yaml +++ b/k8s/ingress.yaml @@ -43,4 +43,4 @@ spec: service: name: switchboard${DEPLOY_SUFFIX} port: - number: 8080 + number: 80 diff --git a/k8s/switchboard.yaml b/k8s/switchboard.yaml index d3804e9..9a4fd5a 100644 --- a/k8s/switchboard.yaml +++ b/k8s/switchboard.yaml @@ -52,7 +52,7 @@ spec: image: ${IMAGE}:${IMAGE_TAG} imagePullPolicy: Always ports: - - containerPort: 8080 + - containerPort: 80 name: http env: - name: ENVIRONMENT @@ -168,7 +168,7 @@ spec: readinessProbe: httpGet: path: ${BASE_PATH}/health - port: 8080 + port: 80 initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 3 @@ -176,7 +176,7 @@ spec: livenessProbe: httpGet: path: ${BASE_PATH}/health - port: 8080 + port: 80 initialDelaySeconds: 10 periodSeconds: 30 timeoutSeconds: 5 @@ -201,6 +201,6 @@ spec: env: ${ENVIRONMENT} ports: - protocol: TCP - port: 8080 - targetPort: 8080 + port: 80 + targetPort: 80 name: http