cookiemonster

module
v0.0.0-...-1488ee6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2019 License: Apache-2.0

README

This repository is deprecated. We moved everything to the following repo

https://github.com/openinfradev


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

Directories

Path Synopsis
src
cmd command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL