I have a kubernetes cluster which contains two pods with two different applications: app1 and app2.
app2 has an API that takes a URL parameter and returns that webpage. Internally it calls that page using python [login to view URL] package.
app1 makes a call to app2's API with a URL so that it can get that webpage using python's [login to view URL] package as well.
If I make a [login to view URL] call from outside the kubernetes cluster form my local system's shell to app2 with a url parameter, it returns the page.
But if if app1 makes the same [login to view URL] call with the same url parameter (app1 is in the same cluster as app2), the [login to view URL] in app2 fails to get the provided url's webpage and crashes.
If I make the same request to app2 from a docker container outside of that cluster, that's successfully returns that page too.
I can't get my head around it why?