From 15df8e0a086ca71a07f2cee3b8a5a97b1a4e5a49 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 11 Nov 2022 12:17:04 +0800 Subject: [PATCH] k8s version update --- deploy_k8s/admin_cms/deployment.yaml | 10 +++++++++- deploy_k8s/api/deployment.yaml | 10 +++++++++- deploy_k8s/auth/deployment.yaml | 10 +++++++++- deploy_k8s/cache/deployment.yaml | 10 +++++++++- deploy_k8s/cms_api/deployment.yaml | 10 +++++++++- deploy_k8s/conversation/deployment.yaml | 12 ++++++++++-- deploy_k8s/demo/deployment.yaml | 10 +++++++++- deploy_k8s/friend/deployment.yaml | 10 +++++++++- deploy_k8s/group/deployment.yaml | 10 +++++++++- deploy_k8s/k8s_openim_deploy.md | 1 + deploy_k8s/msg/deployment.yaml | 10 +++++++++- deploy_k8s/msg_gateway/deployment.yaml | 10 +++++++++- deploy_k8s/msg_transfer/deployment.yaml | 10 +++++++++- deploy_k8s/office/deployment.yaml | 10 +++++++++- deploy_k8s/organization/deployment.yaml | 10 +++++++++- deploy_k8s/push/deployment.yaml | 10 +++++++++- deploy_k8s/user/deployment.yaml | 10 +++++++++- 17 files changed, 146 insertions(+), 17 deletions(-) diff --git a/deploy_k8s/admin_cms/deployment.yaml b/deploy_k8s/admin_cms/deployment.yaml index 07a167cf8..ea02fd80c 100644 --- a/deploy_k8s/admin_cms/deployment.yaml +++ b/deploy_k8s/admin_cms/deployment.yaml @@ -23,13 +23,21 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 diff --git a/deploy_k8s/api/deployment.yaml b/deploy_k8s/api/deployment.yaml index 42ef4e158..4359a9062 100644 --- a/deploy_k8s/api/deployment.yaml +++ b/deploy_k8s/api/deployment.yaml @@ -23,13 +23,21 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 --- diff --git a/deploy_k8s/auth/deployment.yaml b/deploy_k8s/auth/deployment.yaml index c95cd7480..3df74836a 100644 --- a/deploy_k8s/auth/deployment.yaml +++ b/deploy_k8s/auth/deployment.yaml @@ -23,12 +23,20 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 \ No newline at end of file diff --git a/deploy_k8s/cache/deployment.yaml b/deploy_k8s/cache/deployment.yaml index 51a6ec51c..9dd2129da 100644 --- a/deploy_k8s/cache/deployment.yaml +++ b/deploy_k8s/cache/deployment.yaml @@ -23,12 +23,20 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 \ No newline at end of file diff --git a/deploy_k8s/cms_api/deployment.yaml b/deploy_k8s/cms_api/deployment.yaml index edd185103..b55c0b4f7 100644 --- a/deploy_k8s/cms_api/deployment.yaml +++ b/deploy_k8s/cms_api/deployment.yaml @@ -23,13 +23,21 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 --- diff --git a/deploy_k8s/conversation/deployment.yaml b/deploy_k8s/conversation/deployment.yaml index 7d60d1e4f..b64ced25c 100644 --- a/deploy_k8s/conversation/deployment.yaml +++ b/deploy_k8s/conversation/deployment.yaml @@ -23,14 +23,22 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - - name: CONFIG_NAME - value: "/Open-IM-Server" + - name: CONFIG_NAME + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 diff --git a/deploy_k8s/demo/deployment.yaml b/deploy_k8s/demo/deployment.yaml index 65f4000c4..205bb0d51 100644 --- a/deploy_k8s/demo/deployment.yaml +++ b/deploy_k8s/demo/deployment.yaml @@ -23,13 +23,21 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 --- diff --git a/deploy_k8s/friend/deployment.yaml b/deploy_k8s/friend/deployment.yaml index 1c5766c67..9d8db0e87 100644 --- a/deploy_k8s/friend/deployment.yaml +++ b/deploy_k8s/friend/deployment.yaml @@ -23,13 +23,21 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 diff --git a/deploy_k8s/group/deployment.yaml b/deploy_k8s/group/deployment.yaml index 6d0611b41..dc9ccebee 100644 --- a/deploy_k8s/group/deployment.yaml +++ b/deploy_k8s/group/deployment.yaml @@ -23,12 +23,20 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 \ No newline at end of file diff --git a/deploy_k8s/k8s_openim_deploy.md b/deploy_k8s/k8s_openim_deploy.md index aef9aecda..114a43c0b 100644 --- a/deploy_k8s/k8s_openim_deploy.md +++ b/deploy_k8s/k8s_openim_deploy.md @@ -20,6 +20,7 @@ 2. 在项目根目录通过config/config.yaml ``` kubectl -n openim create configmap config --from-file=config/config.yaml + kubectl -n openim create configmap usualConfig --from-file=config/usualConfig.yaml ``` 查看configmap ``` diff --git a/deploy_k8s/msg/deployment.yaml b/deploy_k8s/msg/deployment.yaml index a0648b713..e8b3d6775 100644 --- a/deploy_k8s/msg/deployment.yaml +++ b/deploy_k8s/msg/deployment.yaml @@ -23,12 +23,20 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 \ No newline at end of file diff --git a/deploy_k8s/msg_gateway/deployment.yaml b/deploy_k8s/msg_gateway/deployment.yaml index 6b0e3bc79..e73070946 100644 --- a/deploy_k8s/msg_gateway/deployment.yaml +++ b/deploy_k8s/msg_gateway/deployment.yaml @@ -26,13 +26,21 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 --- diff --git a/deploy_k8s/msg_transfer/deployment.yaml b/deploy_k8s/msg_transfer/deployment.yaml index 98771c91b..a0d63a0d5 100644 --- a/deploy_k8s/msg_transfer/deployment.yaml +++ b/deploy_k8s/msg_transfer/deployment.yaml @@ -21,12 +21,20 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 diff --git a/deploy_k8s/office/deployment.yaml b/deploy_k8s/office/deployment.yaml index f78a55420..e95b46a76 100644 --- a/deploy_k8s/office/deployment.yaml +++ b/deploy_k8s/office/deployment.yaml @@ -23,12 +23,20 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 \ No newline at end of file diff --git a/deploy_k8s/organization/deployment.yaml b/deploy_k8s/organization/deployment.yaml index 39db90257..7a5174cd0 100644 --- a/deploy_k8s/organization/deployment.yaml +++ b/deploy_k8s/organization/deployment.yaml @@ -23,12 +23,20 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 \ No newline at end of file diff --git a/deploy_k8s/push/deployment.yaml b/deploy_k8s/push/deployment.yaml index 22e7d5d5b..a3c03b974 100644 --- a/deploy_k8s/push/deployment.yaml +++ b/deploy_k8s/push/deployment.yaml @@ -23,12 +23,20 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新 \ No newline at end of file diff --git a/deploy_k8s/user/deployment.yaml b/deploy_k8s/user/deployment.yaml index f712b9a57..6212524f1 100644 --- a/deploy_k8s/user/deployment.yaml +++ b/deploy_k8s/user/deployment.yaml @@ -21,12 +21,20 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + - name: usualConfig + mountPath: /Open-IM-Server/config + readOnly: true env: - name: CONFIG_NAME - value: "/Open-IM-Server" + value: "/Open-IM-Server" + - name: USUAL_CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: name: openim-config + - name: usualConfig + configMap: + name: openim-usualConfig strategy: #更新策略 type: RollingUpdate # 滚动更新