Available in editions:  BE, SE, SE+, EE

  • The module works with all CNIs, but in order to work correctly with cni-cilium, a number of conditions must be met.
  • By default, when used together with the cni-simple-bridge or cni-flannel modules, the node-local-dns module does not work for requests from hostNetwork. In this case, all requests go to the kube-dns module. You can specify the address 169.254.20.10 in the pod configuration, but if node-local-dns module crashes, there will be no fallback to the kube-dns module.

The module has 5 alerts.

The module is enabled by default in the Default bundle. The module is disabled by default in the following bundles: Managed, Minimal.

How to explicitly enable the module…

Set the spec.enabled module parameter to true or false in the ModuleConfig/node-local-dns resource (create it, if necessary) to explicitly enable or disable the module, or use the deckhouse-controller module command in the d8-system/deckhouse pod.

Example of enabling the module:

  • by using the ModuleConfig resource:

    apiVersion: deckhouse.io/v1alpha1
    kind: ModuleConfig
    metadata:
      name: node-local-dns
    spec:
      enabled: true
    
  • by using the deckhouse-controller command (you need a kubectl, configured to work with the cluster):

    kubectl -ti -n d8-system exec svc/deckhouse-leader -c deckhouse -- deckhouse-controller module enable node-local-dns
    

Example of disabling the module:

  • by using the ModuleConfig resource:

    apiVersion: deckhouse.io/v1alpha1
    kind: ModuleConfig
    metadata:
      name: node-local-dns
    spec:
      enabled: false
    
  • by using the deckhouse-controller command (you need a kubectl, configured to work with the cluster):

    kubectl -ti -n d8-system exec svc/deckhouse-leader -c deckhouse -- deckhouse-controller module disable node-local-dns
    

Settings

The module is configured using the ModuleConfig custom resource named node-local-dns (learn more about setting up Deckhouse…).

Example of the ModuleConfig/node-local-dns resource for configuring the module:

apiVersion: deckhouse.io/v1alpha1
kind: ModuleConfig
metadata:
  name: node-local-dns
spec:
  version: 1
  enabled: true
  settings: # <-- Module parameters from the "Parameters" section below.

Parameters

Schema version: 1

  • settings
    object
    • settings.enableLogs
      boolean

      Enables query logging for node-local-dns instances.

      Default: false