为了方便后续在不同的节点进行配置操作,请在所有节点修改主机名称及映射。
管理节点:
hostnamectl set-hostname controller hostnamectl --transient set-hostname controller echo "controller" > /etc/hostname
计算节点:
hostnamectl set-hostname compute hostnamectl --transient set-hostname compute echo "compute" > /etc/hostname
修改完成后,重新登录操作系统后生效。
vi /etc/hosts
管理节点IP地址 controller 计算节点IP地址 compute