GithubHelp home page GithubHelp logo

podchaosmonkey's Introduction

Testing podchaosmonkey ๐Ÿต

At time of writing this guide does not work properly on M1/M2 ARM macs.

Introduction ๐Ÿ‘‹

The purpose of this project is to spin up a Kubernetes cluster and test podchaosmonkey.

Tools / Setup ๐Ÿ› 

Deploying the cluster ๐Ÿš—

I will be deploying a managed Kubernetes cluster on Civo via the Civo CLI, for more information on how to setup an account and get started on Civo please see this link.

Cluster node sizes can be changed and updated, so let's look at what is available.

civo kubernetes size

Then we can choose a suitable node size:

civo kubernetes create chaos_test -s g4s.kube.small --save --merge --wait

Make the new cluster is our default context:

kubectx chaos_test

Check we have access:

kubectl get pods -A

Deployment ๐Ÿšฆ

Next we can clone the repo

git clone https://github.com/perithompson/podchaosmonkey.git

CD into the directory:

cd podchaosmonkey

Next we can pretty much follow the documentation in the repo:

Create a docker image and push it to a repo of your choice, i.e. dockerhub

make docker-build docker-push IMG=<some-registry>/podchaosmonkey:tag

Deploy the controller to the cluster with the image specified

make deploy IMG=<some-registry>/podchaosmonkey:tag

Deploy a sample workload

kubectl apply -f config/samples/sample-deployment.yaml

Create the Monkey resource

kubectl apply -f config/samples/podchaos_v1alpha1_monkey.yaml

Watch the Monkey do his thing! ๐Ÿ™ˆ

watch kubectl get pods -n workloads

Have fun creating chaos! ๐Ÿต

podchaosmonkey's People

Contributors

keithhubner avatar

Watchers

 avatar

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.