There's more...

The Kubernetes Service has four types: ClusterIP, NodePort, LoadBalancer, and ExternalName. In the How to do it... section in this recipe, we only demonstrate the default type, ClusterIP. The type ClusterIP indicates that the Kubernetes Service is assigned a unique virtual IP in the overlay network, which also means the identity in this Kubernetes cluster. ClusterIP guarantees that the Service is accessible internally.

The following diagram expresses the availability coverage of the types, and their entry points:

Four Service types and their entry points 

For the NodePort type, it covers the ClusterIP's features, has a peer-accessible ...

Get Kubernetes Cookbook, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.