一、安装前务必禁用systemd-resolved,使用NetworkManager
禁用systemd-resolved
# 1. 停止服务
systemctl stop systemd-resolved
# 2. 禁用开机自启(关键)
systemctl disable systemd-resolved
# 3. 屏蔽服务(防止被其他程序自动拉起)
systemctl mask systemd-resolved
移除旧的 resolv.conf 符号链接
sudo rm -f /etc/resolv.conf
vim /etc/NetworkManager/NetworkManager.conf
[main]
#plugins=ifcfg-rh,ibft
systemd-resolved=false
dns=none
systemctl restart NetworkManager
二、建议关闭 节点DNS服务
在Kuboard Spray集群管理界面Kubernetes下面找的DNS功能,去掉节点DNS前面的对勾即可