Commit Graph

6565 Commits

Author SHA1 Message Date
Ole Markus With 9613f30b93 Use cloud-provider-aws instead of legacy-cloud-providers/aws 2023-04-13 17:46:14 +02:00
Kubernetes Prow Robot 9ddc04ddac
Merge pull request #5677 from hetznercloud/arm
Add support for Hetzner Cloud Arm Server Types
2023-04-13 05:00:35 -07:00
Kubernetes Prow Robot 76fc21e74f
Merge pull request #5666 from azylinski/gce-autoscaling-fetch-reservations
Add FetchReservations to GCE Autoscaling client
2023-04-13 04:14:35 -07:00
Artur Żyliński b6c887c8b7 Add FetchReservations to GCE Autoscaling client 2023-04-13 11:08:55 +02:00
Kubernetes Prow Robot 1a37590de6
Merge pull request #4676 from mboersma/cluster-api-machinepools
[clusterapi] Add support for MachinePools
2023-04-12 12:30:31 -07:00
Matt Boersma 17d2bd968e
[clusterapi] Add support for MachinePools
squash
2023-04-12 09:22:49 -06:00
Kubernetes Prow Robot 973426d3b0
Merge pull request #5652 from kisieland/orchestrator-comments-fix
CA orchestrator exports new methods/functions
2023-04-12 06:30:32 -07:00
Julian Tölle 6e94d1a84a
feat: select correct image by ARCH 2023-04-12 11:59:41 +02:00
Julian Tölle c3399dcbc1
feat: predict LabelArchStable for new hetzner nodes 2023-04-12 11:59:41 +02:00
Julian Tölle 6525fe3500
chore(deps): update vendored hcloud-go to 1.42.0 2023-04-12 11:59:05 +02:00
Kubernetes Prow Robot f173888d38
Merge pull request #5643 from mwielgus/balancer-main
Balancer - main.go and yamls
2023-04-11 23:46:30 -07:00
Marcin Wielgus fb425d81f1 Balancer - main.go and yamls 2023-04-11 16:21:13 +02:00
Kubernetes Prow Robot 23843f7795
Merge pull request #5641 from sarab97/machine-change
Switched from N1 to E2 machine
2023-04-11 01:05:18 -07:00
Kubernetes Prow Robot dfaadfae8f
Merge pull request #5632 from vadasambar/fix/4456/identify-deleted-nodes-for-aws
fix: implement function to identify if node is present in aws
2023-04-10 01:07:16 -07:00
Kubernetes Prow Robot 88bc588ce2
Merge pull request #5662 from kubernetes/dependabot/docker/vertical-pod-autoscaler/builder/golang-1.20.3
Bump golang from 1.19.5 to 1.20.3 in /vertical-pod-autoscaler/builder
2023-04-06 14:45:34 -07:00
dependabot[bot] 5136b4b25e
Bump golang from 1.19.5 to 1.20.3 in /vertical-pod-autoscaler/builder
Bumps golang from 1.19.5 to 1.20.3.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-05 19:04:13 +00:00
Kubernetes Prow Robot ad86bdd641
Merge pull request #5653 from BigDarkClown/fix-drain
Fix drain logic when skipNodesWithCustomControllerPods=false, set NodeDeleteOptions correctly
2023-04-04 03:51:55 -07:00
Bartłomiej Wróblewski d5d0a3c7b7 Fix drain logic when skipNodesWithCustomControllerPods=false, set NodeDeleteOptions correctly 2023-04-04 09:50:26 +00:00
Daniel Gutowski 943f1e80c6 Export couple of methods/functions:
* UpcomingNodes method, which lists upcoming nodes
* GetRemainingPods and GetPodsAwaitingEvaluation, which
  list pods that cannot be helped and could be helped
  (but in a next loop).
