-
Notifications
You must be signed in to change notification settings - Fork 33
help(SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),) #40
Comments
Can you tell us a bit more about your setup? What is your configuration to connect to the cluster (KubeConfig I suppose)? |
Running into the same problem when running in cluster using a service account: libssl rejects the API server's certificate for a reason I haven't figured out yet. On the other hand, in the same pod, Maybe |
@twz123 Recently have the same issue with |
I recently had a similar issue when trying out 'kube-web-view', and ended up editing |
@korcky @zoidbergwill do you mind doing a PR with a proper fix? |
I could try on this weekends, but I doesn't quite familiar with this version of |
To work with self-signed certs hjacobs#40
* Add option to skip verifying certs To work with self-signed certs #40 * Whoops Co-authored-by: Henning Jacobs <[email protected]>
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.6/site-packages/pykube/query.py", line 182, in iter
return iter(self.query_cache["objects"])
File "/usr/lib/python3.6/site-packages/pykube/query.py", line 172, in query_cache
cache["response"] = self.execute().json()
File "/usr/lib/python3.6/site-packages/pykube/query.py", line 148, in execute
r = self.api.get(**kwargs)
File "/usr/lib/python3.6/site-packages/pykube/http.py", line 269, in get
return self.session.get(*args, **self.get_kwargs(**kwargs))
File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.6/site-packages/pykube/http.py", line 135, in send
response = self._do_send(request, **kwargs)
File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='39.107.214.209', port=6443): Max retries exceeded with url: /api/v1/namespaces/default/pods (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))
The text was updated successfully, but these errors were encountered: