我通过官方的helm图表安装metricbeat (默认值)。
但是,在日志文件中,我观察到:
kubectl -n日志记录metricbeat-metricbeat-ljjfx:
2019-10-20T10:22:57.191Z WARN transport/tcp.go:53 DNS lookup failure "k8s-node4": lookup k8s-node4 on 10.96.0.10:53: no such host
2019-10-20T10:23:01.196Z WARN transport/tcp.go:53 DNS lookup failure "k8s-node4": lookup k8s-node4 on 10.96.0.10:53: no such host
2019-10-20T10:23:02.143Z WARN transport/tcp.go:53 DNS lookup failure "k8s-node4": lookup k8s-node4 on 10.96.0.10:53: no such host
2019-10-20T10:23:03.867Z WARN transport/tcp.go:53 DNS lookup failure "k8s-node4": lookup k8s-node4 on 10.96.0.10:53: no such host
2019-10-20T10:23:06.364Z WARN transport/tcp.go:53 DNS lookup failure "k8s-node4": lookup k8s-node4 on 10.96.0.10:53: no such host发布于 2019-10-21 20:43:45
这种错误表明您应该检查您的DNS策略。更多细节可以在here上找到。简而言之,您需要添加以下配置:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet 如果有帮助,请让我知道。
发布于 2020-08-23 10:16:17
使用helm3,在values.yml中启用hostNetwork解决了这个问题
daemonset:
enabled: true
hostNetworking: truehttps://stackoverflow.com/questions/58472256
复制相似问题