chaostoolkit-kubernetes
chaostoolkit-kubernetes copied to clipboard
SSL Error - CERTIFICATE_VERIFY_FAILED
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.
:+1:
These are some of the solutions I tried:
-
export KUBERNETES_DEBUG=1 export KUBERNETES_VERIFY_SSL=1
-
insecure-skip-tls-verify: true in kubeconfig
-
"configuration": { "KUBERNETES_VERIFY_SSL": true } in experiment file
-
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?