|
|
@ -27,12 +27,15 @@ spec:
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
name: msg-gateway-ingress
|
|
|
|
|
|
|
|
annotations:
|
|
|
|
annotations:
|
|
|
|
kubernetes.io/ingress.class: "nginx"
|
|
|
|
kubernetes.io/ingress.class: "nginx"
|
|
|
|
nginx.ingress.kubernetes.io/proxy-http-version: "1.1"
|
|
|
|
nginx.ingress.kubernetes.io/proxy-http-version: "1.1"
|
|
|
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
|
|
|
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
|
|
|
|
nginx.ingress.kubernetes.io/proxy-send-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:
|
|
|
|
spec:
|
|
|
|
rules:
|
|
|
|
rules:
|
|
|
|
- host: k8s.open-im-test.rentsoft.cn
|
|
|
|
- host: k8s.open-im-test.rentsoft.cn
|
|
|
@ -43,7 +46,7 @@ spec:
|
|
|
|
name: msg-gateway
|
|
|
|
name: msg-gateway
|
|
|
|
port:
|
|
|
|
port:
|
|
|
|
number: 10001
|
|
|
|
number: 10001
|
|
|
|
path: /
|
|
|
|
path: /msg-gateway/(.*)
|
|
|
|
pathType: Prefix
|
|
|
|
pathType: Prefix
|
|
|
|
---
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|