pull/455/head
wangchuxiao 3 years ago committed by Xinwei Xiong(cubxxw-openim)
parent e67fe4ca88
commit 2eedba89d4

@ -1,6 +1,6 @@
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: StatefulSet
metadata: metadata:
name: api-deployment name: api-deployment
spec: spec:
@ -22,7 +22,7 @@ spec:
- name: cfg - name: cfg
mountPath: /Open-IM-Server/config/config.yaml mountPath: /Open-IM-Server/config/config.yaml
subPath: config.yaml subPath: config.yaml
updateStrategy: #更新策略 strategy: #更新策略
rollingUpdate: rollingUpdate:
partition: 1 partition: 1
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

@ -2,7 +2,9 @@
### 1.修改配置文件 ### 1.修改配置文件
在Open-IM-SERVER目录下修改config/config.yaml配置文件 在Open-IM-SERVER目录下修改config/config.yaml配置文件
### 2. 项目根目录创建im configMap ### 2. 项目根目录创建im configMap到k8s
kubectl create configmap config config/config.yaml kubectl -n {namespace} create configmap config --from-file=config/config.yaml
namespace 为im项目的namespace
### 3. ### 3.

Loading…
Cancel
Save