Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create first version of kubernetes job for Chaos Toolkit #1

Open
russmiles opened this issue Mar 12, 2018 · 4 comments
Open

Create first version of kubernetes job for Chaos Toolkit #1

russmiles opened this issue Mar 12, 2018 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@russmiles
Copy link
Contributor

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 russmiles added the enhancement New feature or request label Mar 12, 2018
@russmiles russmiles self-assigned this Mar 12, 2018
@russmiles
Copy link
Contributor Author

Artifacts we should include:

  • A bash script to grab environmental secrets and other configuration and supply that to the chaos command.
  • A README to explain how to use the job

@russmiles
Copy link
Contributor Author

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
Copy link
Contributor

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
Copy link
Contributor Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants