我正在使用dnsutils调试DNS
我已经创建了一个dnsutils pod,可以看到它正在运行
$ kubectl get pods dnsutils -n infrastructure
NAME READY STATUS RESTARTS AGE
dnsutils 1/1 Running 43 1d当我运行nslookup时,我得到
kubectl -n infrastructure exec -i -t dnsutils -- nslookup kubernetes.default
;; connection timed out; no servers could be reached如果我提取/etc/resolv.conf,我可以看到
kubectl -n infrastructure exec -ti dnsutils -- cat /etc/resolv.conf
nameserver 100.64.0.10
search infrastructure.svc.cluster.local svc.cluster.local cluster.local eu-west-1.compute.internal
options ndots:5有什么可以帮助我进一步调试的吗?
发布于 2020-09-25 23:59:30
我发现我在Running状态下有一些calico-node pod,但在1/2状态下,我之前没有注意到。我必须杀死这些pod和calico-kube-controllers几次,才能成功地重新创建它们。然后我杀死了kube-dns pods,现在一切都正常了。
https://stackoverflow.com/questions/64061826
复制相似问题