2018-01-04 12:53:07 +00:00
. \" generated with Ronn/v0.7.3
. \" http://github.com/rtomayko/ronn/tree/0.7.3
.
2019-03-30 13:56:52 +00:00
.TH "COREDNS\-FEDERATION" "7" "March 2019" "CoreDNS" "CoreDNS plugins"
2018-01-04 12:53:07 +00:00
.
.SH "NAME"
2018-01-10 11:45:12 +00:00
\fI federation\fR \- enables federated queries to be resolved via the kubernetes plugin\.
2018-01-04 12:53:07 +00:00
.
.SH "DESCRIPTION"
2018-01-10 11:45:12 +00:00
Enabling this plugin allows Federated \fI https://kubernetes\. io/docs/tasks/federation/federation\- service\- discovery/\fR queries to be resolved via the kubernetes plugin\.
.
.P
2018-01-04 12:53:07 +00:00
Enabling \fI federation\fR without also having \fI kubernetes\fR is a noop\.
.
.SH "SYNTAX"
.
.nf
federation [ZONES\. \. \. ] {
NAME DOMAIN
2019-02-27 20:32:48 +00:00
upstream
2018-01-04 12:53:07 +00:00
}
.
.fi
.
.IP "\(bu" 4
Each \fB NAME\fR and \fB DOMAIN\fR defines federation membership\. One entry for each\. A duplicate \fB NAME\fR will silently overwrite any previous value\.
.
2018-10-18 09:47:03 +01:00
.IP "\(bu" 4
2019-02-27 20:32:48 +00:00
\fB upstream\fR [\fB ADDRESS\fR \. \. \. ] resolve the \fB CNAME\fR target produced by this plugin\. CoreDNS will resolve External Services against itself\.
2018-10-18 09:47:03 +01:00
.
2018-01-04 12:53:07 +00:00
.IP "" 0
.
.SH "EXAMPLES"
Here we handle all service requests in the \fB prod\fR and \fB stage\fR federations\.
.
.IP "" 4
.
.nf
\& \. {
kubernetes cluster\. local
federation cluster\. local {
prod prod\. feddomain\. com
staging staging\. feddomain\. com
2018-10-18 09:47:03 +01:00
upstream
2018-01-04 12:53:07 +00:00
}
}
.
.fi
.
.IP "" 0
.
.P
Or slightly shorter:
.
.IP "" 4
.
.nf
cluster\. local {
kubernetes
federation {
prod prod\. feddomain\. com
staging staging\. feddomain\. com
2018-10-18 09:47:03 +01:00
upstream
2018-01-04 12:53:07 +00:00
}
}
.
.fi
.
.IP "" 0