diff --git a/deploy_k8s/build_push_all_images.sh b/deploy_k8s/build_push_all_images.sh index 2ad18c382..4d083e241 100644 --- a/deploy_k8s/build_push_all_images.sh +++ b/deploy_k8s/build_push_all_images.sh @@ -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/ diff --git a/deploy_k8s/kubectl_start_all.sh b/deploy_k8s/kubectl_start_all.sh index afc56aeaa..bb1fb0a9c 100644 --- a/deploy_k8s/kubectl_start_all.sh +++ b/deploy_k8s/kubectl_start_all.sh @@ -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 diff --git a/deploy_k8s/kubectl_stop_all.sh b/deploy_k8s/kubectl_stop_all.sh index d672a53c2..b20ca24b3 100644 --- a/deploy_k8s/kubectl_stop_all.sh +++ b/deploy_k8s/kubectl_stop_all.sh @@ -15,7 +15,7 @@ service=( conversation cache msg-gateway - transfer + msg-transfer msg push sdk-server diff --git a/deploy_k8s/transfer/deployment.yaml b/deploy_k8s/msg_transfer/deployment.yaml similarity index 70% rename from deploy_k8s/transfer/deployment.yaml rename to deploy_k8s/msg_transfer/deployment.yaml index c65d4d65f..24ff62289 100644 --- a/deploy_k8s/transfer/deployment.yaml +++ b/deploy_k8s/msg_transfer/deployment.yaml @@ -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 diff --git a/deploy_k8s/transfer/transfer.Dockerfile b/deploy_k8s/msg_transfer/msg_transfer.Dockerfile similarity index 100% rename from deploy_k8s/transfer/transfer.Dockerfile rename to deploy_k8s/msg_transfer/msg_transfer.Dockerfile diff --git a/deploy_k8s/path_info.cfg b/deploy_k8s/path_info.cfg new file mode 100644 index 000000000..6839e97bf --- /dev/null +++ b/deploy_k8s/path_info.cfg @@ -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 +) \ No newline at end of file