An app that wastefully allocates memory.
It is used in tandem with memhog-operator to demo a simple vertical auto-scaler based on memory consumption.
- Kubernetes v1.7.0+
- glide v0.11.1
// Build
$ glide install -s -u -v
$ make
$ $GOPATH/bin/memhog -v2
// Create AppMonitor for Pod
$ kubectl create -f k8s/appmonitor/johnny-cache.yaml
$ kubectl create -f k8s/pod/memhog.yaml
Or in one command:
$ kubectl create -f k8s/ -R