Giter Club home page Giter Club logo

cookiemonster's Introduction

Lets break stuff and eat cookies

CookieMonster will eat your applications. And infrastructure. And possibly your cat if it gets too close.

Pre-requirements

  • Go lang
  • Docker
  • Kubernetes
export GOPATH=$HOME/go
git clone http://github.com/sktelecom-oslab/cookiemonster $GOPATH/src/cookiemonster
cd $GOPATH/src/cookiemonster

Build

make vendor
make build-linux
make docker

Run locally without Docker

Mac
./bin/cookiemonster-darwin-amd64 &

or

Linux
./bin/cookiemonster-linux-amd64 &

Run locally with Docker

docker run -d -p 8080:8080 cookiemonster:latest

Run on a Kubernetes cluster

helm install ./helm/cookiemonster-chart --name cookiemonster

Choose a host from the cluster and note the port that gets mapped

kubectl get svc cookiemonster

Test it

Deploy stuff
kubectl create ns test
kubectl create clusterrolebinding test --clusterrole=cluster-admin --serviceaccount=test:default | true
kubectl create clusterrolebinding test --clusterrole=cluster-admin --serviceaccount=default:default | true
helm install skt/etcd --name etcdtest --namespace test --version 0.1.0
helm install skt/rabbitmq --name rabbitmqtest --namespace test --set replicas=7 --version 0.1.0
helm install skt/mariadb --name mariadbtest --namespace test --set replicas=7 --version 0.1.0

URL endpoints to test

URL="localhost:30003"

curl -X POST http://$URL/api/v1/config
curl -X POST http://$URL/api/v1/pod/start
curl -X POST http://$URL/api/v1/pod/stop

cookiemonster's People

Contributors

wilreichert avatar jaesang avatar bluejaya avatar seungkyua avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar  avatar JohnHaan avatar  avatar daeseong.kim 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.