-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add Cluster-Autoscaling IAM #268
Conversation
cmd/eksctl/create.go
Outdated
@@ -99,6 +99,7 @@ func createClusterCmd() *cobra.Command { | |||
|
|||
fs.BoolVar(&cfg.Addons.WithIAM.PolicyAmazonEC2ContainerRegistryPowerUser, "full-ecr-access", false, "enable full access to ECR") | |||
fs.BoolVar(&cfg.Addons.Storage, "storage-class", true, "if true (default) then a default StorageClass of type gp2 provisioned by EBS will be created") | |||
fs.BoolVar(&cfg.Addons.WithIAM.AutoScalingGroup, "auto-scaling-policy", false, "enable iam policy dependency for cluster-autoscaler") |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall, but please apply suggested changes 👍
Some docs on installing autoscaler itself would help. A blog post would be very neat, or perhaps there's some simple documentation we could link to?
pkg/cfn/builder/iam.go
Outdated
@@ -132,5 +132,18 @@ func (n *NodeGroupResourceSet) addResourcesForIAM() { | |||
}, | |||
) | |||
|
|||
if n.spec.Addons.WithIAM.AutoScalingGroup { | |||
n.rs.attachAllowPolicy("AutoScalingControl", refIR, "*", |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
pkg/eks/api/api.go
Outdated
@@ -89,4 +89,5 @@ type ClusterAddons struct { | |||
// AddonIAM provides an addon for the AWS IAM integration | |||
type AddonIAM struct { | |||
PolicyAmazonEC2ContainerRegistryPowerUser bool | |||
AutoScalingGroup bool |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Naming consistency makes a lot of sense here, that was the biggest thing I was struggling with. |
@Lazyshot would you mind to rebase and squash please? |
d75e954
to
f216ac9
Compare
There seem to be conflicts... |
I am keen to get this in soon and cut 0.1.7! |
I'll rebase again from master. |
Adds the ability and flag for requesting the necessary policy for the cluster-autoscaler application. This will be revisited once the add-on work is done. Issue #170
f216ac9
to
7ae8543
Compare
Adds the ability and flag for requesting the necessary
policy for the cluster-autoscaler application. This will
be revisited once the add-on work is done.
Issue #170
Checklist
make build
)make test
)