Best method to permanently modify kube-dns configuration? #1089
Comments
@pedrobizzotto Hi, thanks for trying kube-aws!
Unfortunately, no - would you like to make it a feature request? |
@mumoshu Hello, thanks for the answer. The reason I want to make the changes without altering cloud-config-controller is that any modifications will need to replace the controller instances to be effectively applied. In a dev/QA setup this isn't an issue, but in a production setup this is more serious. I just had an issue where the deployment and configmap were reset but apparently we had not replaced any of the controller instances, will try to gather more info on this. Thanks again! |
@mumoshu , hello again, -- Logs begin at Tue 2017-12-19 18:17:04 UTC, end at Thu 2017-12-28 12:19:14 UTC. -- Is this the intended behavior? Thanks! |
@pedrobizzotto Hi! Sorry for the late reply. Like:
|
Hello, thanks for the response, I don't know yet how hard would it be to implement, but maybe the script called by the systemd unit should check for the existence of the components and only apply if they are missing? This can, of course, leave the components in an non-optimal state, for example if you mess up the configuration of the deployments after the cluster has booted , but that's something you can run |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hello all,
kube-aws 0.9.8 user here
To solve some issues we encountered with name resolution I applied two modifications to kube-dns:
Modified the kube-dns configmap as described in http://blog.kubernetes.io/2017/04/configuring-private-dns-zones-upstream-nameservers-kubernetes.html , to use different upstream servers for some domains.
Modified the kube-dns deployment, adding some paramenters to the dnsmasq container, most important is disabling negative caching as described in kube-dns never resolves if a domain returns NOERROR with 0 answer records once kubernetes/dns#121, --no-negcache.
The problem I'm having is that when I replace a controller instance, or make any changes that results in a new controller instances coming up, both the configmap and the deployment are reset to the default values, i've isolated this to the script
/opt/bin/install-kube-system
that applies the deployment and configmap files present in/srv/kubernetes/manifest
every time a controller instance is created.Is there a way to make the changes permanent without modifying the cloud-init file for the controller?
Thanks,
Pedro S. Bizzotto
The text was updated successfully, but these errors were encountered: