Skip to content

Latest commit

 

History

History
86 lines (76 loc) · 2.7 KB

nw-modifying-operator-install-config.adoc

File metadata and controls

86 lines (76 loc) · 2.7 KB

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 openshiftSDNConfig parameter.

Important

Modifying the {product-title} manifest files directly is not supported.

Prerequisites
  • Generate the install-config.yaml file and complete any modifications to it.

Procedure
  1. Use the following command to create manifests:

    $ ./openshift-install create manifests --dir=<installation_directory> (1)
    1. For <installation_directory>, specify the name of the directory that contains the install-config.yaml file for your cluster.

  2. 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)
    1. For <installation_directory>, specify the directory name that contains the manifests/ 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
  3. 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
    1. 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.

  4. Save the cluster-network-03-config.yml file and quit the text editor.

  5. Optional: Back up the manifests/cluster-network-03-config.yml file. The installation program deletes the manifests/ directory when creating the cluster.