Federation service discovery doc fixes (#3560)

* Fix rendering issue in federation doc

See odd line break in "Discovering a federated service" in https://kubernetes.io/docs/concepts/cluster-administration/federation-service-discovery/#discovering-a-federated-service

* Update federation-service-discovery.md

Fix some egregious table formatting also

* Update federation-service-discovery.md
This commit is contained in:
craigbox
2017-04-27 23:55:34 +01:00
committed by Andrew Chen
parent a562a36c39
commit 88f83fd49a
@@ -191,7 +191,7 @@ nameServers:
$ gcloud dns record-sets list --zone example-dot-com $ gcloud dns record-sets list --zone example-dot-com
NAME TYPE TTL DATA NAME TYPE TTL DATA
example.com. NS 21600 ns-cloud-e1.googledomains.com., ns-cloud-e2.googledomains.com. example.com. NS 21600 ns-cloud-e1.googledomains.com., ns-cloud-e2.googledomains.com.
example.com. SOA 21600 ns-cloud-e1.googledomains.com. cloud-dns-hostmaster.google.com. 1 21600 3600 1209600 300 example.com. OA 21600 ns-cloud-e1.googledomains.com. cloud-dns-hostmaster.google.com. 1 21600 3600 1209600 300
nginx.mynamespace.myfederation.svc.example.com. A 180 104.197.246.190, 130.211.57.243, 104.196.14.231, 104.199.136.89,... nginx.mynamespace.myfederation.svc.example.com. A 180 104.197.246.190, 130.211.57.243, 104.196.14.231, 104.199.136.89,...
nginx.mynamespace.myfederation.svc.us-central1-a.example.com. A 180 104.197.247.191 nginx.mynamespace.myfederation.svc.us-central1-a.example.com. A 180 104.197.247.191
nginx.mynamespace.myfederation.svc.us-central1-b.example.com. A 180 104.197.244.180 nginx.mynamespace.myfederation.svc.us-central1-b.example.com. A 180 104.197.244.180
@@ -210,11 +210,12 @@ nginx.mynamespace.myfederation.svc.europe-west1-d.example.com. CNAME 180
Note: If your Federation is configured to use AWS Route53, you can use one of the equivalent AWS tools, for example: Note: If your Federation is configured to use AWS Route53, you can use one of the equivalent AWS tools, for example:
``` shell ``` shell
$aws route53 list-hosted-zones $ aws route53 list-hosted-zones
``` ```
and and
``` shell ``` shell
$aws route53 list-resource-record-sets --hosted-zone-id Z3ECL0L9QLOVBX $ aws route53 list-resource-record-sets --hosted-zone-id Z3ECL0L9QLOVBX
``` ```
Whatever DNS provider you use, any DNS query tool (for example 'dig' Whatever DNS provider you use, any DNS query tool (for example 'dig'
@@ -283,8 +284,7 @@ to this minor technical difference).
But if the service does not exist in the local cluster (or it exists But if the service does not exist in the local cluster (or it exists
but has no healthy backend pods), the DNS query is automatically but has no healthy backend pods), the DNS query is automatically
expanded to expanded to ```"nginx.mynamespace.myfederation.svc.us-central1-f.example.com"```
```"nginx.mynamespace.myfederation.svc.us-central1-f.example.com"```
(i.e. logically "find the external IP of one of the shards closest to (i.e. logically "find the external IP of one of the shards closest to
my availability zone"). This expansion is performed automatically by my availability zone"). This expansion is performed automatically by
KubeDNS, which returns the associated CNAME record. This results in KubeDNS, which returns the associated CNAME record. This results in