Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

HowTo: Checking tcp connection from ocp pod to remote host

Angelika Ehlers edited this page Feb 8, 2018 · 1 revision

FYI: Verify tcp connection w/o requiring any tools installed

oc rsh <pod>

timeout 5 bash -c "</dev/tcp/google.ca/443"; echo $?

this returns a 0 if connetion to google.ca on port 443 could be established within timeout period, if it returns anything else connection could not be established.

Clone this wiki locally