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

Change the dnsPolicy for the weave-net pods to ClusterFirstWithHostNet #3692

Merged
merged 1 commit into from
Oct 2, 2019

Conversation

sidharthsurana
Copy link
Contributor

Currently, there is no explicit dnsPolicy specified, thus when the DaemonSet is deployed it gets the ClusterFirst policy. However, since the pods run with hostNetwork: true, the pods get configured with the DNS coming from the host instead of k8s. This means the out of the box weave pod would not be able to resolve any k8s service FQDNs. The more appropriate dnsPolicy would be ClusterFirstWithHostNet as that would ensure that the DNS resolution for any k8s services would be at least possible.

@sidharthsurana
Copy link
Contributor Author

cc @murali-reddy

@murali-reddy
Copy link
Contributor

thanks @sidharthsurana we are tidy up current manifests. Once #3660, #3674 merged will point you to the right manifest to update. weave-daemonset.yaml is legacy one.

@bboreham
Copy link
Contributor

Those PRs are merged now and the best manifest to alter is https://github.com/weaveworks/weave/blob/master/prog/weave-kube/weave-daemonset-k8s-1.9.yaml

@sidharthsurana
Copy link
Contributor Author

@bboreham done. Thanks for the pointer.

@bboreham
Copy link
Contributor

bboreham commented Sep 3, 2019

Do we actually attempt to resolve any cluster DNS addresses?
Or do we expect to in future?

@murali-reddy
Copy link
Contributor

Do we actually attempt to resolve any cluster DNS addresses?

No. At the moment no servie is refered through its DNS name. Its more of confromance to the prescribed value for pods running in hostNetwork.

Copy link
Contributor

@bboreham bboreham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bboreham bboreham merged commit eeec383 into weaveworks:master Oct 2, 2019
@bboreham bboreham added this to the 2.6 milestone Nov 4, 2019
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

Successfully merging this pull request may close these issues.

None yet

3 participants