You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[2021-12-06 05:35:06 ERROR] => failed: urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /apis/apps/v1/namespaces/litmus/deployments?fieldSelector=metadata.name%3Dchaos-operator-ce&labelSelector=chaos-operator-ce (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f992ae54390>: Failed to establish a new connection: [Errno 111] Connection refused',))
[2021-12-06 05:35:06 WARNING] Probe terminated unexpectedly, so its tolerance could not be validated
Below is the code snippet I used to connect to k8s cluster
"secrets": { "k8s": { "KUBERNETES_CONTEXT": "kubectl config use-context arn:aws:eks:region:acctID:cluster/<cluster_name>" } }, "steady-state-hypothesis": { "title": "Verifying service remains healthy", "probes": [ { "name": "all-our-microservices-should-be-healthy", "type": "probe", "tolerance": true, "secrets": ["k8s"], "provider": { "type": "python", "module": "chaosk8s.deployment.probes", "func": "deployment_available_and_healthy", "arguments": { "name": "<deployment_name>", "ns": "litmus", "label_selector": "<deployment_name>" }
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone,
I need help on connecting to k8s cluster from experiment.json.
I followed the steps listed in link : https://github.com/chaostoolkit/chaostoolkit-documentation/blob/master/sources/drivers/kubernetes.md
I'm getting below error :
[2021-12-06 05:35:06 ERROR] => failed: urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /apis/apps/v1/namespaces/litmus/deployments?fieldSelector=metadata.name%3Dchaos-operator-ce&labelSelector=chaos-operator-ce (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f992ae54390>: Failed to establish a new connection: [Errno 111] Connection refused',))
[2021-12-06 05:35:06 WARNING] Probe terminated unexpectedly, so its tolerance could not be validated
Below is the code snippet I used to connect to k8s cluster
"secrets": { "k8s": { "KUBERNETES_CONTEXT": "kubectl config use-context arn:aws:eks:region:acctID:cluster/<cluster_name>" } }, "steady-state-hypothesis": { "title": "Verifying service remains healthy", "probes": [ { "name": "all-our-microservices-should-be-healthy", "type": "probe", "tolerance": true, "secrets": ["k8s"], "provider": { "type": "python", "module": "chaosk8s.deployment.probes", "func": "deployment_available_and_healthy", "arguments": { "name": "<deployment_name>", "ns": "litmus", "label_selector": "<deployment_name>" }
Appreciate any immd help on this.
Beta Was this translation helpful? Give feedback.
All reactions