Add a Zone File to Kubernetes CoreDNS

From NovaOrdis Knowledge Base
Revision as of 19:04, 23 October 2019 by Ovidiu (talk | contribs) (→‎Internal)
Jump to navigation Jump to search

Internal

Overview

The zone file is added as a ConfigMap entry which will be projected in CoreDNS pods as a file. The Corefile should be also modified to refer the new zone file with the "file" directive.

The CoreDNS deployment is then scaled down, the new configuration file is added as an "item" in configMap volume mount, and the deployment is then scaled up.

Procedure