diff --git a/deploy_k8s/admin_cms/deployment.yaml b/deploy_k8s/admin_cms/deployment.yaml index 437b1ffc5..31067e086 100644 --- a/deploy_k8s/admin_cms/deployment.yaml +++ b/deploy_k8s/admin_cms/deployment.yaml @@ -22,6 +22,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/api/deployment.yaml b/deploy_k8s/api/deployment.yaml index 870423066..99079e258 100644 --- a/deploy_k8s/api/deployment.yaml +++ b/deploy_k8s/api/deployment.yaml @@ -22,6 +22,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/auth/deployment.yaml b/deploy_k8s/auth/deployment.yaml index 89428d08c..a44a72513 100644 --- a/deploy_k8s/auth/deployment.yaml +++ b/deploy_k8s/auth/deployment.yaml @@ -22,6 +22,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/cache/deployment.yaml b/deploy_k8s/cache/deployment.yaml index f957a8ef5..a2c78d305 100644 --- a/deploy_k8s/cache/deployment.yaml +++ b/deploy_k8s/cache/deployment.yaml @@ -22,6 +22,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/cms_api/deployment.yaml b/deploy_k8s/cms_api/deployment.yaml index cdaa78fd9..f602a0117 100644 --- a/deploy_k8s/cms_api/deployment.yaml +++ b/deploy_k8s/cms_api/deployment.yaml @@ -22,6 +22,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/conversation/deployment.yaml b/deploy_k8s/conversation/deployment.yaml index 1e14e794a..8d173a928 100644 --- a/deploy_k8s/conversation/deployment.yaml +++ b/deploy_k8s/conversation/deployment.yaml @@ -22,6 +22,10 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" + volumes: - name: config configMap: diff --git a/deploy_k8s/demo/deployment.yaml b/deploy_k8s/demo/deployment.yaml index edaaf1d03..a4e8f79fe 100644 --- a/deploy_k8s/demo/deployment.yaml +++ b/deploy_k8s/demo/deployment.yaml @@ -22,6 +22,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/friend/deployment.yaml b/deploy_k8s/friend/deployment.yaml index 79070b768..69cba3105 100644 --- a/deploy_k8s/friend/deployment.yaml +++ b/deploy_k8s/friend/deployment.yaml @@ -22,6 +22,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/group/deployment.yaml b/deploy_k8s/group/deployment.yaml index 47acea4a8..575a394ee 100644 --- a/deploy_k8s/group/deployment.yaml +++ b/deploy_k8s/group/deployment.yaml @@ -22,6 +22,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/message_cms/deployment.yaml b/deploy_k8s/message_cms/deployment.yaml index 3792e4da4..8d9289a72 100644 --- a/deploy_k8s/message_cms/deployment.yaml +++ b/deploy_k8s/message_cms/deployment.yaml @@ -22,6 +22,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/msg/deployment.yaml b/deploy_k8s/msg/deployment.yaml index 4ab52e999..86c09dc4e 100644 --- a/deploy_k8s/msg/deployment.yaml +++ b/deploy_k8s/msg/deployment.yaml @@ -22,6 +22,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/msg_gateway/deployment.yaml b/deploy_k8s/msg_gateway/deployment.yaml index b5da8e4e1..922c0570b 100644 --- a/deploy_k8s/msg_gateway/deployment.yaml +++ b/deploy_k8s/msg_gateway/deployment.yaml @@ -25,6 +25,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/office/deployment.yaml b/deploy_k8s/office/deployment.yaml index 5fec3450a..e826b7ca8 100644 --- a/deploy_k8s/office/deployment.yaml +++ b/deploy_k8s/office/deployment.yaml @@ -22,6 +22,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/organization/deployment.yaml b/deploy_k8s/organization/deployment.yaml index 7d5318c64..e45e86d36 100644 --- a/deploy_k8s/organization/deployment.yaml +++ b/deploy_k8s/organization/deployment.yaml @@ -22,6 +22,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/push/deployment.yaml b/deploy_k8s/push/deployment.yaml index 61c9929fc..a7d29ed53 100644 --- a/deploy_k8s/push/deployment.yaml +++ b/deploy_k8s/push/deployment.yaml @@ -22,6 +22,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/sdk_server/deployment.yaml b/deploy_k8s/sdk_server/deployment.yaml index 0030a3d30..2b3d733a4 100644 --- a/deploy_k8s/sdk_server/deployment.yaml +++ b/deploy_k8s/sdk_server/deployment.yaml @@ -24,6 +24,9 @@ spec: readOnly: true - name: local-db mountPath: /db/sdk + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" command: ["/Open-IM-Server/main"] args: ["-openIM_api_port", "10002", "-openIM_ws_port", "10001", "-sdk_ws_port", "10003", "-openIM_log_level", "6"] volumes: diff --git a/deploy_k8s/statistics/deployment.yaml b/deploy_k8s/statistics/deployment.yaml index a517caf7d..88b3dd851 100644 --- a/deploy_k8s/statistics/deployment.yaml +++ b/deploy_k8s/statistics/deployment.yaml @@ -22,6 +22,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/transfer/deployment.yaml b/deploy_k8s/transfer/deployment.yaml index c65d4d65f..4fbe411a3 100644 --- a/deploy_k8s/transfer/deployment.yaml +++ b/deploy_k8s/transfer/deployment.yaml @@ -20,6 +20,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: diff --git a/deploy_k8s/user/deployment.yaml b/deploy_k8s/user/deployment.yaml index 8ad91a526..c601d88e1 100644 --- a/deploy_k8s/user/deployment.yaml +++ b/deploy_k8s/user/deployment.yaml @@ -20,6 +20,9 @@ spec: - name: config mountPath: /Open-IM-Server/config readOnly: true + env: + - name: CONFIG_NAME + value: "/Open-IM-Server" volumes: - name: config configMap: