Set it up locally (assumes Go 1.9 or above installed):
$ go get github.com/kubernauts/dok-example-us/stock-genBuild and run in one terminal:
$ go install . && DOK_STOCKGEN_PORT=9876 DOK_STOCKGEN_CRASHEPOCH=20 stock-genIn another terminal (requires http and jq installed):
$ while true; do \
http localhost:9876/stockdata | jq .[].symbol,.[].value ; \
sleep 1 ; \
doneThe stock-gen app container image is defined in Dockerfile and publicly available via quay.io/mhausenblas/stock-gen:0.3.
To deploy it as an Kubernetes application, use the provided manifest like so:
$ kubectl create -f app.yaml
$ kubectl get deploy,svc,po