Giter VIP home page Giter VIP logo

krkn-hub's Introduction

krkn-hub aka kraken-hub

Hosts container images and wrapper for running scenarios supported by Kraken, a chaos testing tool for OpenShift/Kubernetes clusters to ensure it is resilient to failures. All we need to do is run the containers with the respective environment variables defined as supported by the scenarios without having to maintain and tweak files!

Supported chaos scenarios

Scenario Description Working
Pod failures Injects pod failures ✔️
Container failures Injects container failures based on the provided kill signal ✔️
Node failures Injects node failure through OpenShift/Kubernetes, cloud API's ✔️
zone outages Creates zone outage to observe the impact on the cluster, applications ✔️
time skew Skews the time and date ✔️
Node cpu hog Hogs CPU on the targeted nodes ✔️
Node memory hog Hogs memory on the targeted nodes ✔️
Node IO hog Hogs IO on the targeted nodes ✔️
Namespace failures Fails the components in a namespace by deleting it ✔️
Application outages Isolates application Ingress/Egress traffic to observe the impact on dependent applications and recovery/initialization timing ✔️
Power Outages Shuts down the cluster for the specified duration and turns it back on to check the cluster health ✔️
PVC disk fill Fills up a given PersistenVolumeClaim by creating a temp file on the PVC from a pod associated with it ✔️
Network Chaos Introduces network latency, packet loss, bandwidth restriction in the egress traffic of a Node's interface using tc and Netem ✔️

Set Up

You can use docker or podman to run kraken-hub

Install Podman your certain operating system based on these instructions

or

Install Docker

Docker is also supported but all variables you want to set (separate from the defaults) need to be set at the command line In the form -e <VARIABLE>=<value>

You can take advantage of the get_docker_params.sh script to create your parameters string This will take all environment variables and put them in the form "-e =" to make a long string that can get passed to the command

For example: docker run $(./get_docker_params.sh) --net=host -v <path-to-kube-config>:/root/.kube/config:Z -d quay.io/chaos-kubox/krkn-hub:power-outages

Adding New Scenarios/Testing Changes

Refer to the 2 docs below to be able to test your own images with any changes and be able to contribute them to the repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.