Skip to content

Commit c3228b0

Browse files
authored
Merge pull request #30813 from jboxman/cno-config-during-installation
Refresh cluster network configuration
2 parents 44ea50b + b29a8f0 commit c3228b0

11 files changed

+308
-196
lines changed

installing/installing_aws/installing-aws-network-customizations.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ include::modules/ssh-agent-using.adoc[leveloffset=+1]
5454

5555
include::modules/installation-obtaining-installer.adoc[leveloffset=+1]
5656

57+
include::modules/nw-network-config.adoc[leveloffset=+1]
58+
5759
include::modules/installation-initializing.adoc[leveloffset=+1]
5860

5961
include::modules/installation-configuration-parameters.adoc[leveloffset=+2]
@@ -64,6 +66,7 @@ include::modules/installation-aws-config-yaml.adoc[leveloffset=+2]
6466
// include::modules/installation-configure-proxy.adoc[leveloffset=+2]
6567

6668
// Network Operator specific configuration
69+
include::modules/nw-operator-cr.adoc[leveloffset=+1]
6770
include::modules/nw-modifying-operator-install-config.adoc[leveloffset=+1]
6871

6972
[NOTE]
@@ -73,8 +76,6 @@ For more information on using a Network Load Balancer (NLB) on AWS, see xref:../
7376

7477
include::modules/nw-aws-nlb-new-cluster.adoc[leveloffset=+1]
7578

76-
include::modules/nw-operator-cr.adoc[leveloffset=+1]
77-
7879
include::modules/configuring-hybrid-ovnkubernetes.adoc[leveloffset=+1]
7980

8081
[NOTE]

installing/installing_azure/installing-azure-network-customizations.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ include::modules/installation-azure-config-yaml.adoc[leveloffset=+2]
4545
// include::modules/installation-configure-proxy.adoc[leveloffset=+2]
4646

4747
// Network Operator specific configuration
48+
include::modules/nw-network-config.adoc[leveloffset=+1]
4849
include::modules/nw-modifying-operator-install-config.adoc[leveloffset=+1]
4950
include::modules/nw-operator-cr.adoc[leveloffset=+1]
5051
include::modules/configuring-hybrid-ovnkubernetes.adoc[leveloffset=+1]

installing/installing_bare_metal/installing-bare-metal-network-customizations.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ include::modules/installation-initializing-manual.adoc[leveloffset=+1]
4848
include::modules/installation-bare-metal-config-yaml.adoc[leveloffset=+2]
4949

5050
// Network Operator specific configuration
51-
51+
include::modules/nw-network-config.adoc[leveloffset=+1]
5252
include::modules/nw-modifying-operator-install-config.adoc[leveloffset=+1]
5353
include::modules/nw-operator-cr.adoc[leveloffset=+1]
5454

installing/installing_gcp/installing-gcp-network-customizations.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ include::modules/installation-gcp-config-yaml.adoc[leveloffset=+2]
5252
// include::modules/installation-configure-proxy.adoc[leveloffset=+2]
5353

5454
// Network Operator specific configuration
55+
include::modules/nw-network-config.adoc[leveloffset=+1]
5556
include::modules/nw-modifying-operator-install-config.adoc[leveloffset=+1]
5657
include::modules/nw-operator-cr.adoc[leveloffset=+1]
5758

installing/installing_vmc/installing-vmc-network-customizations.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ include::modules/installation-configuration-parameters.adoc[leveloffset=+2]
4444
include::modules/installation-installer-provisioned-vsphere-config-yaml.adoc[leveloffset=+2]
4545

4646
// begin network customization
47+
include::modules/nw-network-config.adoc[leveloffset=+1]
4748
include::modules/nw-modifying-operator-install-config.adoc[leveloffset=+1]
4849
include::modules/nw-operator-cr.adoc[leveloffset=+1]
4950
// end network customization

installing/installing_vsphere/installing-vsphere-installer-provisioned-network-customizations.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ include::modules/installation-configuration-parameters.adoc[leveloffset=+2]
4646
include::modules/installation-installer-provisioned-vsphere-config-yaml.adoc[leveloffset=+2]
4747

4848
// begin network customization
49+
include::modules/nw-network-config.adoc[leveloffset=+1]
4950
include::modules/nw-modifying-operator-install-config.adoc[leveloffset=+1]
5051
include::modules/nw-operator-cr.adoc[leveloffset=+1]
5152
// end network customization

installing/installing_vsphere/installing-vsphere-network-customizations.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ include::modules/installation-initializing-manual.adoc[leveloffset=+1]
5353
include::modules/installation-vsphere-config-yaml.adoc[leveloffset=+2]
5454

5555
// Network Operator specific configuration
56-
56+
include::modules/nw-network-config.adoc[leveloffset=+1]
5757
include::modules/nw-modifying-operator-install-config.adoc[leveloffset=+1]
5858
include::modules/nw-operator-cr.adoc[leveloffset=+1]
5959

modules/nw-modifying-operator-install-config.adoc

Lines changed: 42 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,10 @@ ifeval::["{context}" == "installing-vmc-network-customizations-user-infra"]
2222
endif::[]
2323

2424
[id="modifying-nwoperator-config-startup_{context}"]
25-
= Modifying advanced network configuration parameters
25+
= Specifying advanced network configuration
2626

27-
You can modify the advanced network configuration parameters only before you
28-
install the cluster. Advanced configuration customization lets you integrate
29-
your cluster into your existing network environment by specifying an MTU or
30-
VXLAN port, by allowing customization of
31-
link:https://kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/[kube-proxy]
32-
settings, and by specifying a different `mode` for the `openshiftSDNConfig`
33-
parameter.
27+
You can use advanced configuration customization to integrate your cluster into your existing network environment by specifying additional configuration for your cluster network provider.
28+
You can specify advanced network configuration only before you install the cluster.
3429

