Files
Lucian Suciu 9a74ff0b26 chaos
2019-03-26 08:58:27 +02:00
..
2019-03-26 08:58:27 +02:00
2019-03-25 11:30:37 +02:00
2019-03-25 10:44:21 +02:00
2019-03-25 10:44:21 +02:00
2019-03-25 10:44:21 +02:00
2019-03-26 08:58:27 +02:00
2019-03-25 10:44:21 +02:00

About

This is an simple implementation of custom chaos-monkey deployment using https://git.alfresco.com/search_discovery/search-deployment-scripts/tree/master/kops-cluster as a base platform; for this the base readme is keept in the bottom of this readme.

Prerequisites

  • have kubernetes cluster deployed

  • build nodejs app for testing purposes (just an app that will display time)

    cd ../stupid-server/
    docker build -t docker build -t quay.io/lsuciu/stupid-server .
    docker push
    
  • build chaos-monkey image

    cd ../kubernetes-pod-chaos-monkey/
    docker build -t quay.io/lsuciu/chaos:latest .
    docker push
    
  • deploy the application

    kubectl create -f namespace.yaml
    kubectl create -f deployment.yaml
    kubectl create -f service.yaml
    
  • edit chaos.yaml with your values for the env variables (KILL_NR -> number of pods to be killed simultaneous, DELAY_SEC -> number of seconds between repeating the kill cycle)

      env:
      - name: NAMESPACE
        value: "stupid-server"
      - name: KILL_NR
        value: "3"
      - name: DELAY_SEC   
        value: "20"
    
  • deploy the chaos

    kubectl create -f chaos.yaml