跳到主要内容

4.4.0 升级说明

查看变更内容

单机模式

  • 数据备份

  • 微服务升级到 4.4.0,参考 微服务升级

  • 升级完成后,执行 docker exec -it $(docker ps | grep community | awk '{print $1}') bash 进入微服务应用容器内,重置多语言消息模板:

    source /entrypoint.sh && mongodbResetTemplateMessage

集群模式

  • 对数据存储相关的服务器进行备份
  • service.yaml默认:/data/mingdao/script/kubernetes/service.yaml) 中新增 templatemessage 服务,默认配置如下,根据实际需要自行调整参数值

    ---

    apiVersion: apps/v1
    kind: Deployment
    metadata:
    name: templatemessage
    namespace: default
    spec:
    replicas: 1
    selector:
    matchLabels:
    app: templatemessage
    template:
    metadata:
    labels:
    app: templatemessage
    annotations:
    md-update: "20230610150218"
    spec:
    containers:
    - name: templatemessage
    image: registry.cn-hangzhou.aliyuncs.com/mdpublic/mingdaoyun-community:4.4.0
    env:
    - name: ENV_SERVERID
    value: "single:templatemessage"
    resources:
    limits:
    cpu: "24"
    memory: 2048Mi
    requests:
    cpu: "0.01"
    memory: 64Mi
    readinessProbe:
    tcpSocket:
    port: 3259
    initialDelaySeconds: 10
    periodSeconds: 10
    livenessProbe:
    tcpSocket:
    port: 3259
    initialDelaySeconds: 180
    periodSeconds: 10

    ---

    apiVersion: v1
    kind: Service
    metadata:
    name: templatemessage
    namespace: default
    spec:
    selector:
    app: templatemessage
    ports:
    - name: grpc-templatemessage
    port: 3259
    targetPort: 3259
  • 微服务升级到 4.4.0,参考 微服务升级

  • 进入控制节点的 config Pod 中执行相关命令,具体步骤如下:

    1. 进入 config Pod :kubectl exec -it $(kubectl get pod | grep config | awk '{print $1}') bash

    2. 执行以下脚本

      source /entrypoint.sh && mongodbResetTemplateMessage