@ -23,13 +23,21 @@ spec:
- name: config
mountPath: /Open-IM-Server/config
readOnly: true
- name: usualConfig
env:
- name: CONFIG_NAME
value: "/Open-IM-Server"
- name: USUAL_CONFIG_NAME
volumes:
configMap:
name: openim-config
name: openim-usualConfig
strategy: #更新策略
type: RollingUpdate # 滚动更新
---
@ -23,12 +23,20 @@ spec:
@ -23,14 +23,22 @@ spec:
@ -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
@ -26,13 +26,21 @@ spec:
@ -21,12 +21,20 @@ spec: