-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Set cluster DNS correctly in case of nodelocal dns cache #3879
Set cluster DNS correctly in case of nodelocal dns cache #3879
Conversation
There is one more bug:
|
ci check this |
Sorry, it should not be enabled by default yet. Can you switch back |
Syntax error ;) |
9b77181
to
9e6ace6
Compare
9e6ace6 got removed in your latest commit |
Ok I am obviously doing something wrong with the if check in the vars. Any examples. |
80a1492
to
65a4956
Compare
ci check this |
65a4956
to
9f5758b
Compare
@woopstar can you check again please? |
TASK [kubernetes/node : Write kubelet config file (kubeadm)] *******************
task path: /kargo-ci/kubernetes-sigs-kubespray/roles/kubernetes/node/tasks/main.yml:32
Tuesday 11 December 2018 18:32:51 +0000 (0:00:00.130) 0:23:59.514 ******
fatal: [k8s-39770198-133069148-3]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'nodelocaldns_ip' is undefined"}
fatal: [k8s-39770198-133069148-1]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'nodelocaldns_ip' is undefined"}
fatal: [k8s-39770198-133069148-2]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'nodelocaldns_ip' is undefined"} |
failed: [k8s-39836923-133487652-1] (item=nodelocaldns-config.yml) => {"attempts": 4, "changed": false, "item": {"changed": true, "checksum": "d8902c7843760e4e2c7c972dc72098df46933c47", "dest": "/etc/kubernetes/nodelocaldns-config.yml", "diff": [], "failed": false, "gid": 0, "group": "root", "invocation": {"module_args": {"_original_basename": "nodelocaldns-config.yml.j2", "attributes": null, "backup": false, "checksum": "d8902c7843760e4e2c7c972dc72098df46933c47", "content": null, "delimiter": null, "dest": "/etc/kubernetes/nodelocaldns-config.yml", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": null, "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/home/travis/.ansible/tmp/ansible-tmp-1544622076.96-21926197592337/source", "unsafe_writes": null, "validate": null}}, "item": {"file": "nodelocaldns-config.yml", "name": "nodelocaldns", "type": "configmap"}, "md5sum": "57898d53b3518ee30dbad1b06b7a116e", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 1078, "src": "/home/travis/.ansible/tmp/ansible-tmp-1544622076.96-21926197592337/source", "state": "file", "uid": 0}, "msg": "error running kubectl (/usr/local/bin/kubectl --namespace=kube-system apply --force --filename=/etc/kubernetes/nodelocaldns-config.yml) command (rc=1), out='', err='error: error parsing /etc/kubernetes/nodelocaldns-config.yml: error converting YAML to JSON: yaml: line 17: did not find expected key\n'"} |
ping @nysthee |
ea9794d
to
012fe65
Compare
03212a5
to
40f568d
Compare
any news on this? |
Yes, I had several go’s at it but I am lacking some time atm to continue on it.
- - -
Thomas
From: Andreas Krüger <notifications@github.com>(mailto:notifications@github.com)
Reply: kubernetes-sigs/kubespray <reply@reply.github.com>(mailto:reply@reply.github.com)
Date: 21 January 2019 at 12:46:16
To: kubernetes-sigs/kubespray <kubespray@noreply.github.com>(mailto:kubespray@noreply.github.com)
CC: Thomas Nys <hello@thomasnys.com>(mailto:hello@thomasnys.com), Mention <mention@noreply.github.com>(mailto:mention@noreply.github.com)
…Subject: Re: [kubernetes-sigs/kubespray] Set cluster DNS correctly in case of nodelocal dns cache (#3879)
any news on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub(#3879 (comment)), or mute the thread(https://github.com/notifications/unsubscribe-auth/ALCIkAF10DHHxgFiYN1XKj1ShD4q7Vnaks5vFaiIgaJpZM4ZNAU5).
|
FYI, the following PR kubernetes/dns#286 is required to ensure the nodelocaldns network interface is created in a deterministic way. This seems to affect only CoreOS based deployments at this point, but still better to to use this once it's released. |
@nysthee I've taken this PR for a spin and I think I can help with the config interpolation issues. The following diff fixed the issue for me and allowed the proper rendering of the configuration file:
I hope this can help move this PR a long, would ❤️ to see this merged as we desperately need this functionality. |
@nysthee Can we move along ? :) |
40f568d
to
1193d40
Compare
Thanks a lot @dannyk81 !!! I integrated your fix and will continue. 🤞 |
my pleasure! I've been doing some testing with this on a new cluster and so far things look really good 😄 |
Yes please review the pr. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nysthee, woopstar The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…sigs#3879) * Set cluster DNS correctly in case of nodelocal dns cache * Pass in cluster_ip based on dns mode * Disable nodelocaldns by default * Fix syntax error * Fix syntax issue * Add nodelocadns ip to vars of node installation * Change location of nodelocaldns_ip * Try to remove newlines from jinja template * Add debug for config file * Move parameter logic outside of template * Adapt templates after feedback * Remove debugging
Set the cluster_dns appropriately in case nodelocaldns is enabled.
Follow up of #3861