This project serves as a plugin for the generic kubernetes resources scaler (https://github.com/v3io/scaler).
Implements scaling of deployments, by modifying their number of replicas to be 0 (scaler) or 1 (dlx).
There are 2 separate docker images for dlx
and scaler
, each in their corresponding directories.
To build, just run the commands (from the root dir of this project):
docker build -f dlx/Dockerfile -t [repo]/dlx:[version] .
docker build -f autoscaler/Dockerfile -t [repo]/scaler:[version] .
or run
SCALER_TAG=[version] SCALER_REPOSITORY=iguazio/ make build
This will build an image of scaler with resourcescaler.go
as its plugin.
To publish the image just docker push
the resulting images to your favorite repo.
Modifying vendor
dir may result in incompatability with vendor
in scaler .
Please run docker build
as described above to verify nothing was broken.