Services, load balancing, and networking

Kubernetes networking follows an IP-per-Pod model in which every Pod gets its own IP address and Pods communicate across nodes without NAT.

Kubernetes networking follows an IP-per-Pod model. Every Pod gets its own IP address, and Pods communicate with each other across nodes without network address translation (NAT). The network plugin implements this model. Because Pod IP addresses change when Pods are replaced, you reach a workload through a stable abstraction instead of a Pod address.

Kubernetes provides the following networking building blocks.

Table 1. Kubernetes networking objects
ObjectPurpose
ServiceGives a set of Pods a stable virtual IP address and DNS name, and load balances traffic to them. Types include ClusterIP, NodePort, and LoadBalancer.
IngressRoutes external HTTP and HTTPS traffic to Services. An ingress controller implements it.
Gateway APIA newer, more expressive API for routing traffic into a cluster.
EndpointSliceTracks the network endpoints that back a Service.
NetworkPolicyControls which Pods can communicate with each other.

In Cloudera Cloud Factory, a Service of type LoadBalancer is backed by the load balancing of the cloud infrastructure. For the ways to expose applications, see Ways to expose applications in Exposing applications.

Key defaults and limits

  • Kubernetes supports dual-stack (IPv4 and IPv6) networking for Pods and Services.
  • Topology-aware routing and the Service internal traffic policy let you keep traffic close to its source.
  • A Service selects Pods by label. A Service without a selector does not create endpoints automatically.

For more information, see Services, Load Balancing, and Networking.