PSKE - Cluster DNS (CoreDNS)
less than a minute
By default, CoreDNS scales up to a maximum of 5 replicas. This can become a problem in larger clusters as they may not be able to handle the high volume of requests.
In Gardener, there are two options to define the scaling behavior:
Horizontal: This mode sets a minimum of 2 replicas and a maximum of 5 replicas for CoreDNS.
Cluster-proportional: This mode sets a minimum of 2 replicas and adds an additional replica for every 16 nodes in the cluster.
The default setting in the clusters is “horizontal.”
Switching between the scaling modes is straightforward:
- Select the desired cluster.
- Instead of choosing “Overview” in the top tab, select “YAML.”
- Adjust the YAML configuration accordingly.
Here are examples of the YAML configurations for each scaling mode:
Example: Horizontal
systemComponents:
coreDNS:
autoscaling:
mode: horizontal
Example: Cluster-proportional
systemComponents:
coreDNS:
autoscaling:
mode: cluster-proportional
Simply make the appropriate changes to the YAML configuration, save it, and the scaling behavior of CoreDNS will be updated accordingly in the Gardener cluster.