aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ricardo Katz <rikatz@users.noreply.github.com> 2018-03-13 11:35:29 -0300
committerGravatar Miek Gieben <miek@miek.nl> 2018-03-13 14:35:29 +0000
commit3bb4e659b2d0a9020c76968c82b4b8d776a6059f (patch)
treea9ddf7b5d320267e26a9c12e3eeddb74dd80d9b1
parent3e3d8cc845b8e072efc75043c9aa3df318ec3bf3 (diff)
downloadcoredns-3bb4e659b2d0a9020c76968c82b4b8d776a6059f.tar.gz
coredns-3bb4e659b2d0a9020c76968c82b4b8d776a6059f.tar.zst
coredns-3bb4e659b2d0a9020c76968c82b4b8d776a6059f.zip
Document the service with ClusterIP wildcard (#1605)
This PR documents the trick exposed in coredns/coredns#1357 about using wildcards to get all POD IPs from a service with ClusterIP (as used in 'endpoints')
-rw-r--r--plugin/kubernetes/README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugin/kubernetes/README.md b/plugin/kubernetes/README.md
index 136b301f5..46e32cf2b 100644
--- a/plugin/kubernetes/README.md
+++ b/plugin/kubernetes/README.md
@@ -198,3 +198,10 @@ or the word "any"), then that label will match all values. The labels that acce
* _port and/or protocol_ in an `SRV` request: __port_.__protocol_.service.namespace.svc.zone.,
e.g. `_http.*.service.ns.svc.`
* 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:
+ ```
+*.service.default.svc.cluster.local. 5 IN A 192.168.10.10
+*.service.default.svc.cluster.local. 5 IN A 192.168.25.15
+```
+ This response can be randomized using the `loadbalance` plugin