Commit Graph

15 Commits

Author SHA1 Message Date
Anton Khizunov 9f548f5802 aws cloudprovider - separate aws sdk provider from aws manager 2022-08-24 11:53:54 +03:00
Johannes Würbach 285500ed2c
feat(aws): reduce auto-discovery API calls 2022-07-21 17:11:18 +02:00
Austin Siu a1faeddbe7 Use DescribeInstanceTypes API to get EC2 instance type details 2021-12-07 00:05:36 -06:00
GuyTempleton 16db9b0b8a
CA - AWS - Update StaticListLastUpdateTime on re-generating instance list
Also add g5 instance type
2021-11-15 14:19:52 +00:00
sturman 8042678dc6
Cluster-Autoscaler update AWS EC2 instance types with c6i.* and dl1.* 2021-10-29 09:45:29 +03:00
GuyTempleton 2e17b9935f
CA - AWS - Instance Type Regeneration
Adds vt1 instance details
2021-10-03 22:38:04 +01:00
Adrian Lai 1177ee04f3
Optimise GenerateEC2InstanceTypes unmarshal memory usage
The pricing json for us-east-1 is currently 129MB. Currently fetching
this into memory and parsing results in a large memory footprint on
startup, and can lead to the autoscaler being OOMKilled.

Change the ReadAll/Unmarshal logic to a stream decoder to significantly
reduce the memory use.
2021-08-16 11:12:59 +01:00
Adrian Lai 329c6522b0
Break out unmarshal from GenerateEC2InstanceTypes
Refactor to allow for optimisation
2021-08-09 10:46:30 +01:00
darkpssngr 0f5fde6b28 use aws sdk to find region 2021-06-09 11:23:44 +05:30
Benjamin Pineau 3ffe4b3557 aws: support arm64 instances
Sets the `kubernetes.io/arch` (and legacy `beta.kubernetes.io/arch`)
to the proper instance architecture.

While at it, re-gen the instance types list (adding new instance types
that were missing)
2021-04-19 15:45:19 +02:00
danthegoodman1 81f1cea7db
Add Fetch Error Output to Warning Log
Add the output of the error to the log so users can identify why the autoscaler was unable to fetch the url.

See https://github.com/kubernetes/autoscaler/issues/3891
2021-02-21 13:11:43 -05:00
Diego Bonfigli 8e6b8c0c11 Re-run gen to pick up new AWS instance types 2020-12-07 22:36:53 +01:00
Hanfei Shen b5f95e0d73 Fix pricing endpoint in AWS China Region 2020-09-18 14:54:14 +08:00
Maciek Pytel 655b4081f4 Migrate to klog v2 2020-06-05 17:22:26 +02:00
Jiaxin Shan 7eb864502c Load AWS EC2 Instance Types dynamically 2019-10-14 17:19:42 -07:00