## Server Pod ```yaml= apiVersion: v1 kind: Pod metadata: name: iperf-server spec: hostNetwork: true #<--------- UNCOMMENT THIS SETTING IF THE IPERF POD MUST RUN IN THE HOST NETWORK nodeName: iperf-server-node.example.net #<-------- REPLACE THIS WITH THE NODE WHERE IPERF SERVER MUST RUN containers: - name: server image: quay.io/rhn_support_jaliang/iperf-pod ``` ## Client Pod ```yaml= apiVersion: v1 kind: Pod metadata: name: iperf-client spec: hostNetwork: true #<--------- UNCOMMENT THIS SETTING IF THE IPERF POD MUST RUN IN THE HOST NETWORK nodeName: iperf-client-node.example.net #<-------- REPLACE THIS WITH THE NODE WHERE IPERF CLIENT MUST RUN containers: - name: client image: quay.io/rhn_support_jaliang/iperf-pod ``` ## Run the Test Now that the iPerf client and server are running, you must identify the iPerf server Pod IP: ```bash= $ oc get pod iperf-server -o wide NAME READY STATUS RESTARTS AGE IP iperf-server 1/1 Running 0 8s 10.130.2.13 ``` Next, open a remote shell in both Pods and begin the test: Server ```bash $ oc exec -it iperf-server -- iperf3 -i 5 -s ----------------------------------------------------------- Server listening on 5201 ----------------------------------------------------------- ``` Client ```bash= $ oc exec -it iperf-client -- iperf3 -i 5 -t 60 -c $(oc get pod iperf-server -o jsonpath='{.status.podIP}') or $ oc exec -it iperf-client -- iperf3 -i 5 -t 60 -c <iPerf Server Pod IP> ``` Once executing the command in the client Pod, you will see the test begin.