mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
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>
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user