chaoskube
chaoskube copied to clipboard
maxKill functionality not working using helm chart
When I try chaoskube with --max-kill=3 option it is not accepting , though logs does mention the value is taken .The number of pods killed is by default 1
From logs :
time="2021-06-02T10:30:45Z" level=info msg="setting pod filter" annotations= excludedPodNames="
Command used :
helm install ${name}
stable/chaoskube
--set interval=${interval},rbac.create=true,labels=${label},namespaces=${namespace}
--set rbac.serviceAccountName=chaoskube,dryRun=false
--set maxKill=3,
You're using an old version of the chart (stable/chaoskube) where this flag is not supported.
Please use the following to use the new chart: https://github.com/linki/chaoskube/issues/275#issuecomment-805066591
$ helm repo add chaoskube https://linki.github.io/chaoskube
$ helm repo update
$ helm install chaoskube chaoskube/chaoskube --set chaoskube.args.max-kill=3 --set image.tag=v0.21.0 ...
The image tag is currently needed because the default in the chart is wrong.
Here's the relevant values.yaml where you can see all the parameters: https://github.com/linki/chaoskube/blob/master/chart/chaoskube/values.yaml
Let me know if this works for you.