coredns/plugin/federation
2017-11-13 16:15:10 +00:00
..
federation.go Remove the word middleware (#1067) 2017-09-14 09:36:06 +01:00
federation_test.go pkg: add dnstest (#1098) 2017-09-21 15:15:47 +01:00
kubernetes_api_test.go this too 2017-11-13 16:15:10 +00:00
README.md plugin: README.md updates (#1084) 2017-09-15 22:27:55 +01:00
setup.go Remove the word middleware (#1067) 2017-09-14 09:36:06 +01:00
setup_test.go Remove the word middleware (#1067) 2017-09-14 09:36:06 +01:00

federation

federation enables federated queries to be resolved via the kubernetes plugin.

Enabling federation without also having kubernetes is a noop.

Syntax

federation [ZONES...] {
    NAME DOMAIN
  • Each NAME and DOMAIN defines federation membership. One entry for each. A duplicate NAME will silently overwrite any previous value.

Examples

Here we handle all service requests in the prod and stage federations.

. {
    kubernetes cluster.local
    federation cluster.local {
        prod prod.feddomain.com
        staging staging.feddomain.com
    }
}

Or slightly shorter:

cluster.local {
    kubernetes
    federation {
        prod prod.feddomain.com
        staging staging.feddomain.com
    }
}