Overview
Application Scenarios
DNS is one of the important basic services in Kubernetes. When the container DNS policy is not properly configured and the cluster scale is large, DNS resolution may time out or fail. In extreme cases, a large number of services in the cluster may fail to be resolved. This section describes the best practices of CoreDNS configuration optimization in Kubernetes clusters to help you avoid such problems.
Solution
CoreDNS configuration optimization includes clients and servers.
On the client, you can optimize domain name resolution requests to reduce resolution latency, and use proper container images and NodeLocal DNSCache to reduce resolution exceptions.
- Optimizing Domain Name Resolution Requests
- Selecting a Proper Image
- Avoiding Occasional DNS Resolution Timeout Caused by IPVS Defects
- Using NodeLocal DNSCache
- Upgrading the CoreDNS in the Cluster Timely
- Adjusting the DNS Configuration of the VPC and VM
On the server, you can adjust the CoreDNS deployment status or CoreDNS configuration to improve the availability and throughput of CoreDNS in the cluster.
For more information about CoreDNS configurations, see https://coredns.io/.
CoreDNS open source community: https://github.com/coredns/coredns
Prerequisites
- A CCE cluster has been created.
- You can access the cluster using kubectl.
- The CoreDNS add-on is installed in the cluster. The latest version of CoreDNS is recommended.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot