My backend runs on openshift and makes get requests to other openshift clusters via kubernetes python client. I am having an issue where requests hang until the default timeout value is reached. I have done some tests in the pod to see if it can reach other openshift clusters and discovered the following:
requests.get("some_other_cluster_api_url")
will hang and return correctly in 2 mins, but requests.get("some_other_cluster_api_url", timeout=1)
returns correctly in 1 second. Why does the request not return immediately in the first case?
Edit: curl also instantly returns the right response