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.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd2ef9b5fa41112ab98c6c2a8b804df5b019eb199b0ca80ee60b67165c2c8a8f |
|
MD5 | 92ab2a78d24b85e95a2a07e5189e8fdb |
|
BLAKE2b-256 | d8802be08999f2fd33db9aa502a66a74da28c1d40e05365a3e113c3e595562a5 |
Close
Hashes for chaostoolkit_kubernetes-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6d87c2c690926489dfbba77d2af76f4e54cf5fbe5b1033a6b5c22d623130e23 |
|
MD5 | 2ec6e96f43d91eab745a5fcf8a7f09e8 |
|
BLAKE2b-256 | 975cf183b9812a41cea6d5e727c1fede55a9d13e133fbef89147ab0d3c2dc1fc |