How to set two Python flask apps talking to each other in k8s via SSL

Hi all,

I just migrated from k8s hosted on Azure to Digital Ocean. I have two pods - one back end, offering a REST API to another pod, a front web app. Both are Python 3.7 Flask applications. When I do a web call from Postman (from my PC) I can hit the REST api pod successfully. However when the web pod hits it, I get: File “/usr/local/lib/python3.7/”, line 1139, in do_handshake self._sslobj.do_handshake() ConnectionResetError: [Errno 104] Connection reset by peer

I have installed a new wildcard certificate. There is also an nginx and gunicorn server that run in docker container. Does anyone have any clue why I am getting the 104 error? Thank you very much in advance.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer