Commit Graph

6155 Commits

Author SHA1 Message Date
Yaroslava Serdiuk 83fe153e8f Introduce PdbRemainingDisruptions struct 2022-08-30 15:00:53 +00:00
Kubernetes Prow Robot ef2d9e7169
Merge pull request #4902 from ionos-cloud/PSC-2673/vpa_delete_pods_enhancement
[VPA] KEP-4902: Delete OOM Pods
2022-08-30 02:17:01 -07:00
Kubernetes Prow Robot aa2e25fda5
Merge pull request #5135 from x13n/patch-3
Add x13n to cluster autoscaler reviewers
2022-08-30 02:13:01 -07:00
Kubernetes Prow Robot 0173b72837
Merge pull request #5141 from khizunov/remove-obsolete-config
helm chart - remove obsolete GCE cloudConfigPath usage
2022-08-30 01:59:01 -07:00
Anton Khizunov dcd185d34f helm chart - remove obsolete GCE cloudConfigPath usage 2022-08-29 17:31:17 +03:00
Kubernetes Prow Robot c5d2f38760
Merge pull request #5137 from Kamatera/autoscaler-fix-kamatera-cloudprovider-unittest
cluster-autoscaler: fix non-deterministic kamatera cloudprovider unit test
2022-08-29 01:18:37 -07:00
Ori Hoch b6d53e8672 fix non-deterministic kamatera cloudprovider unit test 2022-08-27 11:20:02 +03:00
Matthias Bertschy 690dcd161e move targetCPUPercentile into a flag 2022-08-26 22:51:09 +02:00
Daniel Kłobuszewski 6d7582ee44
Add x13n to cluster autoscaler reviewers 2022-08-26 16:56:59 +02:00
Kubernetes Prow Robot f3242d8485
Merge pull request #5132 from olagacek/master
Bump k/k dependencies to v1.25.0 together with go.mod go version.
2022-08-26 07:26:24 -07:00
Kubernetes Prow Robot cca311185c
Merge pull request #5129 from GregoryVds/GregoryVds-update-aws-readme
Update IAM policy in AWS doc
2022-08-26 06:50:24 -07:00
Kubernetes Prow Robot 500652b6e1
Merge pull request #5123 from elmiko/update-capi-docs
update clusterapi readme
2022-08-26 06:48:25 -07:00
Aleksandra Gacek ab2cc2fb8a Bump k/k dependencies to v1.25.0 together with go.mod go version. 2022-08-26 13:38:07 +02:00
Gregory Vander Schueren 85955a1d6d
Update IAM policy in AWS doc
Without this permission, you get the following error:
Failed to regenerate ASG cache: cannot autodiscover ASGs: AccessDenied: User: <arn> is not authorized to perform: autoscaling:DescribeTags because no identity-based policy allows the autoscaling:DescribeTags action.

This is also mentionned by AWS doc: https://docs.aws.amazon.com/eks/latest/userguide/autoscaling.html
2022-08-25 17:46:45 +02:00
Kubernetes Prow Robot 81d70f94ad
Merge pull request #5126 from jbartosik/vpa0120
VPA release 0.12.0
2022-08-25 06:34:07 -07:00
Kubernetes Prow Robot c1f37fa84d
Merge pull request #5127 from voelzmo/enh/update-vpa-go-version
Update go version to 1.18.5
2022-08-25 06:26:07 -07:00
Marco Voelz 01e6377679 Update go version to 1.18.5
Also switch from `go get` to `go install`, as `go get` no longer installs binaries.
2022-08-25 14:22:39 +02:00
Joachim Bartosik 6a48e8411c VPA release 0.12.0 2022-08-25 14:01:39 +02:00
Kubernetes Prow Robot b718e74780
Merge pull request #5105 from khizunov/allow-aws-cloud-config
helm chart - Allow cloud config path for AWS provider
2022-08-25 04:48:07 -07:00
Anton Khizunov b0ffcce0b2 helm chart - Allow cloud config path for AWS provider 2022-08-25 12:39:50 +03:00
Kubernetes Prow Robot 832154bd2c
Merge pull request #5111 from jbartosik/metric_server_responses
Export metric_server_response like other VPA recommender metrics
2022-08-25 01:26:05 -07:00
Joachim Bartosik abcbe8fc9f Export client name with responses from metrics server
In case we instantiate multiple clients and want to distinguish responses they're getting
2022-08-24 20:26:37 +02:00
Michael McCune e089d14692 update clusterapi readme
to be more accurate about scale from zero support.
2022-08-24 12:52:57 -04:00
Joachim Bartosik 322be71d90 Export metric_server_response like other VPA recommender metrics 2022-08-24 13:50:32 +02:00
Kubernetes Prow Robot a503c84607
Merge pull request #5013 from jayantjain93/vendor-1.25.0
Update Vendor v1.25.0-alpha.2 , bump Go to 1.18.1 and additional support for StorageInfoListers
2022-08-24 01:08:25 -07:00
Jayant Jain dde246df34 update golang version to 1.18.1
- changing now since apimachinary is using type which is available in 1.18
2022-08-23 13:56:51 +00:00
Jayant Jain 4fdf24addb add support for isPVC check in basic_cluster_snapshot.go and delta_cluster_snapshot.go
- added a comment in delegating_shared_lister.go
2022-08-23 13:56:51 +00:00
Jayant Jain 5c31c330f9 Fix CA breaking after vendor update to v1.25.0-alpha.0 by supporting StorageInfoLister 2022-08-23 13:56:50 +00:00
Jayant Jain 29f2a6a4ce Cluster Autoscaler Update-vendor to v1.25.0-alpha.2 2022-08-23 13:56:41 +00:00
Kubernetes Prow Robot 8b791af138
Merge pull request #5108 from grosser/grosser/dupe
cluster-autoscaler aws: remove duplicated permissions
2022-08-23 01:25:23 -07:00
Benjamin Pineau 669f627300 Azure: support node label keys having underscores
Azure VMSS tags allowed character set isn't the exact same as the Kubernetes labels' character set.
In particular "/" aren't supported as VMSS tags, but are allowed for Kubernetes labels.
To support reflecting label values containing "/" to VMSS tags, the cluster-autoscaler evaluates underscores ("_") in VMSS tags keys as slashes ("/") in nodes labels keys.

