mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
k8s
This commit is contained in:
parent
463d0a4ca7
commit
e1ab1a00ae
@ -27,12 +27,15 @@ spec:
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: msg-gateway-ingress
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
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
|
||||
@ -41,9 +44,9 @@ spec:
|
||||
- backend:
|
||||
service:
|
||||
name: msg-gateway
|
||||
port:
|
||||
number: 10001
|
||||
path: /
|
||||
port:
|
||||
number: 10001
|
||||
path: /msg-gateway/(.*)
|
||||
pathType: Prefix
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
@ -51,7 +54,7 @@ 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
|
||||
@ -73,7 +76,7 @@ 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
|
||||
@ -95,7 +98,7 @@ 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
|
||||
@ -110,4 +113,4 @@ spec:
|
||||
port:
|
||||
number: 10006
|
||||
path: /cms-api/(.*)
|
||||
pathType: Prefix
|
||||
pathType: Prefix
|
Loading…
x
Reference in New Issue
Block a user