pull/455/head
wangchuxiao 3 years ago committed by Xinwei Xiong(cubxxw-openim)
parent 29ca352766
commit 2843f8b03d

@ -9,7 +9,7 @@ metadata:
name: sdk-server-ingress name: sdk-server-ingress
spec: spec:
rules: rules:
- host: k8s.open-im-test.rentsoft.cn - host: sdk-server.openim.xxx.com
http: http:
paths: paths:
- backend: - backend:
@ -17,7 +17,7 @@ spec:
name: sdk-server name: sdk-server
port: port:
number: 10003 number: 10003
path: /sdk-server path: /
pathType: Prefix pathType: Prefix
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
@ -30,7 +30,7 @@ metadata:
name: msg-gateway-ingress name: msg-gateway-ingress
spec: spec:
rules: rules:
- host: k8s.open-im-test.rentsoft.cn - host: msg-gateway.openim.xxx.com
http: http:
paths: paths:
- backend: - backend:
@ -38,7 +38,7 @@ spec:
name: msg-gateway name: msg-gateway
port: port:
number: 10001 number: 10001
path: /msg-gateway path: /
pathType: Prefix pathType: Prefix
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
@ -47,7 +47,7 @@ metadata:
name: api-ingress name: api-ingress
spec: spec:
rules: rules:
- host: k8s.open-im-test.rentsoft.cn - host: api.openim.xxx.com
http: http:
paths: paths:
- backend: - backend:
@ -55,7 +55,7 @@ spec:
name: api name: api
port: port:
number: 10002 number: 10002
path: /api path: /
pathType: Prefix pathType: Prefix
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
@ -64,7 +64,7 @@ metadata:
name: demo-ingress name: demo-ingress
spec: spec:
rules: rules:
- host: k8s.open-im-test.rentsoft.cn - host: demo.openim.xxx.com
http: http:
paths: paths:
- backend: - backend:
@ -72,7 +72,7 @@ spec:
name: demo name: demo
port: port:
number: 10004 number: 10004
path: /demo path: /
pathType: Prefix pathType: Prefix
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
@ -81,7 +81,7 @@ metadata:
name: cms-api-ingress name: cms-api-ingress
spec: spec:
rules: rules:
- host: k8s.open-im-test.rentsoft.cn - host: cms-api.openim.xxx.com
http: http:
paths: paths:
- backend: - backend:
@ -89,5 +89,5 @@ spec:
name: cms-api name: cms-api
port: port:
number: 10006 number: 10006
path: /cms-api path: /
pathType: Prefix pathType: Prefix

@ -21,8 +21,10 @@ jssdk 需要在sdk_server/deployment.yaml修改启动端口等
### 4. 修改ingress.yaml配置文件 ### 4. 修改ingress.yaml配置文件
### 5. 执行./kubectl_start.sh脚本 ### 5. 执行./kubectl_start.sh脚本
需要安装ingress controller
chmod +x ./kubectl_start.sh ./kubectl_stop.sh chmod +x ./kubectl_start.sh ./kubectl_stop.sh
./kubectl_start.sh ./kubectl_start.sh
kubectl -n openim apply -f ingress.yaml
kubectl 启动所有deploymentservicesingress kubectl 启动所有deploymentservicesingress
### 6. 查看k8s deployment service ingress状态 ### 6. 查看k8s deployment service ingress状态

@ -324,11 +324,11 @@ func (s *groupServer) GetGroupAllMember(ctx context.Context, req *pbGroup.GetGro
} }
for _, v := range memberList { for _, v := range memberList {
log.Debug(req.OperationID, v) //log.Debug(req.OperationID, v)
var node open_im_sdk.GroupMemberFullInfo var node open_im_sdk.GroupMemberFullInfo
cp.GroupMemberDBCopyOpenIM(&node, &v) cp.GroupMemberDBCopyOpenIM(&node, &v)
log.Debug(req.OperationID, "db value:", v.MuteEndTime, "seconds: ", v.MuteEndTime.Unix()) //log.Debug(req.OperationID, "db value:", v.MuteEndTime, "seconds: ", v.MuteEndTime.Unix())
log.Debug(req.OperationID, "cp value: ", node) //log.Debug(req.OperationID, "cp value: ", node)
resp.MemberList = append(resp.MemberList, &node) resp.MemberList = append(resp.MemberList, &node)
} }
log.NewInfo(req.OperationID, "GetGroupAllMember rpc return ", resp.String()) log.NewInfo(req.OperationID, "GetGroupAllMember rpc return ", resp.String())

Loading…
Cancel
Save