Chaos Toolkit Kubernetes support
Project description
# Chaos Toolkit Kubernetes Support
[![Build Status](https://travis-ci.org/chaostoolkit/chaostoolkit-kubernetes.svg?branch=master)](https://travis-ci.org/chaostoolkit/chaostoolkit-kubernetes)
This project contains activities, such as probes and actions, you can call from
your experiment through the Chaos Toolkit.
## Install
To be used from your experiment, this package must be installed in the Python
environment where [chaostoolkit][] already lives.
[chaostoolkit]: https://github.com/chaostoolkit/chaostoolkit
```
$ pip install chaostoolkit-kubernetes
```
## Usage
First, in your experimenty project, make sure
To use the probes and actions from this package, add the following to your
experiment file:
```json
{
"title": "Our microservice should really be gone by now",
"layer": "kubernetes",
"type": "python",
"module": "chaosk8s.probes",
"func": "microservice_available_and_healthy",
"arguments": {
"name": "mysvc"
}
}
```
That's it!
Please explore the code to see existing provbes and actions.
## Configuration
This extension to the Chaos Toolkit expects the Kubernetes configuyration to
be found at the usual place in your HOME directory under `~/.kube/`.
You should therefore ensure you can fully connect to your Kubernetes cluster
from a `kubectl` command before using this extension in your experiment.
## Contribute
If you wish to contribute more functions to this package, you are more than
welcome to do so. Please, fork this project, make your changes following the
usual [PEP 8][pep8] code style, sprinkling with tests and submit a PR for
review.
[pep8]: https://pycodestyle.readthedocs.io/en/latest/
[![Build Status](https://travis-ci.org/chaostoolkit/chaostoolkit-kubernetes.svg?branch=master)](https://travis-ci.org/chaostoolkit/chaostoolkit-kubernetes)
This project contains activities, such as probes and actions, you can call from
your experiment through the Chaos Toolkit.
## Install
To be used from your experiment, this package must be installed in the Python
environment where [chaostoolkit][] already lives.
[chaostoolkit]: https://github.com/chaostoolkit/chaostoolkit
```
$ pip install chaostoolkit-kubernetes
```
## Usage
First, in your experimenty project, make sure
To use the probes and actions from this package, add the following to your
experiment file:
```json
{
"title": "Our microservice should really be gone by now",
"layer": "kubernetes",
"type": "python",
"module": "chaosk8s.probes",
"func": "microservice_available_and_healthy",
"arguments": {
"name": "mysvc"
}
}
```
That's it!
Please explore the code to see existing provbes and actions.
## Configuration
This extension to the Chaos Toolkit expects the Kubernetes configuyration to
be found at the usual place in your HOME directory under `~/.kube/`.
You should therefore ensure you can fully connect to your Kubernetes cluster
from a `kubectl` command before using this extension in your experiment.
## Contribute
If you wish to contribute more functions to this package, you are more than
welcome to do so. Please, fork this project, make your changes following the
usual [PEP 8][pep8] code style, sprinkling with tests and submit a PR for
review.
[pep8]: https://pycodestyle.readthedocs.io/en/latest/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for chaostoolkit-kubernetes-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c827d850cae342cd18a1642eb4a6de56b1810382dab4d772a95855c963bfbeab |
|
MD5 | c2936e93ff6a6df78c89984051495b27 |
|
BLAKE2b-256 | f27842c7b131d49c54ad8f8eeed8d8cca2a62efa44490fe997869bfa30b7dcc9 |
Close
Hashes for chaostoolkit_kubernetes-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6c78abb52e3430c1ae006a492674fa828186513c09ace304fff017ffb11940f |
|
MD5 | a924dc35837a46ff2c6b3b57f2965647 |
|
BLAKE2b-256 | 2a1c593612c711d7611adb23c573ac077144ab2806d2b12cfb8852067a9e10e4 |