CoreDNS file allows you to import files matching a pattern.
By default, CoreDNS installation only mounts the corefile key within coredns CM.
Taken together, what we need to do to allow our default customization and possible further customization:
Update the coredns CM to use the import plugin, then make it look for files matching /etc/coredns-configs/*.conf
Populate /etc/coredns-configs/ with two files (sourced from CMs):
One that contains our default configuration. That is to resolve the name given by the host flag and all subdomains to the internal ingress address.
One that is empty. This is to allow for other packages to update this file for further DNS configurations. In the absence of this file, other packages must update the coredns deployment.
Update the coredns deployment to mount the two CMs.
fixes: #300
This allows for in-cluster hostname resolutions using CoreDNS.
From a pod in the cluster:
A few points about CoreDNS I should make clear:
Taken together, what we need to do to allow our default customization and possible further customization:
/etc/coredns-configs/*.conf
/etc/coredns-configs/
with two files (sourced from CMs):