Endpoints
A service does not require a selector, and a service without a selector is how Kubernetes represents a service that's outside of the cluster for the other resources within. To enable this, you create a service without a selector as well as a new resource, an Endpoint, which defines the network location of the remote service.
If you are migrating services into Kubernetes and have some of those services external to the cluster, this provides one way to represent the remote system as a service internally, and if you move it into Kubernetes later, you wouldn't have to change how internal Pods connect or utilize that resource. This is an advanced feature of services, and does not also account for authorization. Another option is to not ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access