Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cluster autoscaler to read EC2 instance types to build catalog dynamically #13532

Conversation

seh
Copy link
Contributor

@seh seh commented Apr 20, 2022

When the cluster autoscaler builds its EC2 instance type catalog dynamically instead of using only its statically defined set, grant it the additional IAM permissions—as prescribed in the cluster autoscaler documentation—required to fetch the instance types from the AWS API.

Fixes #13520.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 20, 2022
@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 20, 2022
When the cluster autoscaler builds its EC2 instance type catalog
dynamically instead of using only its statically defined set, grant it
the additional IAM permissions required to fetch the instance types
from the AWS API.
@seh seh force-pushed the augment-cluster-autoscaler-iam-permissions-conditionally branch from fb5f60f to de1ecd8 Compare April 20, 2022 16:28
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 20, 2022
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 20, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman, olemarkus

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@olemarkus
Copy link
Member

/retest

2 similar comments
@hakman
Copy link
Member

hakman commented Apr 20, 2022

/retest

@hakman
Copy link
Member

hakman commented Apr 20, 2022

/retest

@k8s-ci-robot k8s-ci-robot merged commit 3242dc3 into kubernetes:master Apr 20, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.24 milestone Apr 20, 2022
k8s-ci-robot added a commit that referenced this pull request Apr 21, 2022
…igin-release-1.23

Automated cherry pick of #13532: Allow cluster autoscaler to get EC2 instance types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cluster Autoscaler IAM policy lacks permission to list EC2 instance types
4 participants