Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using host network need add dnsPolicy #26

Open
l1b0k opened this issue Jun 21, 2017 · 2 comments
Open

Using host network need add dnsPolicy #26

l1b0k opened this issue Jun 21, 2017 · 2 comments

Comments

@l1b0k
Copy link

l1b0k commented Jun 21, 2017

when agent using host network , it need add dnsPolicy . Otherwise it will not resolve service name

E0621 07:41:24.042786       1 agent.go:303] Error while sending info. Details: Post http://netchecker-service:8081/api/v1/agents/netchecker-agent-hostnet-j4bbb: dial tcp: lookup netchecker-service on 10.1.7.77:53: server misbehaving

hostnet DaemonSet should like this

spec:
  template:
    metadata:
      name: netchecker-agent-hostnet
      labels:
        app: netchecker-agent-hostnet
    spec:
      hostNetwork: True
      dnsPolicy: ClusterFirstWithHostNet
      containers:
...
@artem-panchenko
Copy link

Confirm this issue, it affects environments where k8s nodes aren't configured to use internal (kubedns) resolver.

@AlexeyKasatkin
Copy link
Collaborator

Let's add this into examples or/and docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants