Inspired by Netflix's "Chaos Monkey", this game quite literally sets a monkey loose in your Kubernetes cluster.
CHAOS ENGINEERING IS: "the discipline of experimenting on a distributed system in order to build confidence in the system's capability to withstand turbulent conditions in production."
This game is more for fun and demonstration purposes than to be a genuine chaos engineering tool. You probably don't want to run this in production.
Kubernetes pods are represented by crates in the game. The more pods you have, the more crates are dropped!
You control the monkey with the arrow keys, and punch crates with space bar. You can also hold 'G' to grab a crate to your right and drag it around.
Every time the monkey destroys a crate, a pod in your cluster is randomly selected and deleted!
Press 'R' to reset the game.
- Clone the repo
 - Install dependencies: 
pipenv install - Run the game: 
pipenv run python cheekymonkey.py 
Unless offline mode is set (see below), the game will attempt to connect to your currently-set Kubernetes context.
By default, the game will target pods across ALL namespaces, unless you specify namespaces to exclude, for example:
pipenv run python cheekymonkey.py --exclude kube-system cert-manager
--offline yes  Switches to offline mode, no pods will be harmed
--exclude <namespace1> <namespace2>  Space-separated list of namespaces to exclude
Change the following in constants.py:
- Resolution - set 
SCREEN_WIDTHandSCREEN_HEIGHTas desired CONTAINER_FACTOR- Multiplication factor for creating crates based on the actual number of containers in your cluster. The idea is you can use this to get a reasonable number of crates in game if you have a lot of running pods in your cluster.CONTAINER_HEALTH- How many times the monkey needs to hit the crate before its corresponding pod is killedOFFLINE_CRATE_COUNT- How many crates to spawn in offline mode (Multiplied byCONTAINER_FACTOR)
You can have fun with the physics by using the plus/minus keys to change the punching force.