2023-04-04 02:40:37 -07:00
Kubernetes Prow Robot 70fd890ebc
Merge pull request #5651 from asherf/upgrade
[helm chart] Upgrade Cluster Autoscaler chart to use Cluster Autoscal…
2023-04-04 01:13:52 -07:00
Asher Foa ccb5db1540 [helm chart] Upgrade Cluster Autoscaler chart to use Cluster Autoscaler v1.26.2
Signed-off-by: Asher Foa <1268088+asherf@users.noreply.github.com>
2023-04-03 10:44:08 -04:00
Kubernetes Prow Robot 9f25a89096
Merge pull request #5567 from voelzmo/enh/vpa-dependabot
Add dependabot configuration for VPA
2023-04-03 07:01:52 -07:00
sarab c7b707e7bf Switched from N1 to E2 machine 2023-03-31 11:16:14 +05:30
vadasambar 1cb55fe546 fix: implement function to identify if node is present in aws
- this is a follow-up to https://github.com/kubernetes/autoscaler/pull/5054
- this might fix https://github.com/kubernetes/autoscaler/issues/4456

Signed-off-by: vadasambar <suraj.bankar@acquia.com>

fix: make `HasInstance` in aws provider thread-safe

Signed-off-by: vadasambar <suraj.bankar@acquia.com>
2023-03-31 09:46:22 +05:30
Kubernetes Prow Robot e60803842f
Merge pull request #5638 from hetznercloud/docs-enforce-node-group-min-size
docs: fix invalid flag name
2023-03-30 14:37:49 -07:00
Julian Tölle 2f5ea34f86
docs: fix invalid flag name 2023-03-30 17:16:08 +02:00
Kubernetes Prow Robot 568f695f17
Merge pull request #5635 from jayantjain93/fix-os-distribution
[GCE] default os_distribution to default if extraction from kube-env …
2023-03-29 07:51:48 -07:00
Jayant Jain 0c29fddfa9 [GCE] default os_distribution to default if extraction from kube-env is unknown 2023-03-29 11:27:26 +00:00
Kubernetes Prow Robot e29dff136f
Merge pull request #5627 from kisieland/nit-fix
Remove Factory interface since it is not used.
2023-03-28 17:09:24 -07:00
Daniel Gutowski 3c414b8e1d Couple post-refactor clean-ups:
* Remove Factory interface since it is not used
* Remove mentions of wrapper from comments
* change the 'w' to 'o' in methods of "ScaleUpOrchestrator" structore
* Add "NewSkippedReasons" constructor
2023-03-28 03:46:40 -07:00
Kubernetes Prow Robot a8d322942d
Merge pull request #5623 from kgolab/master
Fix the setup for allow containers to fail (they should be OOM-killed)
2023-03-27 10:30:28 -07:00
Kubernetes Prow Robot 27cab2e30a
Merge pull request #5550 from DataDog/lt-overrides-and-instancetyperequirements
AWS: only look for InstanceRequirements when needed
2023-03-27 07:28:28 -07:00
Karol Golab 4c4ff67d61 Fix the setup for allow containers to fail (they should be OOM-killed) 2023-03-27 15:47:17 +02:00
Kubernetes Prow Robot 28a1abf601
Merge pull request #5558 from ionos-cloud/add-vpa-to-chart
chart: Add option to install VPA
2023-03-27 06:26:30 -07:00
Kubernetes Prow Robot 52f6c67596
Merge pull request #5621 from kgolab/master
Make the "OOMing pods under VPA" test more robust.
2023-03-27 03:49:55 -07:00
Karol Golab 20420986a4 Make the "OOMing pods under VPA" test more robust. 2023-03-27 11:52:28 +02:00
Kubernetes Prow Robot 39e4d59b69
Merge pull request #5495 from mwielgus/controller-impl
Balancer controller implementation
2023-03-27 01:35:57 -07:00
Kubernetes Prow Robot dcf8f822f5
Merge pull request #5551 from askoriy/memory-volumes-evictable
Consider pods with emptydir volume in memory be evictable
2023-03-24 08:14:32 -07:00
Marcin Wielgus 0f51c06352 Balancer controller impl 2023-03-24 13:46:42 +01:00
Kubernetes Prow Robot d91bee9e4e
Merge pull request #5613 from hezhizhen/chore
Fix typo & replace deprecated functions & replace literals with constants
2023-03-24 05:32:33 -07:00
Zhizhen He f953f5c8fa
Fix typo & replace deprecated functions & replace literals with constants 2023-03-24 18:07:52 +08:00
Kubernetes Prow Robot b8ba2334e4
Merge pull request #5507 from vadasambar/feature/5387/allow-scale-down-with-custom-controller-pods-2
feat: check only controller ref to decide if a pod is replicated
2023-03-24 02:56:31 -07:00
Kubernetes Prow Robot 44771ef3f8
Merge pull request #5609 from Shubham82/add-link-mirror_pod
Improvement: Added the Link for Mirror pods.
2023-03-23 09:56:33 -07:00
shubham82 1ea7fb0ce5 link DaemonSet and Mirror Pods to k8s docs. 2023-03-23 13:34:07 +09:00
Kubernetes Prow Robot 543fb03975
Merge pull request #5610 from jayantjain93/fallback-machine-family
GCE: Fallback f1 and g1 machine families to n1
2023-03-22 06:06:36 -07:00
Jayant Jain 9f8916d3a5 Fallback f1 and g1 machine families to n1 2023-03-22 12:15:04 +00:00
vadasambar ff6fe5833d feat: check only controller ref to decide if a pod is replicated
Signed-off-by: vadasambar <surajrbanakar@gmail.com>
(cherry picked from commit 144a64a402)

