-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Adds nodelocaldns_additional_configs
to facilitate additional CoreDNS config options
#11657
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -75,6 +75,9 @@ data: | |||||||||
prometheus {% if nodelocaldns_bind_metrics_host_ip %}{$MY_HOST_IP}{% endif %}:{{ nodelocaldns_prometheus_port }} | ||||||||||
} | ||||||||||
.:53 { | ||||||||||
{% if nodelocaldns_additional_configs is defined %} | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It depends on the intended use of this variable I suppose. I kept this consistent with
|
||||||||||
{{ nodelocaldns_additional_configs | indent(width=8, first=False) }} | ||||||||||
{% endif %} | ||||||||||
errors | ||||||||||
cache 30 | ||||||||||
reload | ||||||||||
|
@@ -157,6 +160,9 @@ data: | |||||||||
prometheus {% if nodelocaldns_bind_metrics_host_ip %}{$MY_HOST_IP}{% endif %}:{{ nodelocaldns_secondary_prometheus_port }} | ||||||||||
} | ||||||||||
.:53 { | ||||||||||
{% if nodelocaldns_additional_configs is defined %} | ||||||||||
{{ nodelocaldns_additional_configs | indent(width=8, first=False) }} | ||||||||||
{% endif %} | ||||||||||
errors | ||||||||||
cache 30 | ||||||||||
reload | ||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See:https://github.com/kubernetes/kubernetes/blob/d9b95ea94f41b942440adbdfdbe35fb78a2ed6f7/cluster/addons/dns/nodelocaldns/nodelocaldns.yaml#L58
By default, we don't need these configs indeed, Can you explain why we need it? thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my particular use case, I wish to use the
template
plugin to respond to a query, so that this can be rewritten to a k8s service address via CNAME. I'm unable to utilise the existingcoredns_additional_configs
variable for this as this isn't used in the nodelocal dns config template, only in the coredns config template, and queries for non-k8s service addresses are passed directly to upstream from nodelocal dnsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, thanks for the explanation.