From e3a8d12d4b50b47af779b6ae903e6da1840d64cf Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Mon, 23 May 2022 17:19:53 +0800 Subject: [PATCH] k8s deploy --- deploy_k8s/sdk_server/deployment.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deploy_k8s/sdk_server/deployment.yaml b/deploy_k8s/sdk_server/deployment.yaml index 0b6254bd4..2c94f177d 100644 --- a/deploy_k8s/sdk_server/deployment.yaml +++ b/deploy_k8s/sdk_server/deployment.yaml @@ -22,10 +22,18 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: localDB + mountPath: /db/sdk + command: ["/Open-IM-Server/main"] + args: ["-openIM_api_port", "10002", "-openIM_ws_port", "10001", "-sdk_ws_port", "10003", "-openIM_log_level", "6"] volumes: - name: config configMap: name: config + - name: localDB + hostPath: + path: /db/sdk + type: Directory strategy: #更新策略 type: RollingUpdate # 滚动更新 ---