Completed

Fix Python/Kubernetes issue: Python requests package fails to get weboage when run inside a kubernetes pod

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?

Skills: Python, Software Architecture, Kubernetes, Docker

See more: run kubectl inside a pod, run python script in kubernetes, python kubernetes get deployment, kubernetes python client examples, kubernetes api server, execute kubectl command from python, kubectl, kubernetes api curl, fix css issue outlook 2007, fix virtuemart issue, fix browsers issue firefox joomla, fix compatability issue website, fix compatibility issue ie7, fix security issue joomla, fix ie6 issue joomla, fix resolution issue swing, fix ssl issue joomla, fix mail issue linux, javascript fix space issue, fix permission issue uninstall joomla

About the Employer:
( 109 reviews ) Leeds, United Kingdom

Project ID: #26285513

Awarded to:

stoyanovalexandr

Hello, I am a skilled unix and network engineer with 8 years of experience in unix based systems, virtualization like proxmox,esxi,xen,virsh, iptv,zimbra etc. I like to automate system working with additional shell scr More

$30 USD in 1 day
(20 Reviews)
5.8

5 freelancers are bidding on average $24 for this job

abhi98041

Hello, my name is Abhishek. I have gone through your assignment stipulation and this operation fits within my space of judgment. I would like to come on board and start the venture. I am available to begin promptly. More

$20 USD in 7 days
(188 Reviews)
6.4
alonlong

● I have been in software development for 10+ years. ● I am a Golang developer with 5+ years of experience. ● I was responsible for many projects which is based on the microservice architecture and the design and deve More

$30 USD in 2 days
(11 Reviews)
5.0
Armeed300

Dear I have vast experience in these technologies please let me know if you require my services May you get some low ball bids

$20 USD in 7 days
(0 Reviews)
0.0
IgorDeveloper1

Dear Client, I'm a python developer with 5+ year's of experience that specializes me in multi-platform applications using Pyside /puqt, scrapy , pillow matplotlib. Please check my portifolio: [login to view URL] More

$20 USD in 1 day
(0 Reviews)
0.0