3530
[IMPORTANT]
3631
====
@@ -50,64 +45,64 @@ endif::ignition-config[]
5045
+
5146
[source,terminal]
5247
----
53-
$ ./openshift-install create manifests --dir=<installation_directory> <1>
48+
$ ./openshift-install create manifests --dir=<installation_directory>
5449
----
55-
<1> For `<installation_directory>`, specify the name of the directory that
56-
contains the `install-config.yaml` file for your cluster.
50+
+
51+
--
52+
where:
53+
54+
`<installation_directory>`:: Specifies the name of the directory that contains the `install-config.yaml` file for your cluster.
55+
--
5756

58-
. Create a file that is named `cluster-network-03-config.yml` in the
59-
`<installation_directory>/manifests/` directory:
57+
. Create a stub manifest file for the advanced network configuration that is named `cluster-network-03-config.yml` in the `<installation_directory>/manifests/` directory:
6058
+
6159
[source,terminal]
6260
----
63-
$ touch <installation_directory>/manifests/cluster-network-03-config.yml <1>
61+
$ cat <<EOF > <installation_directory>/manifests/cluster-network-03-config.yml
62+
apiVersion: operator.openshift.io/v1
63+
kind: Network
64+
metadata:
65+
name: cluster
66+
spec:
67+
EOF
6468
----
65-
<1> For `<installation_directory>`, specify the directory name that contains the
66-
`manifests/` directory for your cluster.
6769
+
68-
After creating the file, several network configuration files are in the
69-
`manifests/` directory, as shown:
70-
+
71-
[source,terminal]
72-
----
73-
$ ls <installation_directory>/manifests/cluster-network-*
74-
----
70+
--
71+
where:
72+
73+
`<installation_directory>`:: Specifies the directory name that contains the
74+
`manifests/` directory for your cluster.
75+
--
76+
77+
. Open the `cluster-network-03-config.yml` file in an editor and specify the advanced network configuration for your cluster, such as in the following examples:
7578
+
76-
.Example output
77-
[source,terminal]
79+
--
80+
.Specify a different VXLAN port for the OpenShift SDN network provider
81+
[source,yaml]
7882
----
79-
cluster-network-01-crd.yml
80-
cluster-network-02-config.yml
81-
cluster-network-03-config.yml
83+
apiVersion: operator.openshift.io/v1
84+
kind: Network
85+
metadata:
86+
name: cluster
87+
spec:
88+
defaultNetwork:
89+
openshiftSDNConfig:
90+
vxlanPort: 4800
8291
----
8392

84-
. Open the `cluster-network-03-config.yml` file in an editor and enter a custom resource (CR) that
85-
describes the Operator configuration you want:
86-
+
93+
.Enable IPsec for the OVN-Kubernetes network provider
8794
[source,yaml]
8895
----
8996
apiVersion: operator.openshift.io/v1
9097
kind: Network
9198
metadata:
9299
name: cluster
93-
spec: <1>
94-
clusterNetwork:
95-
- cidr: 10.128.0.0/14
96-
hostPrefix: 23
97-
serviceNetwork:
98-
- 172.30.0.0/16
100+
spec:
99101
defaultNetwork:
100-
type: OpenShiftSDN
101-
openshiftSDNConfig:
102-
mode: NetworkPolicy
103-
mtu: 1450
104-
vxlanPort: 4789
102+
ovnKubernetesConfig:
103+
ipsecConfig: {}
105104
----
106-
<1> The parameters for the `spec` parameter are only an example. Specify your
107-
configuration for the Cluster Network Operator in the CR.
108-
+
109-
The CNO provides default values for the parameters in the CR, so you must
110-
specify only the parameters that you want to change.
105+
--
111106

112107
. Save the `cluster-network-03-config.yml` file and quit the text editor.
113108
. Optional: Back up the `manifests/cluster-network-03-config.yml` file. The

modules/nw-network-config.adoc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// TODO - possibly delete this file
2+
// Or does it add actual value?
3+
4+
// Module included in the following assemblies:
5+
//
6+
// * networking/cluster-network-operator.adoc
7+
// * installing/installing_aws/installing-aws-network-customizations.adoc
8+
// * installing/installing_azure/installing-azure-network-customizations.adoc
9+
// * installing/installing_bare_metal/installing-bare-metal-network-customizations.adoc
10+
// * installing/installing_vsphere/installing-vsphere-network-customizations.adoc
11+
// * installing/installing_vsphere/installing-vsphere-installer-provisioned-network-customizations.adoc
12+
// * installing/installing_gcp/installing-gcp-network-customizations.adoc
13+
14+
[id="nw-network-config_{context}"]
15+
= Network configuration phases
16+
17+
When specifying a cluster configuration prior to installation, there are several phases in the installation procedures when you can modify the network configuration:
18+
19+
Phase 1:: After entering the `openshift-install create install-config` command. In the `install-config.yaml` file, you can customize the following network-related fields:
20+
+
21+
* `networking.networkType`
22+
* `networking.clusterNetwork`
23+
* `networking.serviceNetwork`
24+
* `networking.machineNetwork`
25+
+
26+
For more information on these fields, refer to "Installation configuration parameters".
27+
28+
Phase 2:: After entering the `openshift-install create manifests` command. If you must specify advanced network configuration, during this phase you can define a customized Cluster Network Operator manifest with only the fields you want to modify.
29+
30+
You cannot override the values specified in phase 1 in the `install-config.yaml` file during phase 2. However, you can further customize the cluster network provider during phase 2.

0 commit comments

Comments
 (0)