Skip to content

Hedingber/app-resource-scaler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

app-resource-scaler

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).

Building the project

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.

Notes

Modifying vendor dir may result in incompatability with vendor in scaler . Please run docker build as described above to verify nothing was broken.

About

K8s deployments scaler plugin

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 76.3%
  • Dockerfile 20.0%
  • Makefile 3.7%