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

aws-iam: Add autoscaling:DescribeTags #2681

Closed
magnusboman opened this issue Jun 3, 2017 · 6 comments · Fixed by #4051
Closed

aws-iam: Add autoscaling:DescribeTags #2681

magnusboman opened this issue Jun 3, 2017 · 6 comments · Fixed by #4051
Assignees

Comments

@magnusboman
Copy link

Latest versions of the cluster-autoscaler can automatically detect the ASG used by the nodes, but it requires that autoscaling:DescribeTags rights are added to the AWS IAM policy.

@felipejfc
Copy link
Contributor

+1

@chrislovecnm
Copy link
Contributor

I think we have this fixed. Need to check

/assign

@johanneswuerbach
Copy link
Contributor

Looking into kops v1.8.0, autoscaling:DescribeTags seems not be included yet:
Legacy:

"Action": [
"autoscaling:DescribeAutoScalingGroups",
"autoscaling:DescribeAutoScalingInstances",
"autoscaling:DescribeLaunchConfigurations",
"autoscaling:GetAsgForInstance",
"autoscaling:SetDesiredCapacity",
"autoscaling:TerminateInstanceInAutoScalingGroup",
"autoscaling:UpdateAutoScalingGroup"
],

Strict:
{
"Sid": "kopsK8sASMasterPermsAllResources",
"Effect": "Allow",
"Action": [
"autoscaling:DescribeAutoScalingGroups",
"autoscaling:DescribeLaunchConfigurations",
"autoscaling:GetAsgForInstance"
],
"Resource": [
"*"
]
},
{
"Sid": "kopsK8sASMasterPermsTaggedResources",
"Effect": "Allow",
"Action": [
"autoscaling:SetDesiredCapacity",
"autoscaling:TerminateInstanceInAutoScalingGroup",
"autoscaling:UpdateAutoScalingGroup"
],
"Resource": [
"*"
],
"Condition": {
"StringEquals": {
"ec2:ResourceTag/KubernetesCluster": "iam-builder-test.k8s.local"
}
}
},

@robinpercy
Copy link
Contributor

I think we have this fixed. Need to check

@chrislovecnm I just hit this as well with kops 1.8.0. Do we want to fix it in kops? There's a case to be made for using something like kube2iam instead.

@chrislovecnm
Copy link
Contributor

Yes we need this in kops. We may be missing another perms as well. Really we should have a use autoscalig flag to enable / disable in the api.

@robinpercy
Copy link
Contributor

sounds good. Will open a PR.

/assign

k8s-github-robot pushed a commit that referenced this issue Dec 14, 2017
Automatic merge from submit-queue.

Adding DescribeTags to masters

/fixes #2681
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants