litmus: err: Unable to Get the chaosengine
err: Unable to Get the chaosengine
My environment is pretty simple. I have an azure k8s cluster, and followed this guide https://istio.io/latest/docs/setup/getting-started/ to setup my environment. In other words, the namespace is enabled with istio injection.
Litmus is setup, and I was trying to run pod-delete experiment. Chaos runner pod is created, but I saw errors though. “pod-delete” pod is also created, but the target pod was not deleted. When I was looking at logs by k logs -f pod-delete-4y48y4-ql64c -c pod-delete-4y48y4, I saw error
Unable to initialise probes details from chaosengine, err: Unable to Get the chaosengine, err: Get \"https://10.0.0.1:443/apis/litmuschaos.io/v1alpha1/namespaces/default/chaosengines/bookinfo-chaos\": dial tcp 10.0.0.1:443: connect: connection refused
This is my engine yaml, https://drive.google.com/file/d/1HAaMLamHS3BZP6SDNtD_-YO1pdl46vnh/view?usp=sharing
Litmus version is 1.9.0
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (13 by maintainers)
Ok we need to add the annotation
sidecar.istio.io/inject: "false"in the chaos-runner, experiment pod & helpers to prevent sidecar injection & in turn avoid this issue in accessing kube-apiserver. Litmus supports adding custom annotations to the chaos pods via an instrumentation in the chaosengine. Please refer the example below: