Git Product home page Git Product logo

kloud-konnect-litmus-demo's Introduction

kloud-konnect-litmuschaos-demo

This is a workshop to install LitmusChaos & execute a chaos scenario on a simple web application

Steps:

  1. Spin up your favourite Kubernetes cluster (ex: killercoda)

  2. Verify the presence of a default storage class. If there are none, set up the Rancher dynamic Local PV provisioner & storage class. And then make it the default

    kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml
    kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
    
  3. Setup the sample web-application

    kubectl apply -f https://raw.githubusercontent.com/ksatchit/kubesimplify-chaos-demo/main/podtato-head-web-app.yaml
    

    Open port access to the application and view status

Installation steps for Litmus 3.0.0

Mongo installation via Helm - Bitnami Mongo

helm repo add bitnami https://charts.bitnami.com/bitnami

Mongo Values

cat > mongo-values.yml <<EOL
auth:
  enabled: true
  rootPassword: "1234"
  # -- existingSecret Existing secret with MongoDB(&reg;) credentials (keys: `mongodb-passwords`, `mongodb-root-password`, `mongodb-metrics-password`, ` mongodb-replica-set-key`)
  existingSecret: ""
architecture: replicaset
replicaCount: 3
persistence:
  enabled: true
volumePermissions:
  enabled: true
metrics:
  enabled: false
  prometheusRule:
    enabled: false

# bitnami/mongodb is not yet supported on ARM.
# Using unofficial tools to build bitnami/mongodb (arm64 support)
# more info: https://github.com/ZCube/bitnami-compat
#image:
#  registry: ghcr.io/zcube
#  repository: bitnami-compat/mongodb
#  tag: 6.0.5
EOL
helm install my-release bitnami/mongodb --values mongo-values.yml -n litmus --create-namespace

Apply the Manifest

Applying the manifest file will install all the required service account configuration and ChaosCenter in cluster scope.

kubectl apply -f https://raw.githubusercontent.com/litmuschaos/litmus/master/mkdocs/docs/3.4.0/litmus-cluster-scope-3.4.0.yaml

Construct the chaos scenario to kill the helloservice replica with a http probe to verify availability. Validate hypothesis & analyze results

Re-run the chaos scenario with mitigation to check whether the desired resilience characteristics are achieved.

kloud-konnect-litmus-demo's People

Contributors

krisharyan avatar

Watchers

 avatar  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.