coredns/middleware/federation
Yong Tang 01f6e8cba5 Cleanup in go vet and misspell (#996)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-08-26 17:32:16 -07:00
..
federation.go Cleanup in go vet and misspell (#996) 2017-08-26 17:32:16 -07: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
    }
}