ChaosKube contribute
ChaosKube is similar to Netflix’s chaos monkey for Kubernetes clusters. It schedules random termination of pods in order to test the fault tolerance of a highly available system.
Why
As a part of our charts development we needed a way to test the fault tolerance of our deployments.
How
Using ChaosKube is a manual step we do after our weekly demos. The intended use case of ChaosKube is to kill pods randomly at random times during a working day to test the ability to recover. The way we use it is a bit different, we manually launch ChaosKube in debug mode and manually identify the weak points of our deployment.
Later, we intend to integrate it into our CI pipeline, so whenever new changes are rolled out we have a ChaosKube run for that release.
Usage
The deploy_chaoskube.sh
installs and unleashes ChaosKube by scheduling a run 10m after installing ChaosKube by default. It also sets up
the needed service account and role if RBAC is enabled.
After you clone the charts repository, to install and unleash ChaosKube, run:
scripts/deploy_chaoskube.sh up
Configuration
ChaosKube can be configured by editing the scripts/chaoskube-resources/values.yaml
file. For more info read the official ChaosKube docs.
You can also configure the deployment with flags on the script. To find all available options, run:
scripts/deploy_chaoskube.sh -h
Visit the README’s values section for a full list of options to pass via --set
arguments.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support