coredns/middleware/federation
Miek Gieben 8931ede142 core: hide registerHandler (#964)
* core: hide registerHandler

Remove RegisterHandler and just make it implicit when we look at the
handler compilation step.

* Rename GetHandler to just Handler

Update callers and make auto check Hander in OnStartup.

* Up test coverage in erratic

* up test coverage
2017-08-22 14:21:42 +01:00
..
federation.go Move nonwriter to mw/pkg/nonwriter (#948) 2017-08-19 17:28:42 +01:00
federation_test.go mw/federation: add federation back as separate mw for k8s (#929) 2017-08-18 14:45:20 +01:00
kubernetes_api_test.go mw/federation: add federation back as separate mw for k8s (#929) 2017-08-18 14:45:20 +01:00
README.md mw/federation: add federation back as separate mw for k8s (#929) 2017-08-18 14:45:20 +01:00
setup.go core: hide registerHandler (#964) 2017-08-22 14:21:42 +01:00
setup_test.go mw/federation: add federation back as separate mw for k8s (#929) 2017-08-18 14:45:20 +01:00

federation

The federation middleware enables federated queries to be resolved via the kubernetes middleware.

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
    }
}