mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
ingress
This commit is contained in:
parent
29ca352766
commit
2843f8b03d
@ -9,7 +9,7 @@ metadata:
|
||||
name: sdk-server-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: k8s.open-im-test.rentsoft.cn
|
||||
- host: sdk-server.openim.xxx.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
@ -17,7 +17,7 @@ spec:
|
||||
name: sdk-server
|
||||
port:
|
||||
number: 10003
|
||||
path: /sdk-server
|
||||
path: /
|
||||
pathType: Prefix
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
@ -30,7 +30,7 @@ metadata:
|
||||
name: msg-gateway-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: k8s.open-im-test.rentsoft.cn
|
||||
- host: msg-gateway.openim.xxx.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
@ -38,7 +38,7 @@ spec:
|
||||
name: msg-gateway
|
||||
port:
|
||||
number: 10001
|
||||
path: /msg-gateway
|
||||
path: /
|
||||
pathType: Prefix
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
@ -47,7 +47,7 @@ metadata:
|
||||
name: api-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: k8s.open-im-test.rentsoft.cn
|
||||
- host: api.openim.xxx.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
@ -55,7 +55,7 @@ spec:
|
||||
name: api
|
||||
port:
|
||||
number: 10002
|
||||
path: /api
|
||||
path: /
|
||||
pathType: Prefix
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
@ -64,7 +64,7 @@ metadata:
|
||||
name: demo-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: k8s.open-im-test.rentsoft.cn
|
||||
- host: demo.openim.xxx.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
@ -72,7 +72,7 @@ spec:
|
||||
name: demo
|
||||
port:
|
||||
number: 10004
|
||||
path: /demo
|
||||
path: /
|
||||
pathType: Prefix
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
@ -81,7 +81,7 @@ metadata:
|
||||
name: cms-api-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: k8s.open-im-test.rentsoft.cn
|
||||
- host: cms-api.openim.xxx.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
@ -89,5 +89,5 @@ spec:
|
||||
name: cms-api
|
||||
port:
|
||||
number: 10006
|
||||
path: /cms-api
|
||||
path: /
|
||||
pathType: Prefix
|
||||
|
@ -21,8 +21,10 @@ jssdk 需要在sdk_server/deployment.yaml修改启动端口等
|
||||
### 4. 修改ingress.yaml配置文件
|
||||
|
||||
### 5. 执行./kubectl_start.sh脚本
|
||||
需要安装ingress controller
|
||||
chmod +x ./kubectl_start.sh ./kubectl_stop.sh
|
||||
./kubectl_start.sh
|
||||
kubectl -n openim apply -f ingress.yaml
|
||||
kubectl 启动所有deployment,services,ingress
|
||||
|
||||
### 6. 查看k8s deployment service ingress状态
|
||||
|
@ -324,11 +324,11 @@ func (s *groupServer) GetGroupAllMember(ctx context.Context, req *pbGroup.GetGro
|
||||
}
|
||||
|
||||
for _, v := range memberList {
|
||||
log.Debug(req.OperationID, v)
|
||||
//log.Debug(req.OperationID, v)
|
||||
var node open_im_sdk.GroupMemberFullInfo
|
||||
cp.GroupMemberDBCopyOpenIM(&node, &v)
|
||||
log.Debug(req.OperationID, "db value:", v.MuteEndTime, "seconds: ", v.MuteEndTime.Unix())
|
||||
log.Debug(req.OperationID, "cp value: ", node)
|
||||
//log.Debug(req.OperationID, "db value:", v.MuteEndTime, "seconds: ", v.MuteEndTime.Unix())
|
||||
//log.Debug(req.OperationID, "cp value: ", node)
|
||||
resp.MemberList = append(resp.MemberList, &node)
|
||||
}
|
||||
log.NewInfo(req.OperationID, "GetGroupAllMember rpc return ", resp.String())
|
||||
|
Loading…
x
Reference in New Issue
Block a user