|
|
|
@ -7,13 +7,10 @@ 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:
|
|
|
|
|
- host: k8s.open-im-test.rentsoft.cn
|
|
|
|
|
- host: sdk-server.open-im-test.rentsoft.cn
|
|
|
|
|
http:
|
|
|
|
|
paths:
|
|
|
|
|
- backend:
|
|
|
|
@ -21,7 +18,7 @@ spec:
|
|
|
|
|
name: sdk-server
|
|
|
|
|
port:
|
|
|
|
|
number: 10003
|
|
|
|
|
path: /sdk-server/(.*)
|
|
|
|
|
path: /
|
|
|
|
|
pathType: Prefix
|
|
|
|
|
---
|
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
@ -32,13 +29,10 @@ 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:
|
|
|
|
|
- host: k8s.open-im-test.rentsoft.cn
|
|
|
|
|
- host: msg-gateway.open-im-test.rentsoft.cn
|
|
|
|
|
http:
|
|
|
|
|
paths:
|
|
|
|
|
- backend:
|
|
|
|
@ -54,13 +48,10 @@ 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:
|
|
|
|
|
- host: k8s.open-im-test.rentsoft.cn
|
|
|
|
|
- host: api.open-im-test.rentsoft.cn
|
|
|
|
|
http:
|
|
|
|
|
paths:
|
|
|
|
|
- backend:
|
|
|
|
@ -68,7 +59,7 @@ spec:
|
|
|
|
|
name: api
|
|
|
|
|
port:
|
|
|
|
|
number: 10002
|
|
|
|
|
path: /api/(.*)
|
|
|
|
|
path: /
|
|
|
|
|
pathType: Prefix
|
|
|
|
|
---
|
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
@ -76,13 +67,10 @@ 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:
|
|
|
|
|
- host: k8s.open-im-test.rentsoft.cn
|
|
|
|
|
- host: demo.open-im-test.rentsoft.cn
|
|
|
|
|
http:
|
|
|
|
|
paths:
|
|
|
|
|
- backend:
|
|
|
|
@ -90,7 +78,7 @@ spec:
|
|
|
|
|
name: demo
|
|
|
|
|
port:
|
|
|
|
|
number: 10004
|
|
|
|
|
path: /demo/(.*)
|
|
|
|
|
path: /
|
|
|
|
|
pathType: Prefix
|
|
|
|
|
---
|
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
@ -98,13 +86,10 @@ 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:
|
|
|
|
|
- host: k8s.open-im-test.rentsoft.cn
|
|
|
|
|
- host: cms-api.open-im-test.rentsoft.cn
|
|
|
|
|
http:
|
|
|
|
|
paths:
|
|
|
|
|
- backend:
|
|
|
|
@ -112,5 +97,5 @@ spec:
|
|
|
|
|
name: cms-api
|
|
|
|
|
port:
|
|
|
|
|
number: 10006
|
|
|
|
|
path: /cms-api/(.*)
|
|
|
|
|
path: /
|
|
|
|
|
pathType: Prefix
|