Skip to content

Subscription channel for Red Hat Advanced Cluster Management operator

Cluster Network Configuration

This parameter defines the IP address blocks used for pod networking in the OpenShift cluster. It includes both the overall pod CIDR and how many IP addresses are allocated to each node (hostPrefix).

Requirements

  • Must not overlap with machineNetwork or serviceNetwork
  • CIDR must be large enough for all planned pods
  • hostPrefix must be larger than CIDR prefix
  • Must account for future cluster growth

Usage

Configure pod network CIDR and host prefix:

# Default configuration
- cidr: 10.128.0.0/14    # Provides ~262k pod IPs
  hostPrefix: 23         # Allocates 512 IPs per node

# The hostPrefix determines how many pod IPs each node gets:
# prefix 23 = 512 pods per node
# prefix 24 = 256 pods per node
# prefix 25 = 128 pods per node

Notes: - hostPrefix must be larger than the CIDR prefix - Multiple CIDRs can be specified for advanced networking - Consider your node capacity when setting hostPrefix