But due to that substitution, a node label containing "_" (also a valid character for a k8s label) can't be reflected to VMSS tags (as it will be mis-read as a "/").

This PR takes inspiration from rfc6901's JSON escaping (rather hideous, but possibly familiar as it's used by kubectl-patch), by using ("~2") as a replacement for "_".

The tilde (~) character isn't allowed in k8s labels (and taints) keys so there's no possible ambiguities or regressions (a VMSS tag key having a ~ is currently evaluated to an impossible k8s label).

Labels and taints supported character sets:
https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#taint
2022-08-22 16:43:43 +02:00
Kubernetes Prow Robot f5025c2368
Merge pull request #5088 from Juneezee/test/t.Setenv
test: use `T.Setenv` to set env vars in tests
2022-08-22 06:43:44 -07:00
Kubernetes Prow Robot 4511ce0c36
Merge pull request #5101 from Kamatera/kamatera-cloudprovider
cluster-autoscaler: add cloudprovider - Kamatera
2022-08-22 06:41:43 -07:00
Kubernetes Prow Robot ceb17a6004
Merge pull request #5110 from elmiko/update-capi-nodeset
update clusterapi nodegroups processor
2022-08-22 05:55:43 -07:00
Kubernetes Prow Robot b553a7a300
Merge pull request #5112 from pbeschetnov/master
Export validateVPA to use in other places
2022-08-22 00:59:43 -07:00
Pavel Beschetnov 90626ffda4 Export validateVPA to use in other places 2022-08-19 13:56:59 +00:00
Michael McCune ba9c164463 update clusterapi nodegroups processor
this change adds labels that are used on Alibaba Cloud and IBM Cloud for
CSI and CCM.
2022-08-18 15:55:35 -04:00
Michael Grosser d095d8bef1
cluster-autoscaler aws: remove duplicated permissions 2022-08-18 10:17:18 -07:00
Eng Zer Jun 66805969de
test: use `T.Setenv` to set env vars in tests
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-08-18 21:28:18 +08:00
Ori Hoch 66eb4e9824 add kamatera cloudprovider
implementation of kamatera autoscaler "glue code" based on linode

add more implementations + tests

finalized implementation + tests, need to do manual tests

finalize the implementation

manual testing

fixes and improvements with manual testing on Rancher

allow 0 size node group, update node provider id

update tests

add deployment example and documentation

add kamatera cloudprovider OWNERS file

commented user name in OWNERS

fix golint errors

fix gofmt

fix boilerplate error on example scripts
2022-08-18 15:37:59 +03:00
Kubernetes Prow Robot e3552bb95e
Merge pull request #5084 from grosser/grosser/ref
cluster-autoscaler: avoid goto in filterNodeGroupsByPods
2022-08-18 04:54:36 -07:00
Jacob Hands 5d3ad0c950
Update cluster-proportional-autoscaler version in FAQ (#5098) 2022-08-18 13:48:18 +02:00
Kubernetes Prow Robot 68db7def7e
Merge pull request #5102 from jbartosik/metric_server_responses
Register VPA metrics client metrics
2022-08-18 04:42:36 -07:00
Kubernetes Prow Robot 06e0a711b8
Merge pull request #5103 from towca/jtuznik/custom-fix
CA: GCE: fix custom machine type parsing
2022-08-18 02:54:37 -07:00
Kubernetes Prow Robot e478ee2959
Merge pull request #4840 from elmiko/capi-scale-from-zero
clusterapi scale from zero support
2022-08-18 02:38:36 -07:00
Kuba Tużnik ba2c17a6e5 CA: GCE: fix custom machine type parsing
The previous implementation didn't handle machine types with the
"-ext" suffix, or E2 shared-core custom machine types.
2022-08-18 11:02:38 +02:00
Michael McCune f02c9972eb add more caching to clusterapi provider
this change adds logic to create informers for the infrastructure
machine templates that are discovered during the scale from zero checks.
it also adds tests and a slight change to the controller structure to
account for the dynamic informer creation.
2022-08-17 16:25:16 -04:00
Joachim Bartosik 93a1ca9008 Register VPA metrics client metrics
This should be part of #5100
2022-08-17 17:00:55 +02:00
Kubernetes Prow Robot d22c7acb65 Merge pull request #5097 from jahands/cluster-autoscaler-faq
Improve overprovisioning pause pod termination time in FAQ
2022-08-17 06:45:10 -07:00
Kubernetes Prow Robot 53794f7397
Merge pull request #5100 from jbartosik/metric_server_responses
Export metric about result of queried VPA makes to metrics server
2022-08-17 05:47:11 -07:00