autoscaler/cluster-autoscaler
Marcin Wielgus 885f0d6823 Godeps update in CA for K8s HEAD at 11-08-2017 2017-08-11 17:56:24 +02:00
..
Godeps Godeps update in CA for K8s HEAD at 11-08-2017 2017-08-11 17:56:24 +02:00
cloudprovider Fixed typoes of name 'Kubernetes' 2017-08-03 14:20:23 +12:00
clusterstate Fixed typoes of name 'Kubernetes' 2017-08-03 14:20:23 +12:00
config Godeps bump for CA 2017-07-03 22:05:11 +02:00
core Fix getEmptyNodes function in CA 2017-08-07 22:21:41 +02:00
deploy Cluster-autoscaler: update aws doc with --stderrthreshold=info flag 2017-03-29 23:47:20 +02:00
estimator Godeps bump for CA 2017-07-03 22:05:11 +02:00
expander rename test provider package 2017-07-06 16:23:15 +02:00
metrics Log long function execution 2017-08-07 11:21:15 +02:00
proposals Kubemark integration proposal. 2017-06-30 15:57:58 +02:00
simulator Godeps bump for CA 2017-07-03 22:05:11 +02:00
utils rename test provider package 2017-07-06 16:23:15 +02:00
vendor Godeps update in CA for K8s HEAD at 11-08-2017 2017-08-11 17:56:24 +02:00
.gitignore Cluster-Autoscaler - Kubernetes client deps 2016-04-20 11:49:38 +02:00
Dockerfile cluster-autoscaler: Add ca-certificates to the docker image 2017-05-09 12:30:59 +09:00
FAQ.md fix FAQ.md 2017-08-04 20:22:06 +08:00
Makefile Enable min size 0 in aws 2017-07-10 09:04:18 -04:00
OWNERS Make assignees approvers and reviewers 2016-12-14 16:42:04 -08:00
README.md Add note about running CA 0.6 with k8s 1.6 2017-07-04 16:28:10 +02:00
main.go Fixed typoes of name 'Kubernetes' 2017-08-03 14:20:23 +12:00
run.sh Cluster-Autoscaler: added wrapper script to pass signals 2017-02-28 17:39:29 +01:00
update_toc.py Fix update_toc.py script to stop appending empty lines 2017-06-30 14:18:18 +02:00
version.go Set CA version to 0.6.0 2017-06-26 17:22:32 +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.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 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: