- Documentation
Volcengine Kubernetes Engine
Volcengine Kubernetes Engine
FAQs
Workload FAQs
How do I update the CoreDNS replica count and resource quotas?
Workload FAQs
How do I update the CoreDNS replica count and resource quotas?
How do I update the CoreDNS replica count and resource quotas?
In a VKE cluster, CoreDNS is installed by default as the domain resolution service of the cluster. When the cluster has a large number of nodes or experiences high DNS query pressure, you need to adjust the CoreDNS replica count, CPU/memory limits, or CPU/memory requests. This topic describes how to perform these operations.
In VKE, CoreDNS is deployed as a system component in the kube-system namespace as a Deployment. You can directly modify its configuration to adjust the replica count and resource limits.
Method 1: Using the console (recommended)
- Log in to the VKE console and select the target cluster.
- In the left navigation pane, click Workload > Deployment.
- Select the kube-system namespace and search for coredns. In the Actions column on the right, click ...> Update.
- On the Update Deployment page, modify the following parameters. For more information, see Workload configuration.
- Number of instances: Adjust the number of instances to the desired value.
- ResourceQuota: Modify the CPU and memory requests and limits as needed.
- After you confirm the configuration, click Confirm to save the changes.
- After the changes are saved, the system will automatically perform a rolling update of the corresponding CoreDNS Pod. You can view the Pod status on the Instances tab on the Deployment details page. The Running state indicates that the configuration changes have taken effect.
If you prefer using the command line, follow these steps:
- View the current CoreDNS configuration in the cluster.
- Modify the CoreDNS configuration.
- Modify the CoreDNS replica count:
- Modify CoreDNS requests or limits:
Use the edit command (recommended)
Use the patch command
- Run the following command to edit the CoreDNS configuration.
- In the editor, find the spec.template.spec.containers[0].resources section and change the value of limits.
Recommended configuration
The recommended CoreDNS configuration varies with cluster node count, as described below.
Last updated: 2026.07.23 14:31:47