mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
k8s deploy
This commit is contained in:
parent
652afd6b57
commit
d196f455cb
@ -1,29 +1,9 @@
|
||||
#/bin/sh
|
||||
service=(
|
||||
#api service file
|
||||
api
|
||||
cms_api
|
||||
#rpc service file
|
||||
user
|
||||
friend
|
||||
group
|
||||
auth
|
||||
admin_cms
|
||||
message_cms
|
||||
statistics
|
||||
office
|
||||
organization
|
||||
conversation
|
||||
cache
|
||||
msg_gateway
|
||||
transfer
|
||||
msg
|
||||
push
|
||||
sdk_server
|
||||
demo
|
||||
)
|
||||
#
|
||||
source ./path_info.cfg
|
||||
|
||||
# images version
|
||||
version=v2.0.10
|
||||
|
||||
cd ../script/; ./build_all_service.sh
|
||||
cd ../deploy_k8s/
|
||||
|
||||
|
@ -1,26 +1,4 @@
|
||||
service=(
|
||||
#api service file
|
||||
api
|
||||
cms_api
|
||||
#rpc service file
|
||||
user
|
||||
friend
|
||||
group
|
||||
auth
|
||||
admin_cms
|
||||
message_cms
|
||||
statistics
|
||||
office
|
||||
organization
|
||||
conversation
|
||||
cache
|
||||
msg_gateway
|
||||
transfer
|
||||
msg
|
||||
push
|
||||
sdk_server
|
||||
demo
|
||||
)
|
||||
source ./path_info.cfg
|
||||
|
||||
for i in ${service[*]}
|
||||
do
|
||||
|
@ -15,7 +15,7 @@ service=(
|
||||
conversation
|
||||
cache
|
||||
msg-gateway
|
||||
transfer
|
||||
msg-transfer
|
||||
msg
|
||||
push
|
||||
sdk-server
|
||||
|
@ -2,20 +2,20 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: transfer-deployment
|
||||
name: msg-transfer-deployment
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: transfer # 选择这个指定标签执行
|
||||
app: msg-transfer # 选择这个指定标签执行
|
||||
replicas: 2 # 运行pod数量
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: transfer # 标签
|
||||
app: msg-transfer # 标签
|
||||
spec:
|
||||
containers:
|
||||
- name: transfer
|
||||
image: openim/transfer:v2.0.10
|
||||
- name: msg-transfer
|
||||
image: openim/msg_transfer:v2.0.10
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /Open-IM-Server/config
|
24
deploy_k8s/path_info.cfg
Normal file
24
deploy_k8s/path_info.cfg
Normal file
@ -0,0 +1,24 @@
|
||||
#/bin/sh
|
||||
service=(
|
||||
#api service file
|
||||
api
|
||||
cms_api
|
||||
#rpc service file
|
||||
user
|
||||
friend
|
||||
group
|
||||
auth
|
||||
admin_cms
|
||||
message_cms
|
||||
statistics
|
||||
office
|
||||
organization
|
||||
conversation
|
||||
cache
|
||||
msg_gateway
|
||||
msg_transfer
|
||||
msg
|
||||
push
|
||||
sdk_server
|
||||
demo
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user