36 lines
754 B
YAML
36 lines
754 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: coredns
|
|
namespace: kube-system
|
|
data:
|
|
Corefile: |
|
|
.:53 {
|
|
errors
|
|
health
|
|
ready
|
|
kubernetes cluster.local in-addr.arpa ip6.arpa {
|
|
pods insecure
|
|
fallthrough in-addr.arpa ip6.arpa
|
|
}
|
|
hosts /etc/coredns/NodeHosts {
|
|
ttl 60
|
|
reload 15s
|
|
fallthrough
|
|
}
|
|
prometheus :9153
|
|
forward . /etc/resolv.conf
|
|
cache 30
|
|
loop
|
|
reload
|
|
loadbalance
|
|
import /etc/coredns/custom/*.override
|
|
}
|
|
aipice.local:53 {
|
|
errors
|
|
cache 30
|
|
forward . 192.168.100.241
|
|
}
|
|
import /etc/coredns/custom/*.server
|
|
NodeHosts: |
|
|
192.168.100.214 srv-001 |