From e16a64439b9d7947ebf139539a6ef43b3b4d66c1 Mon Sep 17 00:00:00 2001 From: ximenchuifeng Date: Fri, 9 Oct 2026 10:23:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(gateway):=20ingress=20domain=20=E7=95=99?= =?UTF-8?q?=E7=A9=BA=E6=B8=B2=E6=9F=93=E6=97=A0=20host=20=E8=A7=84?= =?UTF-8?q?=E5=88=99=E2=80=94=E2=80=94=E7=8E=B0=E5=9C=BA=20PC=20=E5=8F=AF?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E7=94=A8=E8=8A=82=E7=82=B9=20IP=20=E8=AE=BF?= =?UTF-8?q?=E9=97=AE(=E5=A6=82=20http://192.168.137.117/),=E4=B8=8D?= =?UTF-8?q?=E7=95=99=E7=A9=BA=E6=97=B6=E8=A1=8C=E4=B8=BA=E4=B8=8D=E5=8F=98?= =?UTF-8?q?;values=20=E6=B3=A8=E9=87=8A=E8=AF=B4=E6=98=8E=E7=BC=BA?= =?UTF-8?q?=E7=9C=81=E5=9F=9F=E5=90=8D=E4=B8=8E=E7=95=99=E7=A9=BA=E8=AF=AD?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- release-charts/mixingx-gateway/templates/ingress.yaml | 4 +++- release-charts/mixingx-gateway/values.yaml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/release-charts/mixingx-gateway/templates/ingress.yaml b/release-charts/mixingx-gateway/templates/ingress.yaml index 3a13072..6c4a0a5 100644 --- a/release-charts/mixingx-gateway/templates/ingress.yaml +++ b/release-charts/mixingx-gateway/templates/ingress.yaml @@ -9,7 +9,9 @@ metadata: spec: ingressClassName: traefik rules: - - host: {{ .Values.ingress.domain }} + - {{- if .Values.ingress.domain }} + host: {{ .Values.ingress.domain }} +{{- end }} http: paths: - path: / diff --git a/release-charts/mixingx-gateway/values.yaml b/release-charts/mixingx-gateway/values.yaml index 1bc3475..a61c611 100644 --- a/release-charts/mixingx-gateway/values.yaml +++ b/release-charts/mixingx-gateway/values.yaml @@ -34,6 +34,7 @@ gateway: ingress: enabled: true + # domain 留空 = 渲染不带 host 的规则,现场 PC 可直接用节点 IP 访问(如 http://192.168.137.117/) domain: app.mixingx.local gatewayService: gateway-service gatewayPort: 8080