From 1e820fa0ca0bfd47488fe5df7ca235918c11d3f6 Mon Sep 17 00:00:00 2001 From: Agent Date: Tue, 24 Mar 2026 15:24:47 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20Ingress=E9=85=8D=E7=BD=AE/api=E8=BD=AC?= =?UTF-8?q?=E5=8F=91=E5=88=B0=E5=90=8E=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/ingress.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/k8s/ingress.yaml b/k8s/ingress.yaml index 89fec5e..20bcc5e 100644 --- a/k8s/ingress.yaml +++ b/k8s/ingress.yaml @@ -6,7 +6,6 @@ metadata: namespace: drone annotations: traefik.ingress.kubernetes.io/router.entrypoints: websecure - # traefik.ingress.kubernetes.io/service.protocol: http spec: tls: - hosts: @@ -16,6 +15,15 @@ spec: - host: sales.violin-work.online http: paths: + # /api 路径转发到后端服务 + - path: /api + pathType: Prefix + backend: + service: + name: todo-backend + port: + number: 80 + # 其他路径转发到前端服务 - path: / pathType: Prefix backend: