pull/232/head
wangchuxiao 3 years ago
parent ce5f927a8d
commit ab047944b6

@ -7,6 +7,9 @@ metadata:
nginx.ingress.kubernetes.io/proxy-http-version: "1.1"
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
# 使用重写后的路径进行路由
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: "/$1"
name: sdk-server-ingress
spec:
rules:
@ -29,6 +32,9 @@ metadata:
nginx.ingress.kubernetes.io/proxy-http-version: "1.1"
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
# 使用重写后的路径进行路由
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: "/$1"
name: msg-gateway-ingress
spec:
rules:
@ -48,6 +54,9 @@ kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: "nginx"
# 使用重写后的路径进行路由
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: "/$1"
name: api-ingress
spec:
rules:
@ -67,6 +76,9 @@ kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: "nginx"
# 使用重写后的路径进行路由
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: "/$1"
name: demo-ingress
spec:
rules:
@ -86,6 +98,9 @@ kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: "nginx"
# 使用重写后的路径进行路由
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: "/$1"
name: cms-api-ingress
spec:
rules:

Loading…
Cancel
Save