drain-my-spot
Service draining the k8s worker node in case of spot instances related event occurrence
HOWTOs
Build
➜ drain-my-spot git:(plan) ✗ make build
Build test lint
➜ drain-my-spot git:(plan) ✗ make
CGO_ENABLED=0 go mod download
CGO_ENABLED=0 go install github.com/golangci/golangci-lint/cmd/golangci-lint
CGO_ENABLED=0 go test -v ./...
? github.com/bgzzz/drain-my-spot [no test files]
CGO_ENABLED=0 golangci-lint run
CGO_ENABLED=0 go build -o ./bin/drain-my-spot .
NOTE: make sure go/bin is in your path to be able to run golangci-lint
TODO
- Input params
- Querrier (+ emulation)
- Drainer
- K8s config
- Kind tests
- k8s tests
- Unit and contract testing