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

Cleanup nodelocaldns configuration #11238

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove upstreamsvc option from nodelocaldns
* Since we configure the upstream server through ansible templating,
this arugment has no impact on node-cache
  • Loading branch information
evan-a-a committed May 27, 2024
commit c6d9c16464ce0a856e4c8cd615b7daee6d6b3c19
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ spec:
- {{ nodelocaldns_ip }}
- -conf
- /etc/Corefile
Copy link
Contributor

Choose a reason for hiding this comment

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

how is this file configured ?

Copy link
Author

Choose a reason for hiding this comment

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

Node-cache generates the Corefile from Corefile.base, substituting any templated values in the process.

- -upstreamsvc
Copy link
Contributor

Choose a reason for hiding this comment

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

why removing the upstreamsvc?

Copy link
Author

@evan-a-a evan-a-a May 28, 2024

Choose a reason for hiding this comment

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

I explain this in the commit message, but this is a no-op in the Kubespray configuration, since we use Ansible to template the Corefile. The sole purpose of upstreamsvc is to replace __PILLAR__CLUSTER__DNS__ during templating from Corefile.base with the IP of the upstream service.

- coredns
{% if enable_nodelocaldns_secondary %}
- -skipteardown
{% else %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
requests:
cpu: {{ nodelocaldns_cpu_requests }}
memory: {{ nodelocaldns_memory_requests }}
args: [ "-localip", "{{ nodelocaldns_ip }}", "-conf", "/etc/Corefile", "-upstreamsvc", "coredns", "-skipteardown" ]
args: [ "-localip", "{{ nodelocaldns_ip }}", "-conf", "/etc/Corefile", "-skipteardown" ]
securityContext:
privileged: true
{% if nodelocaldns_bind_metrics_host_ip %}
Expand Down