fix container port: nginx listens on 80, not 8080
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-frontend (push) Successful in 5s
CI/CD / test-go-pg (push) Successful in 2m19s
CI/CD / test-sqlite (push) Successful in 2m32s
CI/CD / build-and-deploy (push) Successful in 30s

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) <noreply@anthropic.com>
This commit is contained in:
2026-03-26 13:13:57 +00:00
parent 2dabbca5ed
commit d32fa5f92d
2 changed files with 6 additions and 6 deletions

View File

@@ -43,4 +43,4 @@ spec:
service: service:
name: switchboard${DEPLOY_SUFFIX} name: switchboard${DEPLOY_SUFFIX}
port: port:
number: 8080 number: 80

View File

@@ -52,7 +52,7 @@ spec:
image: ${IMAGE}:${IMAGE_TAG} image: ${IMAGE}:${IMAGE_TAG}
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 8080 - containerPort: 80
name: http name: http
env: env:
- name: ENVIRONMENT - name: ENVIRONMENT
@@ -168,7 +168,7 @@ spec:
readinessProbe: readinessProbe:
httpGet: httpGet:
path: ${BASE_PATH}/health path: ${BASE_PATH}/health
port: 8080 port: 80
initialDelaySeconds: 5 initialDelaySeconds: 5
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 3 timeoutSeconds: 3
@@ -176,7 +176,7 @@ spec:
livenessProbe: livenessProbe:
httpGet: httpGet:
path: ${BASE_PATH}/health path: ${BASE_PATH}/health
port: 8080 port: 80
initialDelaySeconds: 10 initialDelaySeconds: 10
periodSeconds: 30 periodSeconds: 30
timeoutSeconds: 5 timeoutSeconds: 5
@@ -201,6 +201,6 @@ spec:
env: ${ENVIRONMENT} env: ${ENVIRONMENT}
ports: ports:
- protocol: TCP - protocol: TCP
port: 8080 port: 80
targetPort: 8080 targetPort: 80
name: http name: http