Skip to content

Commit 6b94386

Browse files
Merge pull request #258107 from jotavar/add-alert-to-coredns-scaling-configmap-configuration
Added alert regarding recommended minimum number of CoreDNS pod replicas
2 parents 6154510 + 0dc8c41 commit 6b94386

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/aks/coredns-custom.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ Sudden spikes in DNS traffic within AKS clusters are a common occurrence due to
224224

225225
CoreDNS uses [horizontal cluster proportional autoscaler][cluster-proportional-autoscaler] for pod auto scaling. The `coredns-autoscaler` ConfigMap can be edited to configure the scaling logic for the number of CoreDNS pods. The `coredns-autoscaler` ConfigMap currently supports two different ConfigMap key values: `linear` and `ladder` which correspond to two supported control modes. The `linear` controller yields a number of replicas in [min,max] range equivalent to `max( ceil( cores * 1/coresPerReplica ) , ceil( nodes * 1/nodesPerReplica ) )`. The `ladder` controller calculates the number of replicas by consulting two different step functions, one for core scaling and another for node scaling, yielding the max of the two replica values. For more information on the control modes and ConfigMap format, please consult the [upstream documentation][cluster-proportional-autoscaler-control-patterns].
226226

227+
> [!IMPORTANT]
228+
> A minimum of 2 CoreDNS pod replicas per cluster is recommended. Configuring a minimum of 1 CoreDNS pod replica may result in failures during operations which require node draining, such as cluster upgrade operations.
229+
227230
To retrieve the `coredns-autoscaler` ConfigMap, you can run the `kubectl get configmap coredns-autoscaler -n kube-system -o yaml` command which will return the following:
228231

229232
```yaml

0 commit comments

Comments
 (0)