coredns/middleware/federation
2017-09-07 08:47:58 -04:00
..
federation.go mw/federation: use original qname in all responses (#1033) 2017-09-07 08:47:58 -04: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 mw/autopath: correct type for type switch (#1029) 2017-09-06 18:28:41 -04:00
setup_test.go mw/federation: correct parse (#1027) 2017-09-06 22:25:05 +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
    }
}