Escalator is a batch or job optimized horizontal autoscaler for Kubernetes
It is designed for large batch or job based workloads that cannot be force-drained and moved when the cluster needs to scale down - Escalator will ensure pods have been completed on nodes before terminating them. It is also optimised for scaling up the cluster as fast as possible to ensure pods are not left in a pending state.
The need for this autoscaler is derived from our own experiences with very large batch workloads being scheduled and the default autoscaler not scaling up the cluster fast enough. These workloads can't be force-drained by the default autoscaler and must complete before the node can be terminated.
See Docs
go.mod
and go.sum
.# Fetch dependencies and build Escalator
make build
go run cmd/main.go --kubeconfig=~/.kube/config --nodegroups=nodegroups_config.yaml
See Deployment for full Deployment documentation.
# Build the docker image
docker build -t atlassian/escalator .
# Create RBAC configuration
kubectl create -f docs/deployment/escalator-rbac.yaml
# Create config map - modify to suit your needs
kubectl create -f docs/deployment/escalator-cm.yaml
# Create deployment
kubectl create -f docs/deployment/escalator-deployment.yaml
See Configuration
make test
For example, to test the controller package:
go test ./pkg/controller
Pull requests, issues and comments welcome. For pull requests:
See the existing issues for things to start contributing.
For bigger changes, make sure you start a discussion first by creating an issue and explaining the intended change.
Atlassian requires contributors to sign a Contributor License Agreement, known as a CLA. This serves as a record stating that the contributor is entitled to contribute the code/documentation/translation to the project and is willing to have it used in distributions and derivative works (or is willing to transfer ownership).
Prior to accepting your contributions we ask that you please follow the appropriate link below to digitally sign the CLA. The Corporate CLA is for those who are contributing as a member of an organization and the individual CLA is for those contributing as an individual.
Copyright (c) 2018 Atlassian and others. Apache 2.0 licensed, see LICENSE file.