ALB Network Mode

An ALB instance could be deployed in two modes: host network mode and container network mode.

Host Network Mode

Directly use the node's network stack, sharing the IP address and port with the node.

In this mode, the load balancer instance directly binds to the node's port, without port mapping or similar container network encapsulation conversion.

Note: To avoid port conflicts, only one ALB instance is allowed to be deployed on a single node.

In host-network mode ALB instance will listen to all the NIC of the node by default.

Advantages:

  1. Best network performance.
  2. Could be accessed by node's IP address.

Disadvantages:

  1. Only one ALB instance is allowed to be deployed on a single node.
  2. Port might conflict with other processes.

Container Network Mode

Unlike host network mode, container network mode deploys ALB using container networking.

Advantages:

  1. Supports deploying multiple ALB instances on a single node.
  2. ALB provides integration with MetalLB, which can provide VIP for ALB.
  3. Port will not conflict with other processes.

Disadvantages:

  1. Slightly lower performance.
  2. Must access ALB through LoadBalancer service.