mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
k8s_deploy
This commit is contained in:
parent
e67fe4ca88
commit
2eedba89d4
@ -1,6 +1,6 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: api-deployment
|
||||
spec:
|
||||
@ -22,7 +22,7 @@ spec:
|
||||
- name: cfg
|
||||
mountPath: /Open-IM-Server/config/config.yaml
|
||||
subPath: config.yaml
|
||||
updateStrategy: #更新策略
|
||||
strategy: #更新策略
|
||||
rollingUpdate:
|
||||
partition: 1
|
||||
type: RollingUpdate # 滚动更新
|
||||
|
@ -2,7 +2,9 @@
|
||||
### 1.修改配置文件
|
||||
在Open-IM-SERVER目录下修改config/config.yaml配置文件
|
||||
|
||||
### 2. 项目根目录创建im configMap
|
||||
kubectl create configmap config config/config.yaml
|
||||
### 2. 项目根目录创建im configMap到k8s
|
||||
kubectl -n {namespace} create configmap config --from-file=config/config.yaml
|
||||
namespace 为im项目的namespace
|
||||
|
||||
### 3.
|
||||
|
||||
### 3.
|
Loading…
x
Reference in New Issue
Block a user