feat: Ingress配置/api转发到后端
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user