aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/kubernetes/README.md')
-rw-r--r--plugin/kubernetes/README.md23
1 files changed, 14 insertions, 9 deletions
diff --git a/plugin/kubernetes/README.md b/plugin/kubernetes/README.md
index 021b6553b..552050b0b 100644
--- a/plugin/kubernetes/README.md
+++ b/plugin/kubernetes/README.md
@@ -14,7 +14,7 @@ cluster. See the [deployment](https://github.com/coredns/deployment) repository
to deploy CoreDNS in Kubernetes](https://github.com/coredns/deployment/tree/master/kubernetes).
[stubDomains and upstreamNameservers](https://kubernetes.io/blog/2017/04/configuring-private-dns-zones-upstream-nameservers-kubernetes/)
-are implemented via the *proxy* plugin and kubernetes *upstream*. See example below.
+are implemented via the *forward* plugin and kubernetes *upstream*. See the examples below.
This plugin can only be used once per Server Block.
@@ -147,28 +147,33 @@ kubernetes cluster.local {
## stubDomains and upstreamNameservers
-Here we use the *proxy* plugin to implement a stubDomain that forwards `example.local` to the nameserver `10.100.0.10:53`.
+Here we use the *forward* plugin to implement a stubDomain that forwards `example.local` to the nameserver `10.100.0.10:53`.
The *upstream* option in the *kubernetes* plugin means that ExternalName services (CNAMEs) will be resolved using the respective proxy.
Also configured is an upstreamNameserver `8.8.8.8:53` that will be used for resolving names that do not fall in `cluster.local`
or `example.local`.
~~~ txt
-.:53 {
+cluster.local:53 {
kubernetes cluster.local {
upstream
}
- proxy example.local 10.100.0.10:53
- proxy . 8.8.8.8:53
+}
+example.local {
+ forward . 10.100.0.10:53
+}
+
+. {
+ forward . 8.8.8.8:53
}
~~~
The configuration above represents the following Kube-DNS stubDomains and upstreamNameservers configuration.
~~~ txt
- stubDomains: |
- {“example.local”: [“10.100.0.10:53”]}
- upstreamNameservers: |
- [“8.8.8.8:53”]
+stubDomains: |
+ {“example.local”: [“10.100.0.10:53”]}
+upstreamNameservers: |
+ [“8.8.8.8:53”]
~~~
## AutoPath