chaostoolkit-incubator / kubernetes-job

A kubernetes job for executing the Chaos Toolkit's chaos run command
Apache License 2.0
0 stars 0 forks source link

Create first version of kubernetes job for Chaos Toolkit #1

Open russmiles opened 6 years ago

russmiles commented 6 years ago

Taking inspiration from the existing Docker-based chaos runner here: https://github.com/chaostoolkit/chaostoolkit/blob/master/Dockerfile

The plan is to implement a Kubernetes Job that will be able to run (periodically?) a Chaos Experiment.

russmiles commented 6 years ago

Artifacts we should include:

russmiles commented 6 years ago

One question, @Lawouach , what are your thoughts on where the experimental outcome from the job should go? And can we grab an experiment from a git repo directly (a URL), such as:

$ chaos run https://github.com/chaostoolkit/chaostoolkit-samples/tree/master/experiments/my-experiment.json
Lawouach commented 6 years ago

Good questions.

The latter is not supported as of now indeed but is a nice idea. Perhaps worth a ticket on chaostoolkit itself?

Alternatively, we could ensure the Kubernetes Job mounts a gitrepo volume: https://kubernetes.io/docs/concepts/storage/volumes/#gitrepo

A little more involved?

As for where the results may go, it's a very good question. I guess, we could rely on a new chaostoolkit-event plugin (ala chaostoolkit-slack), that uploads it where it fits the user needs?

russmiles commented 6 years ago

I like the idea of mounting a Git Repo volume, that sounds more "native" and possibly less of a security "hole" than "run any experiment reachable from a URL"?

For example, with the latter we might have to worry about whitelists?