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
965c8bd9a4
commit
716d6accb7
@ -33,8 +33,8 @@ metadata:
|
||||
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"
|
||||
# nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
# nginx.ingress.kubernetes.io/rewrite-target: "/$1"
|
||||
name: msg-gateway-ingress
|
||||
spec:
|
||||
rules:
|
||||
@ -46,7 +46,8 @@ spec:
|
||||
name: msg-gateway
|
||||
port:
|
||||
number: 10001
|
||||
path: /msg-gateway/(.*)
|
||||
# path: /msg-gateway/(.*)
|
||||
path: /
|
||||
pathType: Prefix
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
@ -17,8 +17,10 @@ spec:
|
||||
- name: msg-gateway
|
||||
image: openim/msg_gateway:v2.0.10
|
||||
ports:
|
||||
- containerPort: 10140
|
||||
- containerPort: 10001
|
||||
- name: rpc-port
|
||||
containerPort: 10140
|
||||
- name: ws-port
|
||||
containerPort: 10001
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /Open-IM-Server/config
|
||||
@ -39,7 +41,7 @@ spec:
|
||||
- name: msg-gateway-port
|
||||
protocol: TCP
|
||||
port: 10001
|
||||
targetPort: 10001
|
||||
targetPort: ws-port
|
||||
selector:
|
||||
app: demo
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user