k8s version update

pull/309/head
wangchuxiao 3 years ago
parent 42d9e7175f
commit 15df8e0a08

@ -23,13 +23,21 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

@ -23,13 +23,21 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新
--- ---

@ -23,12 +23,20 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

@ -23,12 +23,20 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

@ -23,13 +23,21 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新
--- ---

@ -23,14 +23,22 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

@ -23,13 +23,21 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新
--- ---

@ -23,13 +23,21 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

@ -23,12 +23,20 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

@ -20,6 +20,7 @@
2. 在项目根目录通过config/config.yaml 2. 在项目根目录通过config/config.yaml
``` ```
kubectl -n openim create configmap config --from-file=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 查看configmap
``` ```

@ -23,12 +23,20 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

@ -26,13 +26,21 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新
--- ---

@ -21,12 +21,20 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

@ -23,12 +23,20 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

@ -23,12 +23,20 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

@ -23,12 +23,20 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

@ -21,12 +21,20 @@ 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"
- name: USUAL_CONFIG_NAME
value: "/Open-IM-Server"
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: openim-config name: openim-config
- name: usualConfig
configMap:
name: openim-usualConfig
strategy: #更新策略 strategy: #更新策略
type: RollingUpdate # 滚动更新 type: RollingUpdate # 滚动更新

Loading…
Cancel
Save