Skip to content

Commit 39076ed

Browse files
authored
Merge pull request #75996 from dfitzmau/OSDOCS-10230
[internal-fix] OSDOCS-10230: Fixed Networking doc callout errors on CP
2 parents a4bd52b + 44ed914 commit 39076ed

11 files changed

+69
-76
lines changed

modules/nw-egress-router-cr.adoc

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,44 +20,37 @@ apiVersion: network.operator.openshift.io/v1
2020
kind: EgressRouter
2121
metadata:
2222
name: <egress_router_name>
23-
namespace: <namespace> <.>
23+
namespace: <namespace> <1>
2424
spec:
25-
addresses: [ <.>
25+
addresses: [ <2>
2626
{
27-
ip: "<egress_router>", <.>
28-
gateway: "<egress_gateway>" <.>
27+
ip: "<egress_router>", <3>
28+
gateway: "<egress_gateway>" <4>
2929
}
3030
]
3131
mode: Redirect
3232
redirect: {
33-
redirectRules: [ <.>
33+
redirectRules: [ <5>
3434
{
3535
destinationIP: "<egress_destination>",
3636
port: <egress_router_port>,
37-
targetPort: <target_port>, <.>
38-
protocol: <network_protocol> <.>
37+
targetPort: <target_port>, <6>
38+
protocol: <network_protocol> <7>
3939
},
4040
...
4141
],
42-
fallbackIP: "<egress_destination>" <.>
42+
fallbackIP: "<egress_destination>" <8>
4343
}
4444
----
4545
// openshift/api:networkoperator/v1/001-egressrouter.crd.yaml
46-
<.> Optional: The `namespace` field specifies the namespace to create the egress router in. If you do not specify a value in the file or on the command line, the `default` namespace is used.
47-
48-
<.> The `addresses` field specifies the IP addresses to configure on the secondary network interface.
49-
50-
<.> The `ip` field specifies the reserved source IP address and netmask from the physical network that the node is on to use with egress router pod. Use CIDR notation to specify the IP address and netmask.
51-
52-
<.> The `gateway` field specifies the IP address of the network gateway.
53-
54-
<.> Optional: The `redirectRules` field specifies a combination of egress destination IP address, egress router port, and protocol. Incoming connections to the egress router on the specified port and protocol are routed to the destination IP address.
55-
56-
<.> Optional: The `targetPort` field specifies the network port on the destination IP address. If this field is not specified, traffic is routed to the same network port that it arrived on.
57-
58-
<.> The `protocol` field supports TCP, UDP, or SCTP.
59-
60-
<.> Optional: The `fallbackIP` field specifies a destination IP address. If you do not specify any redirect rules, the egress router sends all traffic to this fallback IP address. If you specify redirect rules, any connections to network ports that are not defined in the rules are sent by the egress router to this fallback IP address. If you do not specify this field, the egress router rejects connections to network ports that are not defined in the rules.
46+
<1> Optional: The `namespace` field specifies the namespace to create the egress router in. If you do not specify a value in the file or on the command line, the `default` namespace is used.
47+
<2> The `addresses` field specifies the IP addresses to configure on the secondary network interface.
48+
<3> The `ip` field specifies the reserved source IP address and netmask from the physical network that the node is on to use with egress router pod. Use CIDR notation to specify the IP address and netmask.
49+
<4> The `gateway` field specifies the IP address of the network gateway.
50+
<5> Optional: The `redirectRules` field specifies a combination of egress destination IP address, egress router port, and protocol. Incoming connections to the egress router on the specified port and protocol are routed to the destination IP address.
51+
<6> Optional: The `targetPort` field specifies the network port on the destination IP address. If this field is not specified, traffic is routed to the same network port that it arrived on.
52+
<7> The `protocol` field supports TCP, UDP, or SCTP.
53+
<8> Optional: The `fallbackIP` field specifies a destination IP address. If you do not specify any redirect rules, the egress router sends all traffic to this fallback IP address. If you specify redirect rules, any connections to network ports that are not defined in the rules are sent by the egress router to this fallback IP address. If you do not specify this field, the egress router rejects connections to network ports that are not defined in the rules.
6154

6255
.Example egress router specification
6356
[source,yaml,subs="attributes+"]

modules/nw-egress-router-redirect-mode-ovn.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ spec:
3434
port: 8080
3535
type: ClusterIP
3636
selector:
37-
app: egress-router-cni <.>
37+
app: egress-router-cni <1>
3838
----
39-
<.> Specify the label for the egress router. The value shown is added by the Cluster Network Operator and is not configurable.
39+
<1> Specify the label for the egress router. The value shown is added by the Cluster Network Operator and is not configurable.
4040
+
4141
After you create the service, your pods can connect to the service. The egress router pod redirects traffic to the corresponding port on the destination IP address. The connections originate from the reserved source IP address.
4242

modules/nw-metallb-configure-svc.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,27 @@ $ oc describe service <service_name>
5151
Name: <service_name>
5252
Namespace: default
5353
Labels: <none>
54-
Annotations: metallb.universe.tf/address-pool: doc-example <.>
54+
Annotations: metallb.universe.tf/address-pool: doc-example <1>
5555
Selector: app=service_name
56-
Type: LoadBalancer <.>
56+
Type: LoadBalancer <2>
5757
IP Family Policy: SingleStack
5858
IP Families: IPv4
5959
IP: 10.105.237.254
6060
IPs: 10.105.237.254
61-
LoadBalancer Ingress: 192.168.100.5 <.>
61+
LoadBalancer Ingress: 192.168.100.5 <3>
6262
Port: <unset> 80/TCP
6363
TargetPort: 8080/TCP
6464
NodePort: <unset> 30550/TCP
6565
Endpoints: 10.244.0.50:8080
6666
Session Affinity: None
6767
External Traffic Policy: Cluster
68-
Events: <.>
68+
Events: <4>
6969
Type Reason Age From Message
7070
---- ------ ---- ---- -------
7171
Normal nodeAssigned 32m (x2 over 32m) metallb-speaker announcing from node "<node_name>"
7272
----
73-
<.> The annotation is present if you request an IP address from a specific pool.
74-
<.> The service type must indicate `LoadBalancer`.
75-
<.> The load-balancer ingress field indicates the external IP address if the service is assigned correctly.
76-
<.> The events field indicates the node name that is assigned to announce the external IP address.
73+
<1> The annotation is present if you request an IP address from a specific pool.
74+
<2> The service type must indicate `LoadBalancer`.
75+
<3> The load-balancer ingress field indicates the external IP address if the service is assigned correctly.
76+
<4> The events field indicates the node name that is assigned to announce the external IP address.
7777
If you experience an error, the events field indicates the reason for the error.

modules/nw-metallb-operator-limit-speaker-to-nodes.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ metadata:
2323
name: metallb
2424
namespace: metallb-system
2525
spec:
26-
nodeSelector: <.>
26+
nodeSelector: <1>
2727
node-role.kubernetes.io/worker: ""
28-
speakerTolerations: <.>
28+
speakerTolerations: <2>
2929
- key: "Example"
3030
operator: "Exists"
3131
effect: "NoExecute"
3232
----
33-
<.> The example configuration specifies to assign the speaker pods to worker nodes, but you can specify labels that you assigned to nodes or any valid node selector.
34-
<.> In this example configuration, the pod that this toleration is attached to tolerates any taint that matches the `key` value and `effect` value using the `operator`.
33+
<1> The example configuration specifies to assign the speaker pods to worker nodes, but you can specify labels that you assigned to nodes or any valid node selector.
34+
<2> In this example configuration, the pod that this toleration is attached to tolerates any taint that matches the `key` value and `effect` value using the `operator`.
3535

3636
After you apply a manifest with the `spec.nodeSelector` field, you can check the number of pods that the Operator deployed with the `oc get daemonset -n metallb-system speaker` command.
3737
Similarly, you can display the nodes that match your labels with a command like `oc get nodes -l node-role.kubernetes.io/worker=`.

modules/nw-metallb-operator-setting-runtimeclass.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ spec:
4949
controller: demo
5050
speakerConfig:
5151
runtimeClassName: myclass
52-
annotations: <1>
52+
annotations:
5353
speaker: demo
5454
----
5555
<1> This example uses `annotations` to add metadata such as build release information or GitHub pull request information. You can populate annotations with characters that are not permitted in labels. However, you cannot use annotations to identify or select objects.

modules/nw-metallb-troubleshoot-bgp.adoc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ router bgp 64500 <1>
6060
neighbor 10.0.2.3 remote-as 64500 <2>
6161
neighbor 10.0.2.3 bfd profile doc-example-bfd-profile-full <3>
6262
neighbor 10.0.2.3 timers 5 15
63-
neighbor 10.0.2.4 remote-as 64500 <2>
64-
neighbor 10.0.2.4 bfd profile doc-example-bfd-profile-full <3>
63+
neighbor 10.0.2.4 remote-as 64500
64+
neighbor 10.0.2.4 bfd profile doc-example-bfd-profile-full
6565
neighbor 10.0.2.4 timers 5 15
6666
!
6767
address-family ipv4 unicast
@@ -73,7 +73,7 @@ router bgp 64500 <1>
7373
exit-address-family
7474
!
7575
address-family ipv6 unicast
76-
network fc00:f853:ccd:e799::/124 <4>
76+
network fc00:f853:ccd:e799::/124
7777
neighbor 10.0.2.3 activate
7878
neighbor 10.0.2.3 route-map 10.0.2.3-in in
7979
neighbor 10.0.2.4 activate
@@ -91,7 +91,7 @@ ipv6 nht resolve-via-default
9191
line vty
9292
!
9393
bfd
94-
profile doc-example-bfd-profile-full <3>
94+
profile doc-example-bfd-profile-full
9595
transmit-interval 35
9696
receive-interval 35
9797
passive-mode
@@ -102,10 +102,10 @@ bfd
102102
!
103103
end
104104
----
105-
<.> The `router bgp` section indicates the ASN for MetalLB.
106-
<.> Confirm that a `neighbor <ip-address> remote-as <peer-ASN>` line exists for each BGP peer custom resource that you added.
107-
<.> If you configured BFD, confirm that the BFD profile is associated with the correct BGP peer and that the BFD profile appears in the command output.
108-
<.> Confirm that the `network <ip-address-range>` lines match the IP address ranges that you specified in address pool custom resources that you added.
105+
<1> The `router bgp` section indicates the ASN for MetalLB.
106+
<2> Confirm that a `neighbor <ip-address> remote-as <peer-ASN>` line exists for each BGP peer custom resource that you added.
107+
<3> If you configured BFD, confirm that the BFD profile is associated with the correct BGP peer and that the BFD profile appears in the command output.
108+
<4> Confirm that the `network <ip-address-range>` lines match the IP address ranges that you specified in address pool custom resources that you added.
109109

110110
. Display the BGP summary:
111111
+
@@ -135,8 +135,8 @@ RIB entries 1, using 192 bytes of memory
135135
Peers 2, using 29 KiB of memory
136136
137137
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt
138-
10.0.2.3 4 64500 387 389 0 0 0 00:32:02 NoNeg <1>
139-
10.0.2.4 4 64500 0 0 0 0 0 never Active 0 <2>
138+
10.0.2.3 4 64500 387 389 0 0 0 00:32:02 NoNeg
139+
10.0.2.4 4 64500 0 0 0 0 0 never Active 0
140140
141141
Total number of neighbors 2
142142
----
@@ -159,10 +159,10 @@ Replace `203.0.113.200/30` with an IPv4 or IPv6 IP address range from an address
159159
BGP routing table entry for 203.0.113.200/30
160160
Paths: (1 available, best #1, table default)
161161
Advertised to non peer-group peers:
162-
10.0.2.3 <.>
162+
10.0.2.3 <1>
163163
Local
164164
0.0.0.0 from 0.0.0.0 (10.0.1.2)
165165
Origin IGP, metric 0, weight 32768, valid, sourced, local, best (First path received)
166166
Last update: Mon Jan 10 19:49:07 2022
167167
----
168-
<.> Confirm that the output includes an IP address for a BGP peer.
168+
<1> Confirm that the output includes an IP address for a BGP peer.

modules/nw-sriov-hwol-adding-network-attachment-definitions-to-pods.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ After you create the machine config pool, the `SriovNetworkPoolConfig` and `Srio
1717
....
1818
metadata:
1919
annotations:
20-
v1.multus-cni.io/default-network: net-attach-def/net-attach-def <.>
20+
v1.multus-cni.io/default-network: net-attach-def/net-attach-def <1>
2121
----
22-
<.> The value must be the name and namespace of the network attachment definition you created for hardware offloading.
22+
<1> The value must be the name and namespace of the network attachment definition you created for hardware offloading.

modules/nw-sriov-hwol-creating-network-attachment-definition.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ After you define the machine config pool and the SR-IOV network node policy, you
2222
apiVersion: "k8s.cni.cncf.io/v1"
2323
kind: NetworkAttachmentDefinition
2424
metadata:
25-
name: net-attach-def <.>
26-
namespace: net-attach-def <.>
25+
name: net-attach-def <1>
26+
namespace: net-attach-def <2>
2727
annotations:
28-
k8s.v1.cni.cncf.io/resourceName: openshift.io/mlxnics <.>
28+
k8s.v1.cni.cncf.io/resourceName: openshift.io/mlxnics <3>
2929
spec:
3030
config: '{"cniVersion":"0.3.1","name":"ovn-kubernetes","type":"ovn-k8s-cni-overlay","ipam":{},"dns":{}}'
3131
----
32-
<.> The name for your network attachment definition.
33-
<.> The namespace for your network attachment definition.
34-
<.> This is the value of the `spec.resourceName` field you specified in the `SriovNetworkNodePolicy` object.
32+
<1> The name for your network attachment definition.
33+
<2> The namespace for your network attachment definition.
34+
<3> This is the value of the `spec.resourceName` field you specified in the `SriovNetworkNodePolicy` object.
3535

3636
. Apply the configuration for the network attachment definition:
3737
+

modules/nw-sriov-hwol-creating-sriov-policy.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ The following procedure creates an SR-IOV interface for a network interface cont
2525
apiVersion: sriovnetwork.openshift.io/v1
2626
kind: SriovNetworkNodePolicy
2727
metadata:
28-
name: sriov-node-policy <.>
28+
name: sriov-node-policy <1>
2929
namespace: openshift-sriov-network-operator
3030
spec:
31-
deviceType: netdevice <.>
32-
eSwitchMode: "switchdev" <.>
31+
deviceType: netdevice <2>
32+
eSwitchMode: "switchdev" <3>
3333
nicSelector:
3434
deviceID: "1019"
3535
rootDevices:
@@ -43,9 +43,9 @@ spec:
4343
priority: 5
4444
resourceName: mlxnics
4545
----
46-
<.> The name for the custom resource object.
47-
<.> Required. Hardware offloading is not supported with `vfio-pci`.
48-
<.> Required.
46+
<1> The name for the custom resource object.
47+
<2> Required. Hardware offloading is not supported with `vfio-pci`.
48+
<3> Required.
4949

5050
. Apply the configuration for the policy:
5151
+

modules/nw-sriov-hwol-improving-network-traffic-performance.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ spec:
4444
- 0000:d8:00.0
4545
vendor: "15b3"
4646
pfNames:
47-
- ens8f0#0-0 <.>
47+
- ens8f0#0-0 <1>
4848
nodeSelector:
4949
network.operator.openshift.io/smart-nic: ""
50-
numVfs: 6 <.>
50+
numVfs: 6 <2>
5151
priority: 5
5252
resourceName: mgmtvf
5353
----
54-
<.> Replace this device with the appropriate network device for your use case. The `#0-0` part of the `pfNames` value reserves a single virtual function used by OVN-Kubernetes.
55-
<.> The value provided here is an example. Replace this value with one that meets your requirements. For more information, see _SR-IOV network node configuration object_ in the _Additional resources_ section.
54+
<1> Replace this device with the appropriate network device for your use case. The `#0-0` part of the `pfNames` value reserves a single virtual function used by OVN-Kubernetes.
55+
<2> The value provided here is an example. Replace this value with one that meets your requirements. For more information, see _SR-IOV network node configuration object_ in the _Additional resources_ section.
5656

5757
. Create a policy named `sriov-node-policy.yaml` with content such as the following example:
5858
+
@@ -72,15 +72,15 @@ spec:
7272
- 0000:d8:00.0
7373
vendor: "15b3"
7474
pfNames:
75-
- ens8f0#1-5 <.>
75+
- ens8f0#1-5 <1>
7676
nodeSelector:
7777
network.operator.openshift.io/smart-nic: ""
78-
numVfs: 6 <.>
78+
numVfs: 6 <2>
7979
priority: 5
8080
resourceName: mlxnics
8181
----
82-
<.> Replace this device with the appropriate network device for your use case.
83-
<.> The value provided here is an example. Replace this value with the value specified in the `sriov-node-mgmt-vf-policy.yaml` file. For more information, see _SR-IOV network node configuration object_ in the _Additional resources_ section.
82+
<1> Replace this device with the appropriate network device for your use case.
83+
<2> The value provided here is an example. Replace this value with the value specified in the `sriov-node-mgmt-vf-policy.yaml` file. For more information, see _SR-IOV network node configuration object_ in the _Additional resources_ section.
8484
+
8585
[NOTE]
8686
====

0 commit comments

Comments
 (0)