This commit is contained in:
wangchuxiao 2023-03-01 00:38:36 +08:00
parent 0e03c5f89e
commit c6ea841064
20 changed files with 120 additions and 152 deletions

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: admin-cms - name: admin-cms
image: openim/admin_cms:v2.3.4 image: openim/admin_cms:v2.3.8
# imagePullPolicy: Always #每次启动都重新拉取镜像 # imagePullPolicy: Always #每次启动都重新拉取镜像
ports: ports:
- containerPort: 10200 - containerPort: 10200
@ -23,9 +23,6 @@ spec:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -33,11 +30,13 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
name: config sources:
- name: usualconfig - configMap:
configMap: name: openim-config
name: usualconfig - configMap:
name: openim-usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: api - name: api
image: openim/api:v2.3.4 image: openim/api:v2.3.8
# imagePullPolicy: Always # imagePullPolicy: Always
ports: ports:
- containerPort: 10002 - containerPort: 10002
@ -23,9 +23,6 @@ spec:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -33,11 +30,12 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
sources:
- configMap:
name: openim-config name: openim-config
- name: usualconfig - configMap:
configMap: name: openim-usualconfig
name: usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新
--- ---

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: auth - name: auth
image: openim/auth:v2.3.4 image: openim/auth:v2.3.8
# imagePullPolicy: Always # imagePullPolicy: Always
ports: ports:
- containerPort: 10160 - containerPort: 10160
@ -23,9 +23,6 @@ spec:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -33,10 +30,11 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
name: config sources:
- name: usualconfig - configMap:
configMap: name: openim-config
name: usualconfig - configMap:
name: openim-usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

View File

@ -2,7 +2,7 @@
source ./path_info.cfg source ./path_info.cfg
# images version # images version
version=v2.3.4 version=v2.3.8
git pull git pull
cd ../script/; ./build_all_service.sh cd ../script/; ./build_all_service.sh
cd ../deploy_k8s/ cd ../deploy_k8s/

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: cache - name: cache
image: openim/cache:v2.3.4 image: openim/cache:v2.3.8
# imagePullPolicy: Always # imagePullPolicy: Always
ports: ports:
- containerPort: 10240 - containerPort: 10240
@ -23,9 +23,6 @@ spec:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -33,10 +30,11 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
sources:
- configMap:
name: openim-config name: openim-config
- name: usualconfig - configMap:
configMap: name: openim-usualconfig
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: cms-api - name: cms-api
image: openim/cms_api:v2.3.4 image: openim/cms_api:v2.3.8
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 10006 - containerPort: 10006
@ -23,9 +23,6 @@ spec:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -33,11 +30,12 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
name: config sources:
- name: usualconfig - configMap:
configMap: name: openim-config
name: usualconfig - configMap:
name: openim-usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新
--- ---

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: conversation - name: conversation
image: openim/conversation:v2.3.4 image: openim/conversation:v2.3.8
# imagePullPolicy: Always # imagePullPolicy: Always
ports: ports:
- containerPort: 10230 - containerPort: 10230
@ -23,9 +23,6 @@ spec:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -34,11 +31,12 @@ spec:
volumes: volumes:
- name: config - name: config
configMap: projected:
name: config sources:
- name: usualconfig - configMap:
configMap: name: openim-config
name: usualconfig - configMap:
name: openim-usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: demo - name: demo
image: openim/demo:v2.3.4 image: openim/demo:v2.3.8
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 10004 - containerPort: 10004
@ -23,9 +23,6 @@ spec:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -33,11 +30,12 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
name: config sources:
- name: usualconfig - configMap:
configMap: name: openim-config
name: usualconfig - configMap:
name: openim-usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新
--- ---

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: friend - name: friend
image: openim/friend:v2.3.4 image: openim/friend:v2.3.8
# imagePullPolicy: Always # imagePullPolicy: Always
ports: ports:
- containerPort: 10120 - containerPort: 10120
@ -23,9 +23,6 @@ spec:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -33,11 +30,12 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
name: config sources:
- name: usualconfig - configMap:
configMap: name: openim-config
name: usualconfig - configMap:
name: openim-usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: group - name: group
image: openim/group:v2.3.4 image: openim/group:v2.3.8
# imagePullPolicy: Always # imagePullPolicy: Always
ports: ports:
- containerPort: 10150 - containerPort: 10150
@ -23,9 +23,6 @@ spec:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -33,10 +30,11 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
name: config sources:
- name: usualconfig - configMap:
configMap: name: openim-config
name: usualconfig - configMap:
name: openim-usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

View File

