Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 507 Bytes

kubernetes-dns.md

File metadata and controls

31 lines (24 loc) · 507 Bytes

Kubernetes DNS

Custom DNS Settings

Edit coredns config map

Add entry to the Corefile: | section of the configmap/coredns in section kube-system.

.:53 {
  # ...
}
import /etc/coredns/custom/*.server

Add new config map

Example for local DNS server using the clcreative.home zone.

apiVersion: v1
kind: ConfigMap
metadata:
  name: coredns-custom
  namespace: kube-system
data:
  clcreative.server: |
    clcreative.home:53 {
      forward . 10.20.0.10
    }