Files
it_cost_dashboard/helm/templates/server-ingress.yaml
T
Tom Chien (IQ-AS)andClaude Opus 4.6 fb8b3fdcfb
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
Serve the UI over plain HTTP only (POC)
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>
2026-11-17 14:57:56 +08:00

29 lines
1.0 KiB
YAML

{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "it-cost-dashboard.fullname" . }}-server
labels:
{{- include "it-cost-dashboard.componentLabels" (dict "ctx" . "component" "server") | nindent 4 }}
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "10m"
# Headroom for large request headers (chunked Auth.js session cookies).
nginx.ingress.kubernetes.io/proxy-buffer-size: "16k"
nginx.ingress.kubernetes.io/proxy-buffers-number: "4"
# POC runs plain HTTP — no TLS, no redirect to https.
nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
ingressClassName: {{ .Values.ingress.className }}
rules:
- host: {{ required "ingress.host is required" .Values.ingress.host | quote }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ include "it-cost-dashboard.fullname" . }}-server
port:
name: http
{{- end }}