Configure CoreDNS

TOC

Overview

CoreDNS is the default DNS service for Kubernetes clusters. This guide describes how to configure host aliases, node selectors, and tolerations for CoreDNS.

Configuration

  1. Navigate to Administrator > Marketplace > Cluster Plugins.

  2. Search for "Alauda Build of CoreDNS" and click Update.

  3. Configure the following parameters:

Host Alias

Configure custom DNS resolution entries.

ParameterDescription
IPThe IP address to be resolved
DomainsDomain names (separated by spaces)
Example: example.com test.example.com

Node Selectors

Specify which nodes CoreDNS pods should run on.

ParameterDescription
Label KeyThe label key to match on nodes
Label ValueThe label value to match on nodes

Node Tolerations

Allow CoreDNS pods to be scheduled on nodes with taints.

ParameterDescription
KeyThe taint key to tolerate
ValueThe taint value (optional)
TypeNoSchedule, PreferNoSchedule, or NoExecute
  1. Click Update to apply the configuration.