Difference between revisions of "Corefile"
Jump to navigation
Jump to search
(Created page with " {{CoreDNS}}") |
|||
Line 1: | Line 1: | ||
+ | <pre> | ||
+ | apiVersion: v1 | ||
+ | kind: ConfigMap | ||
+ | metadata: | ||
+ | name: coredns | ||
+ | namespace: kube-system | ||
+ | data: | ||
+ | Corefile: | | ||
+ | .:53 { | ||
+ | errors | ||
+ | health { | ||
+ | lameduck 5s | ||
+ | } | ||
+ | ready | ||
+ | kubernetes cluster.local in-addr.arpa ip6.arpa { | ||
+ | pods insecure | ||
+ | fallthrough in-addr.arpa ip6.arpa | ||
+ | ttl 30 | ||
+ | } | ||
+ | prometheus :9153 | ||
+ | forward . /etc/resolv.conf | ||
+ | cache 30 | ||
+ | loop | ||
+ | reload | ||
+ | loadbalance | ||
+ | } | ||
+ | </pre> | ||
{{CoreDNS}} | {{CoreDNS}} |
Revision as of 17:23, 1 December 2022
apiVersion: v1 kind: ConfigMap metadata: name: coredns namespace: kube-system data: Corefile: | .:53 { errors health { lameduck 5s } ready kubernetes cluster.local in-addr.arpa ip6.arpa { pods insecure fallthrough in-addr.arpa ip6.arpa ttl 30 } prometheus :9153 forward . /etc/resolv.conf cache 30 loop reload loadbalance }
CoreDNS, kube-dns
, Know how to configure and use CoreDNS, Corefile
Advertising: