Hello! I’m working on deploying a python docker container to Kubernetes, but I keep getting this error when the bot tries to connect to Discord:
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host discord.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: EE certificate key too weak (_ssl.c:1006)')]
How can I give the docker container access to the wider internet? I don’t believe it’s a problem with the certs, since I have it running fine on ubuntu, unless there’s a substantial difference between debian/ubuntu’s networking. Since it’s running in a docker container, however, I am guessing this isn’t the issue?
Here are the files I’m using:
My hope is to eventually host some websites on this cluster, so I need to make sure incoming and outgoing traffic can still be routed like that in the future. I’m still learning, however, so I haven’t finished setting up nginx to handle that.
Thank you so much! Have a wonderful day!
Cluster information:
Kubernetes version:1.30.6+k3s1
Cloud being used: bare-metal
Installation method: curl -sfL https://get.k3s.io | sh -
Host OS: Debian
CNI and version: I don’t know
CRI and version: I don’t know