<p>I'm looking the way to define <strong>externalIP</strong> range during Openshift cluster installation ( via declarations in install-config.yaml ).</p>
<p>Openshift docs for 4.3 and later version ( <a href="https://docs.openshift.com/container-platform/4.3/installing/installing_bare_metal/installing-bare-metal.html#installation-bare-metal-config-yaml_installing-bare-metal" rel="nofollow noreferrer">linky</a> ) did not provide any fields for that.</p>
<p>Older definition ( externalIPNetworkCIDR ) from 3.5 ( <a href="https://docs.openshift.com/container-platform/3.5/admin_guide/tcp_ingress_external_ports.html#service-externalip" rel="nofollow noreferrer">linky</a> ) doesn't seems to work ether.</p>

Andy
<p>actually you can:</p>
<p>first create the openshift install manifests</p>
<pre><code>./openshift-install create manifests --dir=&lt;installation_directory&gt;
</code></pre>
<p>check the output:</p>
<pre><code>ls &lt;installation_directory&gt;/manifests/cluster-network-*

cluster-network-01-crd.yml
cluster-network-02-config.yml
cluster-network-03-config.yml
</code></pre>
<p>edit this file cluster-network-03-config.yml:</p>
<pre><code>apiVersion: operator.openshift.io/v1
kind: Network
metadata:
  name: cluster
spec: 
  clusterNetwork:
  - cidr: 10.128.0.0/14
    hostPrefix: 23
  externalIP:
    autoAssignCIDRs:
      - 10.0.0.0/16
    policy:
      allowedCIDRs:
        - 10.0.0.0/16
  serviceNetwork:
  - 172.30.0.0/16
  defaultNetwork:
    type: OpenShiftSDN
    openshiftSDNConfig:
      mode: NetworkPolicy
      mtu: 1450
      vxlanPort: 4789
</code></pre>
<p>proceed with the install route:</p>
<pre><code>./openshift-install create ignition-configs --dir=&lt;installation_directory&gt;
</code></pre>
<p>maybe to note that this is the way you can configure basically everything at cluster install :)</p>
<p>in install-config.yaml directly its not possible, i rised a github issue a few months ago but it gained no views:
<a href="https://github.com/openshift/installer/issues/4275" rel="nofollow noreferrer">https://github.com/openshift/installer/issues/4275</a></p>
<p>most of the knowledge coming from here:
<a href="https://docs.openshift.com/container-platform/4.6/installing/installing_bare_metal/installing-bare-metal-network-customizations.html" rel="nofollow noreferrer">https://docs.openshift.com/container-platform/4.6/installing/installing_bare_metal/installing-bare-metal-network-customizations.html</a></p>
