-
Notifications
You must be signed in to change notification settings - Fork 40
How to disable tls verification(self signed certs) #40
Comments
@SHarrySeldon it should work automatically when running in a cluster as Pykube loads the See also https://kubernetes.io/docs/reference/access-authn-authz/authentication/#service-account-tokens --- AFAIK the |
I see the code and yes, it should work automatically, but it doesn't. |
I have the same issue on a cluster with self signed certificates. The ca.crt does exist within the pod, but its in no way valid as its just a development cluster with odd issuer/subject values. Adding an option to ignore invalid certificates would be extremely useful! |
I think this should be a feature request for |
See hjacobs/pykube#76. I also tried adding the following environment variables to the container, but had no luck.
Note that running a manual curl with --cacert pointing to the path above works without issue. |
Trying to run janitor on cluster with self signed certs.
I'm getting this error
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: /api/v1/namespaces (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get issuer certificate (_ssl.c:1056)')))
Is there a way to ignore invalid certs?
The text was updated successfully, but these errors were encountered: