autoscaler/cluster-autoscaler
Aleksandra Malinowska 361afa73af Update Cluster Autoscaler base image to debian-base-amd:0.3.2 2018-08-20 13:10:52 +02:00
..
Godeps
_override/google.golang.org Add appropriate license to _override 2017-11-28 14:31:20 +01:00
cloudprovider Fix nvidia gpu resource name on AWS 2018-08-08 14:53:01 -04:00
clusterstate
config
core Fix cleaning up taints 2018-05-11 13:51:40 +02:00
deploy
estimator
expander Ignore unfitness in price expander if using GPU 2018-03-05 11:55:10 +01:00
metrics Don't register metrics unless on leading master 2018-01-15 17:42:39 +01:00
proposals
simulator Source fix after godep update 2017-11-28 14:01:43 +01:00
utils Allow using the PodSafeToEvictKey annotation in reverse 2018-07-11 16:03:05 +03:00
vendor Remove Windows-specific libraries from godeps 2017-11-28 14:48:05 +01:00
.gitignore
Dockerfile Update Cluster Autoscaler base image to debian-base-amd:0.3.2 2018-08-20 13:10:52 +02:00
FAQ.md Allow using the PodSafeToEvictKey annotation in reverse 2018-07-11 16:03:05 +03:00
Makefile
OWNERS
README.md
fix_gopath.sh Rename override to _override to allow ./... patterns in go command 2017-11-28 14:21:17 +01:00
kubernetes.sync Source fix after godep update 2017-11-28 14:01:43 +01:00
main.go Don't register metrics unless on leading master 2018-01-15 17:42:39 +01:00
push_image.sh
run.sh
update_toc.py
version.go Cluster Autoscaler 1.1.3 2018-05-17 15:22:40 +02:00

README.md

Cluster Autoscaler

Introduction

Cluster Autoscaler is a tool that automatically adjusts the size of the Kubernetes cluster when:

  • there are pods that failed to run in the cluster due to insufficient resources.
  • some nodes in the cluster are so underutilized, for an extended period of time, that they can be deleted and their pods will be easily placed on some other, existing nodes.

FAQ/Documentation

Is available HERE.

Releases

We strongly recommend using Cluster Autoscaler with version for which it was meant. We don't do ANY cross version testing so if you put the newest Cluster Autoscaler on an old cluster there is a big chance that it won't work as expected.

Kubernetes Version CA Version
1.8.X 1.0.X
1.7.X 0.6.X
1.6.X 0.5.X, 0.6.X*
1.5.X 0.4.X
1.4.X 0.3.X

*Cluster Autoscaler 0.5.X is the official version shipped with k8s 1.6. We've done some basic tests using k8s 1.6 / CA 0.6 and we're not aware of any problems with this setup. However, CA internally simulates k8s scheduler and using different versions of scheduler code can lead to subtle issues.

Notable changes

CA version 1.0.3:

  • Adds support for safe-to-evict annotation on pod. Pods with this annotation can be evicted even if they don't meet other requirements for it.
  • Fixes an issue when too many nodes with GPUs could be added during scale-up (https://github.com/kubernetes/kubernetes/issues/54959).

CA Version 1.0.2:

CA Version 1.0.1:

CA Version 1.0:

With this release we graduated Cluster Autoscaler to GA.

  • Support for 1000 nodes running 30 pods each. See: Scalability testing report
  • Support for 10 min graceful termination.
  • Improved eventing and monitoring.
  • Node allocatable support.
  • Removed Azure support. See: PR removing support with reasoning behind this decision
  • cluster-autoscaler.kubernetes.io/scale-down-disabled` annotation for marking nodes that should not be scaled down.
  • scale-down-delay-after-deleteandscale-down-delay-after-failureflags replacedscale-down-trial-interval`

CA Version 0.6:

CA Version 0.5.4:

  • Fixes problems with node drain when pods are ignoring SIGTERM.

CA Version 0.5.3:

CA Version 0.5.2:

CA Version 0.5.1:

CA Version 0.5:

  • CA continues to operate even if some nodes are unready and is able to scale-down them.
  • CA exports its status to kube-system/cluster-autoscaler-status config map.
  • CA respects PodDisruptionBudgets.
  • Azure support.
  • Alpha support for dynamic config changes.
  • Multiple expanders to decide which node group to scale up.

CA Version 0.4:

  • Bulk empty node deletions.
  • Better scale-up estimator based on binpacking.
  • Improved logging.

CA Version 0.3:

  • AWS support.
  • Performance improvements around scale down.

Deployment

Cluster Autoscaler runs on the Kubernetes master node (at least in the default setup on GCE and GKE). It is possible to run customized Cluster Autoscaler inside of the cluster but then extra care needs to be taken to ensure that Cluster Autoscaler is up and running. User can put it into kube-system namespace (Cluster Autoscaler doesn't scale down node with non-manifest based kube-system pods running on them) and mark with scheduler.alpha.kubernetes.io/critical-pod annotation (so that the rescheduler, if enabled, will kill other pods to make space for it to run).

Right now it is possible to run Cluster Autoscaler on: