chaostoolkit-kubernetes icon indicating copy to clipboard operation
chaostoolkit-kubernetes copied to clipboard

SSL Error - CERTIFICATE_VERIFY_FAILED

Open sathiyajith opened this issue 3 years ago • 1 comments

I tried the given example of terminating a pod. I replaced the pod name "myapp" to my pod name "demo". It throws the following error:

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='100.77.46.190', port=6443): Max retries exceeded with url: /apis/apps/v1/namespaces/default/deployments?fieldSelector=metadata.name%3Ddemo (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)'),))

I would really appreciate any solution or work around.

sathiyajith avatar May 04 '21 04:05 sathiyajith

:+1:

sandersky avatar Apr 28 '17 03:04 sandersky

These are some of the solutions I tried:

  1. export KUBERNETES_DEBUG=1 export KUBERNETES_VERIFY_SSL=1

  2. insecure-skip-tls-verify: true in kubeconfig

  3. "configuration": { "KUBERNETES_VERIFY_SSL": true } in experiment file

  4. configuration = client.Configuration() configuration.verify_ssl=False configuration.debug = False client.Configuration.set_default(configuration) in init.py

These methods doesnt seem to fix the error. Am I missing something?

sathiyajith avatar May 04 '21 04:05 sathiyajith