The module is enabled by default.

Parameters

  • clusterDomainAliases (array of strings)

    A list of cluster domain aliases; these are resolved on par with global.discovery.clusterDomain.

    Pattern: ^[0-9a-zA-Z\.-]+$

  • enableLogs (boolean)

    Enable CoreDNS logging.

    Default: false

  • hosts (array of objects)

    A static list of hosts similar to that of /etc/hosts.

    Not required value.

    • domain (string)

      Pattern: ^[0-9a-zA-Z\.-]+$

    • ip (string)

      Pattern: ^[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$

  • stubZones (array of objects)

    A list of additional zones CoreDNS should be authoritative for.

    Default: []

    • upstreamNameservers (array of strings)

      A list of IP addresses of recursive DNS servers that CoreDNS will use to resolve domains in this zone.

      Pattern: ^[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}(:[0-9]{1,})?$

    • zone (string)

      The CoreDNS zone.

      Pattern: ^[0-9a-zA-Z\.-]+$

      Example: "consul.local"

  • upstreamNameservers (array of strings)

    A list of IP addresses of recursive DNS servers that CoreDNS will use to resolve external domains.

    By default, the /etc/resolv.conf list is used.

    Pattern: ^[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}(:[0-9]{1,})?$