Exposing a service

To allow external clients and systems to communicate with Kubernetes services, you must expose the service to the outside world. In true Kubernetes style, there are a variety of options available to achieve this, which are controlled by Kubernetes ServiceTypes:

  • Node ports: This service type maps an external port on each Kubernetes node to the internal cluster IP and port configured for the service. This creates several external connection points for your service that may change as nodes come and go, making it difficult to create a stable external service endpoint.
  • Load balancer: Represents an external dedicated Layer 4 (TCP or UDP) load balancer that is mapped exclusively to your service. The actual load balancer that ...

Get Docker on Amazon Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.