Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.01 KB

README.md

File metadata and controls

56 lines (36 loc) · 1.01 KB

Go Micro-services

Test project with skaffold,kind,chaos mech and nats

Prerequisites

Config Cluster

    ./scripts/init-local-cluster.sh

Run micro services

wait nats cluster to be running. (if the nats is not running the pods will restart until the nats is running)

    ./scripts/run-local.sh

Run experiments

    kubectl apply -f experimets/delay-nats.yaml

List authors is fast: curl localhost:3000/authors

Create authors is slow and return timeout error: curl -i -X POST localhost:3000/authors

List running experiments

To list experiments you can access the chaos mesh ui: http://localhost:2333

Delete experiments

    kubectl delete -f experimets/delay-nats.yaml

now create is fast curl -i -X POST localhost:3000/authors

Delete cluster

    kind delete cluster