diff options
author | 2019-06-27 21:02:08 +0200 | |
---|---|---|
committer | 2019-06-27 20:02:08 +0100 | |
commit | 41661b0848cb62a13c9e6860016b1db665b0bc32 (patch) | |
tree | 4f133a2dae3b516c6223341fb3ee5de95fde4666 /plugin/k8s_external/README.md | |
parent | c9e3613613352bc5da00fa4bd2925dda5def37fe (diff) | |
download | coredns-41661b0848cb62a13c9e6860016b1db665b0bc32.tar.gz coredns-41661b0848cb62a13c9e6860016b1db665b0bc32.tar.zst coredns-41661b0848cb62a13c9e6860016b1db665b0bc32.zip |
Provide example to utilize k8s_external plugin (#2936)
* Provide example to utilize k8s_external plugin
The example provides a specific use case of k8s_external and may help others to grasp `k8s_external`'s capabilities.
* Update plugin/k8s_external/README.md
Co-Authored-By: Chris O'Haver <cohaver@infoblox.com>
* Update plugin/k8s_external/README.md
Co-Authored-By: Chris O'Haver <cohaver@infoblox.com>
Diffstat (limited to 'plugin/k8s_external/README.md')
-rw-r--r-- | plugin/k8s_external/README.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/plugin/k8s_external/README.md b/plugin/k8s_external/README.md index 3cdf44849..f24c9a771 100644 --- a/plugin/k8s_external/README.md +++ b/plugin/k8s_external/README.md @@ -68,6 +68,22 @@ Enable names under `example.org` to be resolved to in cluster DNS addresses. } ~~~ +With the Corefile above, the following Service will get an `A` record for `test.default.example.org` with IP address `192.168.200.123`. + +~~~ +apiVersion: v1 +kind: Service +metadata: + name: test + namespace: default +spec: + clusterIP: None + externalIPs: + - 192.168.200.123 + type: ClusterIP +~~~ + + # Also See For some background see [resolve external IP address](https://github.com/kubernetes/dns/issues/242). |