ExternalName cleanup (#11326)
* Remove old kube-dns note * ExternalName IP clarification * Add minor edits for clarity * corrections Co-Authored-By: nikopen <42466421+nikopen@users.noreply.github.com>
This commit is contained in:
parent
3ccbb12585
commit
8f6f6731c5
|
|
@ -758,13 +758,10 @@ for supported instance types.
|
||||||
|
|
||||||
### Type ExternalName {#externalname}
|
### Type ExternalName {#externalname}
|
||||||
|
|
||||||
{{< note >}}
|
Services of type ExternalName map a service to a DNS name, not to a typical selector such as
|
||||||
ExternalName Services are available only with `kube-dns` version 1.7 and later.
|
`my-service` or `cassandra`. You specify these services with the `spec.externalName` parameter.
|
||||||
{{< /note >}}
|
|
||||||
|
|
||||||
Services of type ExternalName map a service to a DNS name (specified using
|
This Service definition, for example, maps
|
||||||
the `spec.externalName` parameter) rather than to a typical selector like
|
|
||||||
`my-service` or `cassandra`. This Service definition, for example, would map
|
|
||||||
the `my-service` Service in the `prod` namespace to `my.database.example.com`:
|
the `my-service` Service in the `prod` namespace to `my.database.example.com`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
@ -777,6 +774,10 @@ spec:
|
||||||
type: ExternalName
|
type: ExternalName
|
||||||
externalName: my.database.example.com
|
externalName: my.database.example.com
|
||||||
```
|
```
|
||||||
|
{{< note >}}
|
||||||
|
ExternalName accepts an IPv4 address string, but as a DNS name comprised of digits, not as an IP address. ExternalNames that resemble IPv4 addresses are not resolved by CoreDNS or ingress-nginx because ExternalName
|
||||||
|
is intended to specify a canonical DNS name. To hardcode an IP address, consider headless services.
|
||||||
|
{{< /note >}}
|
||||||
|
|
||||||
When looking up the host `my-service.prod.svc.cluster.local`, the cluster DNS service
|
When looking up the host `my-service.prod.svc.cluster.local`, the cluster DNS service
|
||||||
will return a `CNAME` record with the value `my.database.example.com`. Accessing
|
will return a `CNAME` record with the value `my.database.example.com`. Accessing
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue