2.5.6. Modifying advanced network configuration parameters
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
Modifying the OpenShift Container Platform manifest files created by the installation program is not supported. Applying a manifest file that you create, as in the following procedure, is supported.
install-config.yamlfile and complete any modifications to it.
Use the following command to create manifests:
$ ./openshift-install create manifests --dir=<installation_directory> 1
<installation_directory>, specify the name of the directory that contains the
install-config.yamlfile for your cluster.
Create a file that is named
$ touch <installation_directory>/manifests/cluster-network-03-config.yml 1
<installation_directory>, specify the directory name that contains the
manifests/directory for your cluster.
After creating the file, several 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
cluster-network-03-config.ymlfile 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
specparameter are only an example. Specify your configuration for the Cluster Network Operator in the CR.
The CNO provides default values for the parameters in the CR, so you must specify only the parameters that you want to change.
cluster-network-03-config.ymlfile and quit the text editor.
Optional: Back up the
manifests/cluster-network-03-config.ymlfile. The installation program deletes the
manifests/directory when creating the cluster.