# 在 192.168.0.113 执行
$ hostnamectl set-hostname k8s-master
# 在 192.168.0.114 执行
$ hostnamectl set-hostname k8s-node1
# 在 192.168.0.115 执行
$ hostnamectl set-hostname k8s-node2
时间同步
$ yum install chrony -y
$ systemctl start chronyd
$ systemctl enable chronyd
$ chronyc sources
3
)确保每个节点上
MAC
地址和
product_uuid
的唯一性
你可以使用命令
!$
来获取网络接口的
地址
可以使用
"010"$0-00!"#
命令对
!"#
校验
一般来讲,硬件设备会拥有唯一的地址,但是有些虚拟机的地址可能会重复。
使用这些值来唯一确定集群中的节点。 如果这些值在每个节点上不唯一,
可能会导致安装 失败。
4
)允许
iptables
检查桥接流量(可选)
文档被以下合辑收录
评论