fix: set `replicated` to true if controller ref is set to `true`
- forgot to add this in the last commit

Signed-off-by: vadasambar <surajrbanakar@gmail.com>
(cherry picked from commit f8f458295d)

fix: remove `checkReferences`
- not needed anymore
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

(cherry picked from commit 5df6e31f8b)

test(drain): add test for custom controller pod
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

feat: add flag to allow scale down on custom controller pods
- set to `false` by default
- `false` will be set to `true` by default in the future
- right now, we want to ensure backwards compatibility and make the feature available if the flag is explicitly set to `true`
- TODO: this code might need some unit tests. Look into adding unit tests.
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

fix: remove `at` symbol in prefix of `vadasambar`
- to keep it consistent with previous such mentions in the code
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

test(utils): run all drain tests twice
- once for  `allowScaleDownOnCustomControllerOwnedPods=false`
- and once for `allowScaleDownOnCustomControllerOwnedPods=true`
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

docs(utils): add description for `testOpts` struct
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

docs: update FAQ with info about `allow-scale-down-on-custom-controller-owned-pods` flag
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: rename `allow-scale-down-on-custom-controller-owned-pods` -> `skip-nodes-with-custom-controller-pods`
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: rename `allowScaleDownOnCustomControllerOwnedPods` -> `skipNodesWithCustomControllerPods`
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

test(utils/drain): fix failing tests
- refactor code to add cusom controller pod test
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: fix long code comments
- clean-up print statements
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: move `expectFatal` right above where it is used
- makes the code easier to read
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: fix code comment wording
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: address PR comments
- abstract legacy code to check for replicated pods into a separate function so that it's easier to remove in the future
- fix param info in the FAQ.md
- simplify tests and remove the global variable used in the tests
- rename `--skip-nodes-with-custom-controller-pods` -> `--scale-down-nodes-with-custom-controller-pods`
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: rename flag `--scale-down-nodes-with-custom-controller-pods` -> `--skip-nodes-with-custom-controller-pods`
- refactor tests
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

docs: update flag info
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

fix: forgot to change flag name on a line in the code
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: use `ControllerRef()` directly instead of `controllerRef`
- we don't need an extra variable
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: create tests consolidated test cases
- from looping over and tweaking shared test cases
- so that we don't have to duplicate shared test cases
Signed-off-by: vadasambar <surajrbanakar@gmail.com>

refactor: append test flag to shared test description
- so that the failed test is easy to identify
- shallow copy tests and add comments so that others do the same
Signed-off-by: vadasambar <surajrbanakar@gmail.com>
2023-03-22 10:51:07 +05:30
shubham82 b849ddf30e Improvement: Added the Link for Mirror pods. 2023-03-22 12:51:31 +09:00
Kubernetes Prow Robot 241643dc05
Merge pull request #5597 from kisieland/scale-up-changes-v2
Put ScaleUp logic behind an interface
2023-03-21 08:38:12 -07:00
Kubernetes Prow Robot b31b006170
Merge pull request #5553 from mboersma/capi-err-checks
[cluster-api] Handle ignored errors
2023-03-21 08:19:08 -07:00