OCPBUGS-66104: Fine tune CoreDNS pod configuration to improve performance#5695
OCPBUGS-66104: Fine tune CoreDNS pod configuration to improve performance#5695sadasu wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
@sadasu: This pull request references Jira Issue OCPBUGS-66104, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sadasu The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
19dccd4 to
6463d12
Compare
|
/testwith openshift/installer/master/e2e-aws-custom-dns-techpreview |
|
/retest-required |
|
/testwith openshift/installer/master/e2e-aws-custom-dns-techpreview |
|
/testwith e2e-aws-custom-dns-techpreview |
|
@sadasu seems the command |
80cbba4 to
efcf510
Compare
efcf510 to
7281d8e
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughCoreDNS Corefile modified: the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@sadasu: This pull request references Jira Issue OCPBUGS-66104, which is valid. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (gpei@redhat.com), skipping review request. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
7281d8e to
1d6d745
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@templates/common/cloud-platform-alt-dns/files/coredns-corefile.yaml`:
- Around line 8-10: In the CoreDNS Corefile inside the forward block (the stanza
starting with "forward . {{`{{- range $upstream := .DNSUpstreams}}
{{$upstream}}{{- end}}`}} {"), remove the force_tcp directive and either replace
it with prefer_udp or omit the line entirely so upstream queries will prefer UDP
and only fall back to TCP on truncation; update the forward block accordingly to
use prefer_udp if you want explicit behavior.
In
`@templates/common/cloud-platform-alt-dns/files/usr-local-bin-update-dns-server.yaml`:
- Line 17: The script hard-codes a public DNS (8.8.8.8) in the servers variable
assignment (servers=$(ip --json route get 8.8.8.8 | jq -r
".[0].prefsrc"),$1,8.8.8.8) which can break private/disconnected installs and
leak queries; change the logic in the servers assignment to stop appending
8.8.8.8 and instead use a configurable fallback or none: read a fallback from an
environment/config variable (e.g., FALLBACK_DNS or platform-provided upstreams)
and only append it when set and allowed, or simply build servers from the local
preferred source and $1 without the hard-coded public resolver.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: eea4363e-a62c-4f35-8d64-147cc309dd13
📒 Files selected for processing (2)
templates/common/cloud-platform-alt-dns/files/coredns-corefile.yamltemplates/common/cloud-platform-alt-dns/files/usr-local-bin-update-dns-server.yaml
templates/common/cloud-platform-alt-dns/files/usr-local-bin-update-dns-server.yaml
Outdated
Show resolved
Hide resolved
1d6d745 to
86e4155
Compare
|
@sadasu: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
Make updates to the Cloud platform CoreDNS Corefile to increase buffersize from 512 to the default of 1232.
86e4155 to
8ddb17b
Compare
Make updates to the Cloud platform CoreDNS Corefile to increase buffersize from 512 to the default of 1232 (by removing the configuration so the default value could take effect).
And prefer UDP for contacting upstream platform upstream DNS servers to reduce load on them.
- What I did
- How to verify it
- Description for the changelog
Summary by CodeRabbit