Commit Graph

34 Commits

Author SHA1 Message Date
Yaroslava Serdiuk 94f1920265 Use PdbRemainingDisruptions in Planner 2022-12-06 15:11:08 +00:00
Alexandru Matei 0ee2a359e7 Add option to wait for a period of time after node tainting/cordoning
Node state is refreshed and checked again before deleting the node
It gives kube-scheduler time to acknowledge that nodes state has
changed and to stop scheduling pods on them
2022-10-13 10:37:56 +03:00
mikelo c127763a45 switched policy for PodDisruptionBudget from v1beta1 to v1 in time for 1.25 2022-06-24 19:13:03 +02:00
david.benque 2529b667c5 ignoring terminated pods in scaledown 2020-12-21 16:22:50 +01:00
Kubernetes Prow Robot aa9367f56f
Merge pull request #3701 from yaroslava-serdiuk/DS_evict
add daemonset eviction for non-empty nodes
2020-11-30 05:02:49 -08:00
Yaroslava Serdiuk dcf0970208 add daemonset eviction for non-empty nodes 2020-11-30 11:53:16 +00:00
Bartłomiej Wróblewski 0fb897b839 Update imports after scheduler scheduler/framework/v1alpha1 removal 2020-11-30 10:48:52 +00:00
Jakub Tużnik 73a5cdf928 Address recent breaking changes in scheduler
The following things changed in scheduler and needed to be fixed:
* NodeInfo was moved to schedulerframework
* Some fields on NodeInfo are now exposed directly instead of via getters
* NodeInfo.Pods is now a list of *schedulerframework.PodInfo, not *apiv1.Pod
* SharedLister and NodeInfoLister were moved to schedulerframework
* PodLister was removed
2020-04-24 17:54:47 +02:00
Jakub Tużnik 7a188ab50d Provide ScaleDownStatusProcessor with info about unremovable nodes 2020-02-11 15:27:33 +01:00
Łukasz Osipiuk c4eaedec57 Rename PDBS.PodDisruptionsAllowed to DisruptionsAllowed 2020-02-04 20:51:08 +01:00
cedric lamoriniere f0fbf7a87a [cluster-autoscaler] Allow “custom” DaemonSet pods
* Create `utils/pod` package: pod kind detection functions.
* Update DaemonSet Pod detection logic: introduce the annotation
  `cluster-autoscaler.kubernetes.io/daemonset-pod` to declare a Pod as a
  DaemonSet Pod.
* Update `simulator` package to use the new `utils/pod` package function.
* Cleanup `getRequiredPodsForNode()` function.

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2019-11-06 11:23:23 +01:00
Pengfei Ni 128729bae9 Move schedulercache to package nodeinfo 2019-02-21 12:41:08 +08:00
Maciej Pytel 9060014992 Use listers in scale-down 2018-12-31 14:55:38 +01:00
Richard Taylor 27794eaead
Grammar correction 2018-10-03 12:45:02 -07:00
Pengfei Ni be3dd85503 Update scheduler cache package 2018-06-11 13:54:12 +08:00
Marcin Wielgus 04bec08e84 Compilation fix 2018-03-20 20:11:36 +01:00
Edward Tsang 4104a91991 more spelling fixes 2017-11-02 14:21:36 -07:00
Marcin Wielgus 9116e4c08c Compilation fix for CA after godeps update 2017-08-11 17:56:47 +02:00
Marcin Wielgus fc43808149 Godeps bump for CA 2017-07-03 22:05:11 +02:00
Marcin Wielgus fd2c1670dd Fix comments in simulator/drain.go 2017-06-22 03:00:36 +02:00
Aleksandra Malinowska 8ca8b24d3d Add allowing eviction of kube-system pods with PDB 2017-06-01 18:24:42 +02:00
Aleksandra Malinowska 0684ceb42b Add checking namespace to matching pods with PDBs 2017-05-31 15:58:37 +02:00
Marcin Wielgus 34eb4973f8 Fix imports in cluster autoscaler after migrating it from contrib 2017-04-18 15:42:04 +02:00
Marcin Wielgus 5b4441083a Cluster-autoscaler: include PodDisruptionBudget in drain - part 1/2 2017-03-06 17:15:04 +01:00
Marcin Wielgus 89a370de1a Cluster-autoscaler: expand half-deleted pod skip logic in drain 2017-02-23 16:43:32 +01:00
Marcin Wielgus ce45c33d29 Cluster-autoscaler: update CA code for godep refresh 2017-01-20 14:46:34 +01:00
Marcin Wielgus 7b63b6c1f1 Cluster-autoscaler: update code to compile with K8S 1.5 2016-12-13 17:22:57 +01:00
Marcin Wielgus df078c9101 Cluster-autoscaler: own drain 2016-10-27 16:58:59 +02:00
Jan Chaloupka e028312170 Remove "All rights reserved" from all the headers 2016-09-08 13:02:39 +02:00
Piotr Szczesniak 7832013a3f [ca] Factored out common functions in drain logic 2016-08-11 10:09:24 +02:00
Filip Grzadkowski ca15ccd27a Don't delete nodes with pods with local storage 2016-06-10 13:34:02 +02:00
Marcin Wielgus 084e0ec0c5 Cluster-autoscaler: do not delete nodes with kube-system, not-mirrored, not-daemon set pods 2016-05-24 12:34:59 +02:00
Marcin Wielgus 945bb7de3a Cluster-autoscaler: do full scheduling check in calculating node utilization in scale-down 2016-05-23 14:40:29 +02:00
Marcin Wielgus 1b5a86b043 Cluster-autoscaler: Fast drain impl that doesn't talk to api server 2016-05-23 09:44:16 +02:00