Skip to content

Commit a29da47

Browse files
sharjeelazizk8s-ci-robot
authored andcommitted
Updated default Corefile that is installed with the current version of CoreDNS. (#18158)
1 parent 5aea563 commit a29da47

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

content/en/docs/tasks/administer-cluster/dns-custom-nameservers.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,14 @@ data:
7575
Corefile: |
7676
.:53 {
7777
errors
78-
health
78+
health {
79+
lameduck 5s
80+
}
81+
ready
7982
kubernetes cluster.local in-addr.arpa ip6.arpa {
80-
pods insecure
81-
fallthrough in-addr.arpa ip6.arpa
83+
pods insecure
84+
fallthrough in-addr.arpa ip6.arpa
85+
ttl 30
8286
}
8387
prometheus :9153
8488
forward . /etc/resolv.conf
@@ -91,8 +95,9 @@ data:
9195
The Corefile configuration includes the following [plugins](https://coredns.io/plugins/) of CoreDNS:
9296
9397
* [errors](https://coredns.io/plugins/errors/): Errors are logged to stdout.
94-
* [health](https://coredns.io/plugins/health/): Health of CoreDNS is reported to http://localhost:8080/health.
95-
* [kubernetes](https://coredns.io/plugins/kubernetes/): CoreDNS will reply to DNS queries based on IP of the services and pods of Kubernetes. You can find more details [here](https://coredns.io/plugins/kubernetes/).
98+
* [health](https://coredns.io/plugins/health/): Health of CoreDNS is reported to http://localhost:8080/health. In this extended syntax `lameduck` will make the process unhealthy then wait for 5 seconds before the process is shut down.
99+
* [ready](https://coredns.io/plugins/ready/): An HTTP endpoint on port 8181 will return 200 OK, when all plugins that are able to signal readiness have done so.
100+
* [kubernetes](https://coredns.io/plugins/kubernetes/): CoreDNS will reply to DNS queries based on IP of the services and pods of Kubernetes. You can find more details [here](https://coredns.io/plugins/kubernetes/). `ttl` allows you to set a custom TTL for responses. The default is 5 seconds. The minimum TTL allowed is 0 seconds, and the maximum is capped at 3600 seconds. Setting TTL to 0 will prevent records from being cached.
96101

97102
> The `pods insecure` option is provided for backward compatibility with kube-dns. You can use the `pods verified` option, which returns an A record only if there exists a pod in same namespace with matching IP. The `pods disabled` option can be used if you don't use pod records.
98103

0 commit comments

Comments
 (0)