You can modify the advanced network configuration parameters only before you
install the cluster. Advanced configuration customization lets you integrate
your cluster into your existing network environment by specifying an MTU or
VXLAN port, by allowing customization of
kube-proxy
settings, and by specifying a different mode
for the openshiftSDNConfig
parameter.
Important
|
Modifying the {product-title} manifest files directly is not supported. |
-
Generate the
install-config.yaml
file and complete any modifications to it.
-
Use the following command to create manifests:
$ ./openshift-install create manifests --dir=<installation_directory> (1)
-
For
<installation_directory>
, specify the name of the directory that contains theinstall-config.yaml
file for your cluster.
-
-
Create a file that is named
cluster-network-03-config.yml
in the<installation_directory>/manifests/
directory:$ touch <installation_directory>/manifests/cluster-network-03-config.yml (1)
-
For
<installation_directory>
, specify the directory name that contains themanifests/
directory for your cluster.After creating the file, three network configuration files are in the
manifests/
directory, as shown:$ ls <installation_directory>/manifests/cluster-network-* cluster-network-01-crd.yml cluster-network-02-config.yml cluster-network-03-config.yml
-
-
Open the
cluster-network-03-config.yml
file in an editor and enter a CR that describes the Operator configuration you want:apiVersion: operator.openshift.io/v1 kind: Network metadata: name: cluster spec: (1) clusterNetwork: - cidr: 10.128.0.0/14 hostPrefix: 23 serviceNetwork: - 172.30.0.0/16 defaultNetwork: type: OpenShiftSDN openshiftSDNConfig: mode: NetworkPolicy mtu: 1450 vxlanPort: 4789
-
The parameters for the
spec
field are only an example. Specify your configuration for the Network Operator in the CR.The Network Operator provides default values for the parameters in the CR, so you must specify only the parameters that you want to change in the
Network.operator.openshift.io
CR.
-
-
Save the
cluster-network-03-config.yml
file and quit the text editor. -
Optional: Back up the
manifests/cluster-network-03-config.yml
file. The installation program deletes themanifests/
directory when creating the cluster.