Skip to content

openshift/network/serviceNetwork

IP address block for Kubernetes services in the OpenShift cluster

This parameter defines the IP address block used for Kubernetes Service objects in the OpenShift cluster. These are virtual IP addresses used for internal service discovery and load balancing.

Requirements

  • Must not overlap with machineNetwork or clusterNetwork
  • Must be large enough to accommodate all planned services
  • Must not be routable outside the cluster
  • Typically only one CIDR block is specified

Usage

Configure the service network CIDR:

YAML
# Default configuration
- 172.30.0.0/16    # Provides 65,534 service IP addresses

# The service network is used for:
# - Kubernetes ClusterIP services
# - Internal service communication
# - Service discovery within the cluster

Note: While the schema supports multiple CIDRs, OpenShift typically only uses one service network CIDR. Multiple CIDRs should only be used in advanced scenarios with careful planning.

Objects that Reference openshift/network/serviceNetwork

Objects used by openshift/network/serviceNetwork

Not used in current content packs