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
valuesOverrideto adjust resources according to the cluster size. - Set
replicaCountto 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 throughvaluesOverride.