krkn-chaos / krkn-hub

Containerized wrapper around https://github.com/krkn-chaos/krkn to inject failures into Kubernetes clusters with minimal configuration.
Apache License 2.0
18 stars 18 forks source link

Node selector doesn't work for node memory hog scenario #161

Open avyas26 opened 9 months ago

avyas26 commented 9 months ago

While testing the node memory hog scenario, container always gets created on random node. When verified it is due to the input.yaml template file has selector hard coded as none {}.

https://github.com/redhat-chaos/krkn-hub/blob/main/node-memory-hog/input.yaml.template

Similar file in cpu hog scenario has the variable assigned in the yaml and is working as expected. This has to be updated so to make sure the required node has the memory stress.