April 2018
Intermediate to advanced
374 pages
8h 35m
English
There is a variant to the preceding Endpoint definition that simply provides a DNS reference, called an ExternalName service. Like the Endpoint oriented service, it doesn’t include a selector, but also does not include any port references. Instead, it simply defines an external DNS entry that can be used as a service definition.
The following example provides a Service interface inside Kubernetes to the external DNS entry my.rest.api.example.com:
kind: ServiceapiVersion: v1metadata: name: another-remote-service namespace: defaultspec: type: ExternalName externalName: my.rest.api.example.com
Unlike the other services, which provide TCP and UDP (Layer 4 on the ISO network stack) forwarding, the ExternalName only ...
Read now
Unlock full access