feat: Ingress配置/api转发到后端
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-03-24 15:24:47 +00:00
parent 46e83862f4
commit 1e820fa0ca

View File

@@ -6,7 +6,6 @@ metadata:
namespace: drone namespace: drone
annotations: annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
# traefik.ingress.kubernetes.io/service.protocol: http
spec: spec:
tls: tls:
- hosts: - hosts:
@@ -16,6 +15,15 @@ spec:
- host: sales.violin-work.online - host: sales.violin-work.online
http: http:
paths: paths:
# /api 路径转发到后端服务
- path: /api
pathType: Prefix
backend:
service:
name: todo-backend
port:
number: 80
# 其他路径转发到前端服务
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend: