liveBook · Manning

NodeBalancer

As explained in Road to Kubernetes

NodeBalancer is a managed load-balancing service that distributes network requests across cluster nodes and provides a static public IP address.

NodeBalancer is a managed load balancer requested through a Kubernetes Service with type LoadBalancer. It distributes requests across cluster nodes and their Pods while providing a static public IP address. section 8.5.1

A NodeBalancer deployment connects several Kubernetes concerns:

  • Kubernetes routes requests from the external load balancer through the Service to matching Pods. section 8.5.1
  • The static public IP can receive a DNS A record for a custom domain. section 8.5.1
  • Managed load balancing typically adds a separate service cost. section 8.5.1
Listing 8.27 Service for the Python app
apiVersion: v1
kind: Service
metadata:
  name: py-book
spec:
  type: LoadBalancer
  ports:
  - port: 80
    targetPort: http-port
  selector:
    app: py-deploy

See a minimal Service manifest that requests a NodeBalancer and forwards public port 80 to the application’s named HTTP port. section 8.5.1

How Road to Kubernetes covers it

How deep it goes
Explains LoadBalancer Services, request routing, static IPs, DNS mapping, and cost, without detailing provider internals.
Examples
Uses Python and Node.js applications with separate LoadBalancer Services and custom domain destinations.
What it assumes
Assumes a managed Kubernetes cluster and introduces external load balancing through the LoadBalancer Service type.
What you can do after
Operate a Kubernetes LoadBalancer Service that exposes an application and maps its static IP to a domain.
How it connects
Connects Kubernetes Services, Pods, Nodes, DNS A records, and custom domains.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Road to Kubernetes. The section links point to the parts of the book it draws on.