GithubHelp home page GithubHelp logo

Comments (6)

data-infra avatar data-infra commented on August 20, 2024

在腾讯云机器上部署可能会存在这样的任务。主要是kube-system命名空间下的core-dns不正常。可能的原因
1、主机上53端口占用,比如主机携带bind服务,会占用了53端口,造成coredns无法启动。需要关注主机本身的dns服务
2、主机域名服务器中有127.0.0.1,无法启动。修正主机/etc/resolv.conf目录下的dns服务器配置,并重启 docker restart kubelet
3、coredns的资源limit太小,可以把resource limit去掉
4、防火墙限制,虽然在云上有安全组限制,但是在主机上可能还有一层防火墙的限制。iptables 放开dns。/sbin/iptables -P FORWARD ACCEPT

正常的 日志应该是这样的
image

from cube-studio.

exquisite2007 avatar exquisite2007 commented on August 20, 2024

虽然在云上有安全组限制,但是在主机上可能还有一层防火墙的限制。iptables

多谢@data-infra回复
我的部署不在腾讯云,是我司内部的一个云主机。
这个应该和core-dns没关系,core-dns启动正常,core-dns只影响service。但我验证了直接对同一个namespace的两个pod都ping不通
image
如下图,我进入了volcano-admission-85b7ccb489-cztl2这个pod 去ping 10.42.119.73 是不通的
image

ping主机ip可通
image

from cube-studio.

data-infra avatar data-infra commented on August 20, 2024

rancher k8s使用的是nat网络模式,本身就无法响应ping命令。只能通过ping服务名看看能不能解析出服务名的ip。不会有ping响应。

from cube-studio.

exquisite2007 avatar exquisite2007 commented on August 20, 2024

这个是coredns日志,无法访问公有dns,有解吗?
image

from cube-studio.

data-infra avatar data-infra commented on August 20, 2024

试试 /sbin/iptables -P FORWARD ACCEPT

from cube-studio.

exquisite2007 avatar exquisite2007 commented on August 20, 2024

是这个原因,多谢@data-infra

from cube-studio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.