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
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 probes and actions.
## Configuration
This extension to the Chaos Toolkit expects the Kubernetes configuration 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, add appropriate 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
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 probes and actions.
## Configuration
This extension to the Chaos Toolkit expects the Kubernetes configuration 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, add appropriate 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.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffcf1b550435a39d28b39c838cc3a127d37da410a6030a788abe1d0b5afd0054 |
|
MD5 | 564552cd89fdc34339545ed26e01007e |
|
BLAKE2b-256 | 0998d42008f7d2e3ed12883917e164750236039501ceadd5b9a50ba35e10d671 |
Close
Hashes for chaostoolkit_kubernetes-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 392b615548b12ebd3d3f2ce0986b8cb2f6ef19afc71133166dff2e50bd439118 |
|
MD5 | 4c98fd035296e80fbfd108dc40ebe03c |
|
BLAKE2b-256 | 80e4c5d79ff5ee16aedf2422ccbafe6cf717a026d2f9c5f8af2840e6e681e143 |