Skip to content

Commit d3abcc4

Browse files
authored
Merge pull request #63996 from ShaunaDiaz/OSDOCS-6154
OSDOCS-6154: update networking gateways MicroShift 4.14
2 parents 583270e + 6a40a4e commit d3abcc4

7 files changed

+35
-63
lines changed

modules/microshift-blocking-nodeport-access.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,21 @@ OVN-Kubernetes does not restrict the host interface where a NodePort service can
2020
----
2121
# export NODEPORT=30700
2222
----
23+
2324
. Change the `INTERFACE_IP` value to the IP address from the host interface that you want to block. For example:
2425
+
2526
[source,terminal]
2627
----
2728
# export INTERFACE_IP=192.168.150.33
2829
----
30+
2931
. Insert a new rule in the `nat` table PREROUTING chain to drop all packets that match the destination port and IP address. For example:
3032
+
3133
[source,terminal]
3234
----
3335
$ sudo nft -a insert rule ip nat PREROUTING tcp dport $NODEPORT ip daddr $INTERFACE_IP drop
3436
----
37+
3538
. List the new rule by running the following command:
3639
+
3740
[source,terminal]
@@ -52,6 +55,7 @@ table ip nat {
5255
====
5356
Note the `handle` number of the newly added rule. You need to remove the `handle` number in the following step.
5457
====
58+
5559
. Remove the custom rule with the following sample command:
5660
+
5761
[source,terminal]

modules/microshift-cni.adoc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ A virtual switch named `ext_<node-name>.`
3838

3939
[id="microshift-description-connections-network-topology_{context}"]
4040
=== Description of the connections in the network topology figure
41-
* The north-south traffic between the network service device `enp1s0` and the OVN external switch `ext_microshift-dev`, is provided through the OVS patch port by the gateway bridge `br-ex`.
41+
* The north-south traffic between the network service and the OVN external switch `ext_microshift-dev`, is provided through the host kernel by the gateway bridge `br-ex`.
4242
* The OVN gateway router `GR_microshift-dev` is connected to the external network switch `ext_microshift-dev` through the logical router port 4. Port 4 is attached with the node IP address 192.168.122.14.
4343
* The join switch `join` connects the OVN gateway router `GR_microshift-dev` to the OVN cluster router `ovn_cluster_router`. The IP address range is 100.62.0.0/16.
4444
** The OVN gateway router `GR_microshift-dev` connects to the OVN join switch `join` through the logical router port 3. Port 3 attaches with the internal IP address 100.64.0.2.
@@ -112,7 +112,3 @@ OVN-Kubernetes manifests and startup logic are built into {product-title}. The s
112112
[id="microshift-bridge-mapping_{context}"]
113113
== Bridge mappings
114114
Bridge mappings allow provider network traffic to reach the physical network. Traffic leaves the provider network and arrives at the `br-int` bridge. A patch port between `br-int` and `br-ex` then allows the traffic to traverse to and from the provider network and the edge network. Kubernetes pods are connected to the `br-int` bridge through virtual ethernet pair: one end of the virtual ethernet pair is attached to the pod namespace, and the other end is attached to the `br-int` bridge.
115-
116-
[id="microshift-primary-gateway-interface_{context}"]
117-
=== Primary gateway interface
118-
You can specify the desired host interface name in the `ovn.yaml` config file as `gatewayInterface`. The specified interface is added in OVS bridge br-ex which acts as gateway bridge for the CNI network.

modules/microshift-configuring-ovn.adoc

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,14 @@ $ sudo cp /etc/microshift/ovn.yaml.default /etc/microshift/ovn.yaml
2424
$ cat /etc/microshift/ovn.yaml.default
2525
----
2626
+
27-
.Example 'yaml' configuration file with default values
28-
27+
.Example 'yaml' configuration file with default maximum transmission unit (MTU) value
28+
+
2929
[source,yaml]
3030
----
31-
ovsInit:
32-
disableOVSInit: false
33-
gatewayInterface: "" <1>
3431
mtu: 1400
3532
----
36-
<1> The default value is an empty string that means "not-specified." The CNI network plugin auto-detects to interface with the default route.
3733

38-
. To customize your configuration, use the following table that lists the valid values you can use:
34+
. To customize your configuration, you can change the MTU value. The table that follows provides details:
3935
+
4036
.Supported optional OVN-Kubernetes configurations for {product-title}
4137

@@ -47,46 +43,21 @@ mtu: 1400
4743
|Description
4844
|Example
4945

50-
|`ovsInit.disableOVSInit`
51-
|bool
52-
|false
53-
|Skip configuring OVS bridge `br-ex` in `microshift-ovs-init.service`
54-
|true ^[1]^
55-
56-
|`ovsInit.gatewayInterface`
57-
|Alpha
58-
|eth0
59-
|Ingress that is the API gateway
60-
|eth0
61-
6246
|mtu
6347
|uint32
6448
|auto
6549
|MTU value used for the pods
6650
|1300
6751
|===
6852
+
69-
[.small]
70-
--
71-
1. The OVS bridge is required. When `disableOVSInit` is true, OVS bridge `br-ex` must be configured manually.
72-
+
7353
[IMPORTANT]
7454
====
7555
If you change the `mtu` configuration value in the `ovn.yaml` file, you must restart the host that {product-title} is running on to apply the updated setting.
7656
====
77-
--
78-
57+
+
7958
.Example custom `ovn.yaml` configuration file
80-
59+
+
8160
[source, yaml]
8261
----
83-
ovsInit:
84-
disableOVSInit: true
85-
gatewayInterface: eth0
8662
mtu: 1300
8763
----
88-
89-
[IMPORTANT]
90-
====
91-
When `disableOVSInit` is set to true in the `ovn.yaml` config file, the `br-ex` OVS bridge must be manually configured.
92-
====

modules/microshift-cri-o-container-runtime.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To use an HTTP(S) proxy in `CRI-O`, you need to set the `HTTP_PROXY` and `HTTPS_
1212

1313
. Add the following settings to the `/etc/systemd/system/crio.service.d/00-proxy.conf` file:
1414
+
15-
[source, config]
15+
[source,config]
1616
----
1717
Environment=NO_PROXY="localhost,127.0.0.1"
1818
Environment=HTTP_PROXY="http://$PROXY_USER:$PROXY_PASSWORD@$PROXY_SERVER:$PROXY_PORT/"
@@ -21,14 +21,14 @@ Environment=HTTPS_PROXY="http://$PROXY_USER:$PROXY_PASSWORD@$PROXY_SERVER:$PROXY
2121

2222
. Reload the configuration settings:
2323
+
24-
[source, terminal]
24+
[source,terminal]
2525
----
2626
$ sudo systemctl daemon-reload
2727
----
2828

2929
. Restart the CRI-O service to apply the settings:
3030
+
31-
[source, terminal]
31+
[source,terminal]
3232
----
3333
$ sudo systemctl restart crio
3434
----

modules/microshift-ovs-snapshot.adoc

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,25 @@ A snapshot represents the state and data of OVS interfaces at a specific point i
1111
.Procedure
1212

1313
* To see a snapshot of OVS interfaces from a running {product-title} cluster, use the following command:
14-
15-
[source, terminal]
14+
+
15+
[source,terminal]
1616
----
1717
$ sudo ovs-vsctl show
1818
----
19-
19+
+
2020
.Example OVS interfaces in a running cluster
21-
[source, terminal]
21+
22+
[source,terminal]
2223
----
2324
9d9f5ea2-9d9d-4e34-bbd2-dbac154fdc93
2425
Bridge br-ex
25-
Port enp1s0
26-
Interface enp1s0
27-
type: system
2826
Port br-ex
2927
Interface br-ex
3028
type: internal
3129
Port patch-br-ex_localhost.localdomain-to-br-int <1>
3230
Interface patch-br-ex_localhost.localdomain-to-br-int
3331
type: patch
34-
options: {peer=patch-br-int-to-br-ex_localhost.localdomain} <1>
32+
options: {peer=patch-br-int-to-br-ex_localhost.localdomain} <2>
3533
Bridge br-int
3634
fail_mode: secure
3735
datapath_type: system
@@ -40,19 +38,22 @@ $ sudo ovs-vsctl show
4038
type: patch
4139
options: {peer=patch-br-ex_localhost.localdomain-to-br-int}
4240
Port eebee1ce5568761
43-
Interface eebee1ce5568761 <2>
41+
Interface eebee1ce5568761 <3>
4442
Port b47b1995ada84f4
45-
Interface b47b1995ada84f4 <2>
43+
Interface b47b1995ada84f4 <4>
4644
Port "3031f43d67c167f"
47-
Interface "3031f43d67c167f" <2>
45+
Interface "3031f43d67c167f" <5>
4846
Port br-int
4947
Interface br-int
5048
type: internal
51-
Port ovn-k8s-mp0 <3>
49+
Port ovn-k8s-mp0 <6>
5250
Interface ovn-k8s-mp0
5351
type: internal
5452
ovs_version: "2.17.3"
5553
----
5654
<1> The `patch-br-ex_localhost.localdomain-to-br-int` and `patch-br-int-to-br-ex_localhost.localdomain` are OVS patch ports that connect `br-ex` and `br-int`.
57-
<2> The pod interfaces `eebee1ce5568761`, `b47b1995ada84f4` and `3031f43d67c167f` are named with the first 15 bits of pod sandbox ID and are plugged in the `br-int` bridge.
58-
<3> The OVS internal port for hairpin traffic,`ovn-k8s-mp0` is created by the `ovnkube-master` container.
55+
<2> The `patch-br-ex_localhost.localdomain-to-br-int` and `patch-br-int-to-br-ex_localhost.localdomain` are OVS patch ports that connect `br-ex` and `br-int`.
56+
<3> The pod interface `eebee1ce5568761` is named with the first 15 bits of the pod sandbox ID and is plugged into the `br-int` bridge.
57+
<4> The pod interface `b47b1995ada84f4` is named with the first 15 bits of the pod sandbox ID and is plugged into the `br-int` bridge.
58+
<5> The pod interface `3031f43d67c167f` is named with the first 15 bits of the pod sandbox ID and is plugged into the `br-int` bridge.
59+
<6> The OVS internal port for hairpin traffic,`ovn-k8s-mp0` is created by the `ovnkube-master` container.

modules/microshift-restart-ovnkube-master.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,28 @@ Use the following steps to restart the `ovnkube-master` pod.
2121

2222
. Access the remote cluster by running the following command:
2323
+
24-
[source, terminal]
24+
[source,terminal]
2525
----
2626
$ export KUBECONFIG=$PWD/kubeconfig
2727
----
2828

2929
. Find the name of the `ovnkube-master` pod that you want to restart by running the following command:
3030
+
31-
[source, terminal]
31+
[source,terminal]
3232
----
3333
$ pod=$(oc get pods -n openshift-ovn-kubernetes | awk -F " " '/ovnkube-master/{print $1}')
3434
----
3535

3636
. Delete the `ovnkube-master` pod by running the following command:
3737
+
38-
[source, terminal]
38+
[source,terminal]
3939
----
4040
$ oc -n openshift-ovn-kubernetes delete pod $pod
4141
----
4242

4343
. Confirm that a new `ovnkube-master` pod is running by using the following command:
4444
+
45-
[source, terminal]
45+
[source,terminal]
4646
----
4747
$ oc get pods -n openshift-ovn-kubernetes
4848
----

modules/microshift-rpm-ostree-https.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To use the HTTP(S) proxy in RPM-OStree, set the `http_proxy environment` variabl
1212

1313
. Add this setting to the `/etc/systemd/system/rpm-ostreed.service.d/00-proxy.conf` file by running the following command:
1414
+
15-
[source, terminal]
15+
[source,terminal]
1616
----
1717
Environment="http_proxy=http://$PROXY_USER:$PROXY_PASSWORD@$PROXY_SERVER:$PROXY_PORT/"
1818
----
@@ -21,13 +21,13 @@ Environment="http_proxy=http://$PROXY_USER:$PROXY_PASSWORD@$PROXY_SERVER:$PROXY_
2121

2222
.. Reload the configuration settings by running the following command:
2323
+
24-
[source, terminal]
24+
[source,terminal]
2525
----
2626
$ sudo systemctl daemon-reload
2727
----
2828
.. Restart the rpm-ostree service by running the following command:
2929
+
30-
[source, terminal]
30+
[source,terminal]
3131
----
3232
$ sudo systemctl restart rpm-ostreed.service
3333
----

0 commit comments

Comments
 (0)