fix container port: nginx listens on 80, not 8080
All checks were successful
All checks were successful
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:
@@ -43,4 +43,4 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: switchboard${DEPLOY_SUFFIX}
|
name: switchboard${DEPLOY_SUFFIX}
|
||||||
port:
|
port:
|
||||||
number: 8080
|
number: 80
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user