mirror of https://github.com/kubernetes/kops.git
Add autoscaling policy to master role
This commit is contained in:
parent
849815b638
commit
9e9c0c105b
|
|
@ -140,6 +140,17 @@ func (b *IAMPolicyBuilder) BuildAWSIAMPolicy() (*IAMPolicy, error) {
|
||||||
Resource: []string{"*"},
|
Resource: []string{"*"},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
p.Statement = append(p.Statement, &IAMStatement{
|
||||||
|
Effect: IAMStatementEffectAllow,
|
||||||
|
Action: []string{
|
||||||
|
"autoscaling:DescribeAutoScalingGroups",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"autoscaling:SetDesiredCapacity",
|
||||||
|
"autoscaling:TerminateInstanceInAutoScalingGroup",
|
||||||
|
},
|
||||||
|
Resource: []string{"*"},
|
||||||
|
})
|
||||||
|
|
||||||
// Restrict the KMS permissions to only the keys that are being used
|
// Restrict the KMS permissions to only the keys that are being used
|
||||||
kmsKeyIDs := sets.NewString()
|
kmsKeyIDs := sets.NewString()
|
||||||
for _, e := range b.Cluster.Spec.EtcdClusters {
|
for _, e := range b.Cluster.Spec.EtcdClusters {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue