$ go get github.com/HotelsDotCom/node-reaper
$ make clean build
You will need the following in order to build node reaper in docker:
- Git
- Make
- Docker
$ make bin
You will need the following in order to build node reaper locally:
- Git
- Make
- Go >=1.10
$ docker images | grep -i "node-reaper "
node-reaper 358d999 d83488882e8b 46 hours ago 61.4MB
Versions are defined by the current checked out git tag, failing that the current checked out git short hash is used instead.
$ make run
It assumes:
- You have a valid kubeconfig at $KUBECONFIG.
- You have a valid node reaper configuration file at $PWD/node-reaper.yaml.
- If using plugins, you have the compiled plugins (.so) at $PWD/bin/plugins.
- If using the aws node provider plugin, you have the required aws environment variables exported in the current shell.
- You have built the current checked out version of node-reaper with
make build
.
$ go run cmd/nodereaper/main.go
Plugins on Mac OS are not currently supported. If you want to use plugins and are running on Mac OS run the container instead.