@ -9,18 +9,17 @@
6. 将rpcRegisterIP修改为空, 此地址为每个rpc注册到ETCD的地址, 置空每个rpc将会将pod地址注册到ETCD, 才能正确rpc请求(重要) 6. 将rpcRegisterIP修改为空, 此地址为每个rpc注册到ETCD的地址, 置空每个rpc将会将pod地址注册到ETCD, 才能正确rpc请求(重要)
7. 如果使用minio作为对象存储, 还需要修改minio的地址 7. 如果使用minio作为对象存储, 还需要修改minio的地址
8. 其他如果使用离线推送,需要修改push离线推送配置 8. 其他如果使用离线推送,需要修改push离线推送配置
9. 修改demo中的imAPIURL字段为openIM api的ingress或者service地址, 需要让demo的pod能正确请求到(重要)
10. 其他非必须配置修改, 如短信,推送等
### 2. 项目根目录创建im configMap到k8s openim namespace ### 2. 项目根目录创建im configMap到k8s openim namespace
1. 为open-IM项目创建单独命名空间 1. 为open-IM项目创建单独命名空间
``` ```
kubectl create namespace openim kubectl create namespace openim
``` ```
2. 在项目根目录通过config/config.yaml 2. 修改config.yaml后在项目根目录创建configmap, config/usualConfig.yaml只需要挂载不需要修改配置
``` ```
kubectl -n openim create configmap config --from-file=config/config.yaml kubectl -n openim create configmap openim-config --from-file=config/config.yaml
kubectl -n openim create configmap usualconfig --from-file=config/usualConfig.yaml kubectl -n openim create configmap openim-usualconfig --from-file=config/usualConfig.yaml
``` ```
查看configmap 查看configmap
``` ```

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: msg - name: msg
image: openim/msg:v2.3.4 image: openim/msg:v2.3.8
# imagePullPolicy: Always # imagePullPolicy: Always
ports: ports:
- containerPort: 10130 - containerPort: 10130
@ -23,9 +23,6 @@ spec:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -33,10 +30,11 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
name: config sources:
- name: usualConfig - configMap:
configMap: name: openim-config
name: usualconfig - configMap:
name: openim-usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: msg-gateway - name: msg-gateway
image: openim/msg_gateway:v2.3.4 image: openim/msg_gateway:v2.3.8
# imagePullPolicy: Always # imagePullPolicy: Always
ports: ports:
- name: rpc-port - name: rpc-port
@ -26,9 +26,6 @@ spec:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -36,11 +33,12 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
name: config sources:
- name: usualconfig - configMap:
configMap: name: openim-config
name: usualconfig - configMap:
name: openim-usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新
--- ---

View File

@ -15,15 +15,12 @@ spec:
spec: spec:
containers: containers:
- name: msg-transfer - name: msg-transfer
image: openim/msg_transfer:v2.3.4 image: openim/msg_transfer:v2.3.8
# imagePullPolicy: Always # imagePullPolicy: Always
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -31,10 +28,11 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
name: config sources:
- name: usualconfig - configMap:
configMap: name: openim-config
name: usualconfig - configMap:
name: openim-usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: office - name: office
image: openim/office:v2.3.4 image: openim/office:v2.3.8
# imagePullPolicy: Always # imagePullPolicy: Always
ports: ports:
- containerPort: 10210 - containerPort: 10210
@ -23,9 +23,6 @@ spec:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -33,10 +30,11 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
name: config sources:
- name: usualconfig - configMap:
configMap: name: openim-config
name: usualconfig - configMap:
name: openim-usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: organization - name: organization
image: openim/organization:v2.3.4 image: openim/organization:v2.3.8
# imagePullPolicy: Always # imagePullPolicy: Always
ports: ports:
- containerPort: 10220 - containerPort: 10220
@ -23,9 +23,6 @@ spec:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -33,10 +30,11 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
name: config sources:
- name: usualconfig - configMap:
configMap: name: openim-config
name: usualconfig - configMap:
name: openim-usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: push - name: push
image: openim/push:v2.3.4 image: openim/push:v2.3.8
# imagePullPolicy: Always # imagePullPolicy: Always
ports: ports:
- containerPort: 10170 - containerPort: 10170
@ -23,9 +23,6 @@ spec:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualConfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -33,10 +30,11 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
name: config sources:
- name: usualconfig - configMap:
configMap: name: openim-config
name: usualconfig - configMap:
name: openim-usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

View File

@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: sdk-server - name: sdk-server
image: openim/sdk_server:v2.3.4 image: openim/sdk_server:v2.3.8
# imagePullPolicy: Always # imagePullPolicy: Always
ports: ports:
- containerPort: 10003 - containerPort: 10003

View File

@ -15,15 +15,12 @@ spec:
spec: spec:
containers: containers:
- name: user - name: user
image: openim/user:v2.3.4 image: openim/user:v2.3.8
# imagePullPolicy: Always # imagePullPolicy: Always
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: /Open-IM-Server/config mountPath: /Open-IM-Server/config
readOnly: true readOnly: true
- name: usualconfig
mountPath: /Open-IM-Server/config
readOnly: true
env: env:
- name: CONFIG_NAME - name: CONFIG_NAME
value: "/Open-IM-Server" value: "/Open-IM-Server"
@ -31,10 +28,11 @@ spec:
value: "/Open-IM-Server" value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: projected:
name: config sources:
- name: usualconfig - configMap:
configMap: name: openim-config
name: usualconfig - configMap:
name: openim-usualconfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

View File

@ -361,4 +361,4 @@ const StatisticsTimeInterval = 60
const MaxNotificationNum = 500 const MaxNotificationNum = 500
const CurrentVersion = "v2.3.4-rc0" const CurrentVersion = "v2.3.8-rc0"