-
Notifications
You must be signed in to change notification settings - Fork 715
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
--service-cidr option should set DNS server IP #83
Comments
@luxas another use case for templates? |
@pires This is not related to using go templates for the kube-dns deployment, it's about configuring kubelet flags IIUC We are totally aware of this and that's one of the reasons kubeadm is in alpha. Instead we want to use Kubelet Dynamic Settings #28 that can do this for us. The problem is that the feature isn't done in the core and we're stalled by that unless we build a custom controller that configures the controllers. Please read about Kubelet Dynamic Settings so you see what it can and will do. |
According to http://kubernetes.io/docs/admin/kubeadm/, if you pass the
--service-cidr
option, “you will also need to update the/etc/systemd/system/kubelet.service.d/10-kubeadm.conf
file to reflect this change else DNS will not function correctly”. Indeed, my tests show that the DNS server IP in that file must be within the given service network.I think
kubeadm
should patch the configuration file and reload/restart the service if--service-cidr
is given. The current approach is awkward and error-prone.The text was updated successfully, but these errors were encountered: