Serve the UI over plain HTTP only (POC)
CI/CD (dev on branch, prod on tag) / setup (push) Successful in 9s
CI/CD (dev on branch, prod on tag) / build-and-deploy (push) Failing after 28s

Drop the ingress TLS block and cert-manager annotation, disable the
nginx ssl-redirect, and hardcode AUTH_URL to http://<ingress.host>.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Tom Chien (IQ-AS)
2026-11-17 14:57:56 +08:00
co-authored by Claude Opus 4.6
parent 64275f8544
commit fb8b3fdcfb
2 changed files with 4 additions and 8 deletions
+2 -5
View File
@@ -10,13 +10,10 @@ metadata:
# Headroom for large request headers (chunked Auth.js session cookies). # Headroom for large request headers (chunked Auth.js session cookies).
nginx.ingress.kubernetes.io/proxy-buffer-size: "16k" nginx.ingress.kubernetes.io/proxy-buffer-size: "16k"
nginx.ingress.kubernetes.io/proxy-buffers-number: "4" nginx.ingress.kubernetes.io/proxy-buffers-number: "4"
cert-manager.io/cluster-issuer: sectigo-acme # POC runs plain HTTP — no TLS, no redirect to https.
nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec: spec:
ingressClassName: {{ .Values.ingress.className }} ingressClassName: {{ .Values.ingress.className }}
tls:
- hosts:
- {{ .Values.ingress.host | quote }}
secretName: {{ include "it-cost-dashboard.fullname" . }}-server-tls
rules: rules:
- host: {{ required "ingress.host is required" .Values.ingress.host | quote }} - host: {{ required "ingress.host is required" .Values.ingress.host | quote }}
http: http:
+2 -3
View File
@@ -20,6 +20,5 @@ stringData:
LOCAL_ADMIN_PASSWORD: {{ required "secrets.localAdminPassword is required" .Values.secrets.localAdminPassword | quote }} LOCAL_ADMIN_PASSWORD: {{ required "secrets.localAdminPassword is required" .Values.secrets.localAdminPassword | quote }}
# Derived from the ingress host so Auth.js builds correct absolute redirect # Derived from the ingress host so Auth.js builds correct absolute redirect
# URLs regardless of X-Forwarded-Proto. Local Docker Desktop ingress has no # URLs. POC UI is plain HTTP only (no TLS anywhere).
# TLS, so the scheme is http (override ingress.scheme if TLS is added later). AUTH_URL: {{ printf "http://%s" (required "ingress.host is required" .Values.ingress.host) | quote }}
AUTH_URL: {{ printf "%s://%s" (.Values.ingress.scheme | default "http") (required "ingress.host is required" .Values.ingress.host) | quote }}