2019-04-06 08:42:40 +01:00
|
|
|
.\" Generated by Mmark Markdown Processer - mmark.nl
|
|
|
|
|
.TH "COREDNS-FEDERATION" "7" "April 2019" "CoreDNS" "CoreDNS Plugins"
|
|
|
|
|
|
|
|
|
|
.SH NAME
|
|
|
|
|
.PP
|
|
|
|
|
\fIfederation\fP - enables federated queries to be resolved via the kubernetes plugin.
|
|
|
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
.PP
|
|
|
|
|
Enabling this plugin allows
|
|
|
|
|
Federated
|
|
|
|
|
\[la]https://kubernetes.io/docs/tasks/federation/federation-service-discovery/\[ra] queries to be
|
|
|
|
|
resolved via the kubernetes plugin.
|
|
|
|
|
|
|
|
|
|
.PP
|
|
|
|
|
Enabling \fIfederation\fP without also having \fIkubernetes\fP is a noop.
|
|
|
|
|
|
|
|
|
|
.SH SYNTAX
|
|
|
|
|
.PP
|
|
|
|
|
.RS
|
2018-01-04 12:53:07 +00:00
|
|
|
|
2019-04-06 08:42:40 +01:00
|
|
|
.nf
|
|
|
|
|
federation [ZONES...] {
|
2018-01-04 12:53:07 +00:00
|
|
|
NAME DOMAIN
|
2019-02-27 20:32:48 +00:00
|
|
|
upstream
|
2018-01-04 12:53:07 +00:00
|
|
|
}
|
2019-04-06 08:42:40 +01:00
|
|
|
|
2018-01-04 12:53:07 +00:00
|
|
|
.fi
|
2019-04-06 08:42:40 +01:00
|
|
|
.RE
|
|
|
|
|
|
|
|
|
|
.IP \(bu 4
|
|
|
|
|
Each \fBNAME\fP and \fBDOMAIN\fP defines federation membership. One entry for each. A duplicate
|
|
|
|
|
\fBNAME\fP will silently overwrite any previous value.
|
|
|
|
|
.IP \(bu 4
|
|
|
|
|
\fB\fCupstream\fR [\fBADDRESS\fP...] resolve the \fB\fCCNAME\fR target produced by this plugin. CoreDNS
|
|
|
|
|
will resolve External Services against itself.
|
|
|
|
|
|
2018-01-04 12:53:07 +00:00
|
|
|
|
2019-04-06 08:42:40 +01:00
|
|
|
.SH EXAMPLES
|
|
|
|
|
.PP
|
|
|
|
|
Here we handle all service requests in the \fB\fCprod\fR and \fB\fCstage\fR federations.
|
|
|
|
|
|
|
|
|
|
.PP
|
|
|
|
|
.RS
|
|
|
|
|
|
|
|
|
|
.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
|
|
|
}
|
|
|
|
|
}
|
2019-04-06 08:42:40 +01:00
|
|
|
|
2018-01-04 12:53:07 +00:00
|
|
|
.fi
|
2019-04-06 08:42:40 +01:00
|
|
|
.RE
|
|
|
|
|
|
|
|
|
|
.PP
|
2018-01-04 12:53:07 +00:00
|
|
|
Or slightly shorter:
|
|
|
|
|
|
2019-04-06 08:42:40 +01:00
|
|
|
.PP
|
|
|
|
|
.RS
|
|
|
|
|
|
|
|
|
|
.nf
|
|
|
|
|
cluster.local {
|
2018-01-04 12:53:07 +00:00
|
|
|
kubernetes
|
|
|
|
|
federation {
|
2019-04-06 08:42:40 +01:00
|
|
|
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
|
|
|
}
|
|
|
|
|
}
|
2019-04-06 08:42:40 +01:00
|
|
|
|
2018-01-04 12:53:07 +00:00
|
|
|
.fi
|
2019-04-06 08:42:40 +01:00
|
|
|
.RE
|
2018-01-04 12:53:07 +00:00
|
|
|
|