Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Caching Not working for NodeLocal DNSCache.
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
- The NodeLocal DNSCache pods are failing to resolve the cached kubernetes service DNS queries.
- The DNS resolution for kubernetes services failing with
SERVFAILresponse.
Environment
- Platform9 Managed Kubernetes – All Versions
Cause
- The TTL of the records coming from CoreDNS is 30 Secs by default, hence any
.cluster.localrecords would only be cached for 30s.
Javascript
xxxxxxxxxxkubernetes cluster.local in-addr.arpa ip6.arpa { pods insecure fallthrough in-addr.arpa ip6.arpa ttl 30 }- Due to this any record cached in NodeLocal DNSCache pods would only be queryable for 30 Secs before it is expired from the cache.
- The DNS resolutions beyond 30 Secs will fail with a
SERVFAILresponse.
Resolution
- The CoreDNS ConfigMap may be edited to set a higher TTL for any such domains; however, this can result in to a situation where these records will take longer to update in case their endpoint is updated.
- The ConfigMap/Corefile for the node-local-dns component would also need to be updated to allow a >30s maximum for any successful lookup record TTLs, e.g.
Javascript
xxxxxxxxxxcache { success 9984 60 denial 9984 5 }A similar issue was reported to upstream at
https://github.com/kubernetes/dns/issues/415#issuecomment-712450686
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
Pod Stuck in Terminating State Due to PreStop Hook.Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message