Back to all scenarios
Scenario #158
Networking
K8s v1.20, Azure AKS
CoreDNS Service Failures Due to Resource Exhaustion
CoreDNS service failed due to resource exhaustion, causing DNS resolution failures.
Find this helpful?
What Happened
CoreDNS pods exhausted available CPU and memory, leading to service failures and DNS resolution issues.
Diagnosis Steps
- 1Checked CoreDNS logs and found out-of-memory errors.
- 2Verified that the CPU usage was consistently high for the CoreDNS pods.
Root Cause
Insufficient resources allocated to CoreDNS pods, causing service crashes.
Fix/Workaround
• Increased the resource requests and limits for CoreDNS pods.
• Restarted the CoreDNS pods to apply the updated resource allocation.
Lessons Learned
Ensure that critical components like CoreDNS have sufficient resources allocated for normal operation.
How to Avoid
- 1Set appropriate resource requests and limits based on usage patterns.
- 2Monitor resource consumption of CoreDNS and other critical components.