Skip to main content
Version: 2.0.2

CoreDNS

coredns (Object) โ€” Requiredโ€‹

Descriptionโ€‹

The coredns field contains the main configuration for the clusterโ€™s DNS service. It defines the parameters required for deploying and ensuring the proper operation of CoreDNS.

Exampleโ€‹

coredns:
valuesOverride:
corends:
replicaCount: 2

valuesOverride (Object) โ€” Requiredโ€‹

Descriptionโ€‹

The valuesOverride field allows overriding the default values of the CoreDNS deployment, typically via Helm. It is used to customize resources, replica counts, and DNS service configuration (e.g., plugins, zones, caches). See all available options: https://github.com/coredns/helm/blob/master/charts/coredns/values.yaml

Exampleโ€‹

valuesOverride:
corends:
replicaCount: 2
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 100m
memory: 128Mi

๐Ÿ’ก Best Practicesโ€‹

  • Always define valuesOverride to adjust resources according to the cluster size.
  • Set replicaCount to at least 2 to ensure high availability of the DNS service.
  • Monitor memory usage: CoreDNS may consume more depending on the number of services and DNS queries.
  • Adapt plugin configuration (e.g., forward, cache, rewrite) according to your environmentโ€™s needs.
  • Avoid manually modifying the CoreDNS ConfigMap: prefer a deployment managed through valuesOverride.