Red Hat Training

A Red Hat training course is available for OpenShift Container Platform

3.7. 使 OpenShift Container Platform 服务恢复在线

完成更改后,重新在线 OpenShift Container Platform。

流程

  1. 在每个 OpenShift Container Platform master 上,从备份中恢复 master 和节点配置,并启用并重启所有相关服务:

    # cp ${MYBACKUPDIR}/etc/origin/node/pods/* /etc/origin/node/pods/
    # cp ${MYBACKUPDIR}/etc/origin/master/master.env /etc/origin/master/master.env
    # cp ${MYBACKUPDIR}/etc/origin/master/master-config.yaml.<timestamp> /etc/origin/master/master-config.yaml
    # cp ${MYBACKUPDIR}/etc/origin/node/node-config.yaml.<timestamp> /etc/origin/node/node-config.yaml
    # cp ${MYBACKUPDIR}/etc/origin/master/scheduler.json.<timestamp> /etc/origin/master/scheduler.json
    # master-restart api
    # master-restart controllers
  2. 在每个 OpenShift Container Platform 节点上,根据 需要更新节点配置映射,然后启用并重启 atomic-openshift-node 服务:

    # cp /etc/origin/node/node-config.yaml.<timestamp> /etc/origin/node/node-config.yaml
    # systemctl enable atomic-openshift-node
    # systemctl start atomic-openshift-node