diff options
author | 2018-03-13 16:33:11 -0400 | |
---|---|---|
committer | 2018-03-13 16:33:11 -0400 | |
commit | e5beb9dbfc9611b12dee88e7914251f5b94908cf (patch) | |
tree | c02505af269c4218739adcbce6f521674e5cc76e | |
parent | c8d91500797ed7c1be7c4183f5907d7005e09c9a (diff) | |
download | coredns-e5beb9dbfc9611b12dee88e7914251f5b94908cf.tar.gz coredns-e5beb9dbfc9611b12dee88e7914251f5b94908cf.tar.zst coredns-e5beb9dbfc9611b12dee88e7914251f5b94908cf.zip |
Update README.md (#1607)
-rw-r--r-- | plugin/kubernetes/README.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugin/kubernetes/README.md b/plugin/kubernetes/README.md index 46e32cf2b..bc5d978b0 100644 --- a/plugin/kubernetes/README.md +++ b/plugin/kubernetes/README.md @@ -193,13 +193,14 @@ feature enables serving federated domains from the kubernetes clusters. Some query labels accept a wildcard value to match any value. If a label is a valid wildcard (\*, or the word "any"), then that label will match all values. The labels that accept wildcards are: - * _service_ in an `A` record request: _service_.namespace.svc.zone, e.g. `*.ns.svc.myzone.local` - * _namespace_ in an `A` record request: service._namespace_.svc.zone, e.g. `nginx.*.svc.myzone.local` + * _endpoint_ in an `A` record request: _endpoint_.service.namespace.svc.zone, e.g. `*.nginx.ns.svc.cluster.local` + * _service_ in an `A` record request: _service_.namespace.svc.zone, e.g. `*.ns.svc.cluster.local` + * _namespace_ in an `A` record request: service._namespace_.svc.zone, e.g. `nginx.*.svc.cluster.local` * _port and/or protocol_ in an `SRV` request: __port_.__protocol_.service.namespace.svc.zone., - e.g. `_http.*.service.ns.svc.` + e.g. `_http.*.service.ns.svc.cluster.local` * multiple wild cards are allowed in a single query, e.g. `A` Request `*.*.svc.zone.` or `SRV` request `*.*.*.*.svc.zone.` - * Wildcard can be used also to resolve PODs IPs as `A` records in a Service with ClusterIP. e.g.: `*.service.ns.svc.myzone.local` will return the PODs IPs as the following: + For example, Wildcards can be used to resolve all Endpoints for a Service as `A` records. e.g.: `*.service.ns.svc.myzone.local` will return the Endpoint IPs in the Service `service` in namespace `default`: ``` *.service.default.svc.cluster.local. 5 IN A 192.168.10.10 *.service.default.svc.cluster.local. 5 IN A 192.168.25.15 |