Skip to content

Commit 1db9c48

Browse files
committed
OCPBUGS-37272:updates example for pod connectivity check
1 parent 887d721 commit 1db9c48

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

modules/nw-pod-network-connectivity-implementation.adoc

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,24 @@ metadata:
2929
spec:
3030
# ...
3131
networkDiagnostics: <1>
32-
mode: "" <2>
33-
sourcePlacement: {} <3>
34-
targetPlacement: {} <4>
32+
mode: "All" <2>
33+
sourcePlacement: <3>
34+
nodeSelector:
35+
checkNodes: groupA
36+
tolerations:
37+
- key: myTaint
38+
effect: NoSchedule
39+
operator: Exists
40+
targetPlacement: <4>
41+
nodeSelector:
42+
checkNodes: groupB
43+
tolerations:
44+
- key: myOtherTaint
45+
effect: NoExecute
46+
operator: Exists
3547
----
3648
<1> Specifies the network diagnostics configuration. If a value is not specified or an empty object is specified, and `spec.disableNetworkDiagnostics=true` is set in the `network.operator.openshift.io` custom resource named `cluster`, network diagnostics are disabled. If set, this value overrides `spec.disableNetworkDiagnostics=true`.
3749
<2> Specifies the diagnostics mode. The value can be the empty string, `All`, or `Disabled`. The empty string is equivalent to specifying `All`.
38-
<3> Optional: Specifies a selector for connectivity check source pods.
50+
<3> Optional: Specifies a selector for connectivity check source pods. You can use the `nodeSelector` and `tolerations` fields to further specify the `sourceNode` pods. You do not have to use both `nodeSelector` and `tolerations`, however, for both the source and target pods. These are optional fields that can be omitted.
3951
<4> Optional: Specifies a selector for connectivity check target pods.
52+
You can use the `nodeSelector` and `tolerations` fields to further specify the `targetNode` pods. You do not have to use both `nodeSelector` and `tolerations`, however, for both the source and target pods. These are optional fields that can be omitted.

0 commit comments

Comments
 (0)