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

Lowers the default nodelocaldns denial cache TTL #74093

Merged
merged 2 commits into from
Feb 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions cluster/addons/dns/nodelocaldns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ spec:
- Ingress
- Egress
```

### Negative caching

The `denial` cache TTL has been reduced to the minimum of 5 seconds [here](https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/dns/nodelocaldns/nodelocaldns.yaml#L37). In the unlikely event that this impacts performance, setting this TTL to a higher value make help alleviate issues, but be aware that operations that rely on DNS polling for orchestration may fail (for example operators with StatefulSets).
5 changes: 4 additions & 1 deletion cluster/addons/dns/nodelocaldns/nodelocaldns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ data:
Corefile: |
__PILLAR__DNS__DOMAIN__:53 {
errors
cache 30
cache {
success 9984 30
denial 9984 5
}
reload
loop
bind __PILLAR__LOCAL__DNS__
Expand Down