SSL EOF Error when using Python Requests Session SSL EOF Error when using Python Requests Session kubernetes kubernetes

SSL EOF Error when using Python Requests Session


The problem may be in the Alpine Docker image that lacks CA certificates. On your laptop code works as it uses CA certs from you local workstation. I would think that running Docker image locally will fail too - so the problem is not k8s.

Try to add the following line to the Dockerfile:

RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*

It will install CA certs inside the container.