Rancher 节点:超出了名称服务器限制,省略了一些名称服务器

问题描述 投票:0回答:1

我遇到了:

Nameserver limits were exceeded, some nameservers have been omitted
。我在两个节点上的 Pod 上遇到了这种情况。其他三个节点(它们的 Pod)没有这个问题。

pod 配置为

ClusterFirst
dnsPolicy
,因此他们获得了他们调度的节点的名称服务器。

/run/systemd/resolve/resolv.conf containted:
nameserver 2a01:xxx:xxxx::add:1
nameserver 2a01:xxx:xxxx::add:2
nameserver 185.XX.XX.X
Too many DNS servers configured, the following entries may be ignored.
nameserver 185.XX.XX.X

我能够通过

/etc/netplan/50-cloud-init.yaml
删除两个 IPv6 地址,当然默认限制是 3 https://www.reddit.com/r/kubernetes/comments/7ruq0f/kubelet_nameserver_limits_were_exceeded/

在 Kubernetes 中解决这个问题的最佳方法是什么?

这对我来说不是最好的方法:https://stackoverflow.com/a/70969023/1766764

我的其他节点不需要这个,并且比较节点 yaml 文件没有显示这个方向上的任何差异(没有显式配置名称服务器)。

Ubuntu 20.4 and Rancher v1.19.6-rancher1-1 is used
rancher rancher-rke
1个回答
0
投票

我在使用 IPv4 和 IPv6 的 DHCP 的 DualStack 网络中遇到了类似的情况,并且两者都各自通告了两个名称服务器,导致主机上有 4 个名称服务器。 k8s DNS 正在从主机中提取名称服务器。

从路由器配置中为每个 IPv4 和 IPv6 DHCP 服务器删除一个 DNS 名称服务器后,消息“超出了名称服务器限制,某些名称服务器已被忽略”消失了。

© www.soinside.com 2019 - 2024. All rights reserved.