mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
49 lines
2.3 KiB
Plaintext
49 lines
2.3 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * networking/verifying-connectivity-endpoint.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="nw-pod-network-connectivity-configuration_{context}"]
|
|
= Configuring pod connectivity check placement
|
|
|
|
As a cluster administrator, you can configure which nodes the connectivity check pods run by modifying the `network.config.openshift.io` object named `cluster`.
|
|
|
|
.Prerequisites
|
|
|
|
* Install the {oc-first}.
|
|
|
|
.Procedure
|
|
|
|
. Edit the connectivity check configuration by entering the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc edit network.config.openshift.io cluster
|
|
----
|
|
|
|
. In the text editor, update the `networkDiagnostics` stanza to specify the node selectors that you want for the source and target pods.
|
|
|
|
. Save your changes and exit the text editor.
|
|
|
|
.Verification
|
|
|
|
* Verify that the source and target pods are running on the intended nodes by entering the following command:
|
|
|
|
[source,terminal]
|
|
----
|
|
$ oc get pods -n openshift-network-diagnostics -o wide
|
|
----
|
|
|
|
.Example output
|
|
[source,text]
|
|
----
|
|
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
|
|
network-check-source-84c69dbd6b-p8f7n 1/1 Running 0 9h 10.131.0.8 ip-10-0-40-197.us-east-2.compute.internal <none> <none>
|
|
network-check-target-46pct 1/1 Running 0 9h 10.131.0.6 ip-10-0-40-197.us-east-2.compute.internal <none> <none>
|
|
network-check-target-8kwgf 1/1 Running 0 9h 10.128.2.4 ip-10-0-95-74.us-east-2.compute.internal <none> <none>
|
|
network-check-target-jc6n7 1/1 Running 0 9h 10.129.2.4 ip-10-0-21-151.us-east-2.compute.internal <none> <none>
|
|
network-check-target-lvwnn 1/1 Running 0 9h 10.128.0.7 ip-10-0-17-129.us-east-2.compute.internal <none> <none>
|
|
network-check-target-nslvj 1/1 Running 0 9h 10.130.0.7 ip-10-0-89-148.us-east-2.compute.internal <none> <none>
|
|
network-check-target-z2sfx 1/1 Running 0 9h 10.129.0.4 ip-10-0-60-253.us-east-2.compute.internal <none> <none>
|
|
----
|