mirror of https://github.com/kubernetes/kops.git
Don't start kubelet if we are warming
This commit is contained in:
parent
eff476fe36
commit
af92896dc7
|
|
@ -42,8 +42,13 @@ import (
|
||||||
"github.com/blang/semver/v4"
|
"github.com/blang/semver/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
ConfigurationModeWarming string = "Warming"
|
||||||
|
)
|
||||||
|
|
||||||
// NodeupModelContext is the context supplied the nodeup tasks
|
// NodeupModelContext is the context supplied the nodeup tasks
|
||||||
type NodeupModelContext struct {
|
type NodeupModelContext struct {
|
||||||
|
Cloud fi.Cloud
|
||||||
Architecture architectures.Architecture
|
Architecture architectures.Architecture
|
||||||
Assets *fi.AssetStore
|
Assets *fi.AssetStore
|
||||||
Cluster *kops.Cluster
|
Cluster *kops.Cluster
|
||||||
|
|
@ -62,6 +67,10 @@ type NodeupModelContext struct {
|
||||||
|
|
||||||
kubernetesVersion semver.Version
|
kubernetesVersion semver.Version
|
||||||
bootstrapCerts map[string]*nodetasks.BootstrapCert
|
bootstrapCerts map[string]*nodetasks.BootstrapCert
|
||||||
|
|
||||||
|
// ConfigurationMode determines if we are prewarming an instance or running it live
|
||||||
|
ConfigurationMode string
|
||||||
|
InstanceID string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Init completes initialization of the object, for example pre-parsing the kubernetes version
|
// Init completes initialization of the object, for example pre-parsing the kubernetes version
|
||||||
|
|
|
||||||
|
|
@ -293,6 +293,11 @@ func (b *KubeletBuilder) buildSystemdService() *nodetasks.Service {
|
||||||
|
|
||||||
service.InitDefaults()
|
service.InitDefaults()
|
||||||
|
|
||||||
|
if b.ConfigurationMode == "Warming" {
|
||||||
|
|
||||||
|
service.Running = fi.Bool(false)
|
||||||
|
}
|
||||||
|
|
||||||
return service
|
return service
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -443,14 +448,7 @@ func (b *KubeletBuilder) buildKubeletConfigSpec() (*kops.KubeletConfigSpec, erro
|
||||||
instanceTypeName = *b.NodeupConfig.DefaultMachineType
|
instanceTypeName = *b.NodeupConfig.DefaultMachineType
|
||||||
}
|
}
|
||||||
|
|
||||||
region, err := awsup.FindRegion(b.Cluster)
|
awsCloud := b.Cloud.(awsup.AWSCloud)
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
awsCloud, err := awsup.NewAWSCloud(region, nil)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
// Get the instance type's detailed information.
|
// Get the instance type's detailed information.
|
||||||
instanceType, err := awsup.GetMachineTypeInfo(awsCloud, instanceTypeName)
|
instanceType, err := awsup.GetMachineTypeInfo(awsCloud, instanceTypeName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
|
|
@ -245,6 +245,7 @@ func (r *NodeRoleAPIServer) BuildAWSPolicy(b *PolicyBuilder) (*Policy, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
addMasterEC2Policies(p, resource, b.Cluster.Spec.IAM.Legacy, b.Cluster.GetName())
|
addMasterEC2Policies(p, resource, b.Cluster.Spec.IAM.Legacy, b.Cluster.GetName())
|
||||||
|
addASLifecyclePolicies(p, resource, b.Cluster.GetName())
|
||||||
addCertIAMPolicies(p, resource)
|
addCertIAMPolicies(p, resource)
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
|
|
@ -348,6 +349,7 @@ func (r *NodeRoleNode) BuildAWSPolicy(b *PolicyBuilder) (*Policy, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
addNodeEC2Policies(p, resource)
|
addNodeEC2Policies(p, resource)
|
||||||
|
addASLifecyclePolicies(p, resource, b.Cluster.GetName())
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
if p, err = b.AddS3Permissions(p); err != nil {
|
if p, err = b.AddS3Permissions(p); err != nil {
|
||||||
|
|
@ -1009,10 +1011,34 @@ func addMasterASPolicies(p *Policy, resource stringorslice.StringOrSlice, legacy
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
&Statement{
|
||||||
|
Effect: StatementEffectAllow,
|
||||||
|
Action: stringorslice.Of(
|
||||||
|
"autoscaling:CompleteLifecycleAction", // aws_manager.go
|
||||||
|
"autoscaling:DescribeAutoScalingInstances", // aws_instancegroups.go
|
||||||
|
),
|
||||||
|
Resource: resource,
|
||||||
|
Condition: Condition{
|
||||||
|
"StringEquals": map[string]string{
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": clusterName,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func addASLifecyclePolicies(p *Policy, resource stringorslice.StringOrSlice, clusterName string) {
|
||||||
|
p.Statement = append(p.Statement,
|
||||||
|
&Statement{
|
||||||
|
Effect: StatementEffectAllow,
|
||||||
|
Action: stringorslice.Of(
|
||||||
|
"autoscaling:DescribeAutoScalingInstances",
|
||||||
|
),
|
||||||
|
Resource: resource,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
func addCertIAMPolicies(p *Policy, resource stringorslice.StringOrSlice) {
|
func addCertIAMPolicies(p *Policy, resource stringorslice.StringOrSlice) {
|
||||||
// TODO: Make optional only if using IAM SSL Certs on ELBs
|
// TODO: Make optional only if using IAM SSL Certs on ELBs
|
||||||
p.Statement = append(p.Statement, &Statement{
|
p.Statement = append(p.Statement, &Statement{
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "iam-builder-test.k8s.local"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "iam-builder-test.k8s.local"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,13 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"s3:*"
|
"s3:*"
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,13 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"s3:Get*"
|
"s3:Get*"
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,13 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"s3:Get*"
|
"s3:Get*"
|
||||||
|
|
|
||||||
|
|
@ -1160,6 +1160,13 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"iam:ListServerCertificates",
|
"iam:ListServerCertificates",
|
||||||
|
|
@ -1265,6 +1272,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "minimal.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1376,6 +1398,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "minimal.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "bastionuserdata.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -1647,6 +1647,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "complex.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1758,6 +1773,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "complex.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "compress.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -974,6 +974,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "containerd.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1085,6 +1100,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -974,6 +974,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "containerd.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1085,6 +1100,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -974,6 +974,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "docker.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1085,6 +1100,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "existingsg.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -990,6 +990,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "externallb.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1101,6 +1116,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "externallb.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "externalpolicies.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "ha.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -974,6 +974,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "minimal.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1085,6 +1100,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -970,6 +970,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "minimal.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1081,6 +1096,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "minimal.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "minimal-json.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "minimal.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -1677,6 +1677,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "mixedinstances.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1788,6 +1803,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "mixedinstances.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -1678,6 +1678,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "mixedinstances.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1789,6 +1804,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "mixedinstances.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -1469,6 +1469,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "private-shared-ip.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1580,6 +1595,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "private-shared-ip.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "private-shared-subnet.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -1614,6 +1614,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "privatecalico.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1725,6 +1740,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "privatecalico.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "privatecanal.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -1600,6 +1600,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "privatecilium.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1711,6 +1726,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "privatecilium.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -1600,6 +1600,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "privatecilium.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1711,6 +1726,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "privatecilium.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -1633,6 +1633,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "privateciliumadvanced.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
@ -1764,6 +1779,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "privateciliumadvanced.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "privatedns1.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "privatedns2.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "privateflannel.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "privatekopeio.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "privateweave.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "minimal.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "sharedsubnet.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "sharedvpc.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Action": [
|
||||||
|
"autoscaling:CompleteLifecycleAction",
|
||||||
|
"autoscaling:DescribeAutoScalingInstances"
|
||||||
|
],
|
||||||
|
"Condition": {
|
||||||
|
"StringEquals": {
|
||||||
|
"autoscaling:ResourceTag/KubernetesCluster": "unmanaged.example.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Action": [
|
"Action": [
|
||||||
"elasticloadbalancing:AddTags",
|
"elasticloadbalancing:AddTags",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Action": "autoscaling:DescribeAutoScalingInstances",
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Resource": [
|
||||||
|
"*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Version": "2012-10-17"
|
"Version": "2012-10-17"
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ go_library(
|
||||||
"//util/pkg/vfs:go_default_library",
|
"//util/pkg/vfs:go_default_library",
|
||||||
"//vendor/github.com/aws/aws-sdk-go/aws:go_default_library",
|
"//vendor/github.com/aws/aws-sdk-go/aws:go_default_library",
|
||||||
"//vendor/github.com/aws/aws-sdk-go/aws/session:go_default_library",
|
"//vendor/github.com/aws/aws-sdk-go/aws/session:go_default_library",
|
||||||
|
"//vendor/github.com/aws/aws-sdk-go/service/autoscaling:go_default_library",
|
||||||
"//vendor/github.com/aws/aws-sdk-go/service/ec2:go_default_library",
|
"//vendor/github.com/aws/aws-sdk-go/service/ec2:go_default_library",
|
||||||
"//vendor/k8s.io/klog/v2:go_default_library",
|
"//vendor/k8s.io/klog/v2:go_default_library",
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ import (
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws"
|
"github.com/aws/aws-sdk-go/aws"
|
||||||
"github.com/aws/aws-sdk-go/aws/session"
|
"github.com/aws/aws-sdk-go/aws/session"
|
||||||
|
"github.com/aws/aws-sdk-go/service/autoscaling"
|
||||||
"github.com/aws/aws-sdk-go/service/ec2"
|
"github.com/aws/aws-sdk-go/service/ec2"
|
||||||
"k8s.io/klog/v2"
|
"k8s.io/klog/v2"
|
||||||
)
|
)
|
||||||
|
|
@ -196,7 +197,24 @@ func (c *NodeUpCommand) Run(out io.Writer) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var cloud fi.Cloud
|
||||||
|
|
||||||
|
if api.CloudProviderID(c.cluster.Spec.CloudProvider) == api.CloudProviderAWS {
|
||||||
|
region, err := awsup.FindRegion(c.cluster)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
awsCloud, err := awsup.NewAWSCloud(region, nil)
|
||||||
|
|
||||||
|
cloud = awsCloud
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
modelContext := &model.NodeupModelContext{
|
modelContext := &model.NodeupModelContext{
|
||||||
|
Cloud: cloud,
|
||||||
Architecture: architecture,
|
Architecture: architecture,
|
||||||
Assets: assetStore,
|
Assets: assetStore,
|
||||||
Cluster: c.cluster,
|
Cluster: c.cluster,
|
||||||
|
|
@ -242,6 +260,19 @@ func (c *NodeUpCommand) Run(out io.Writer) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if api.CloudProviderID(c.cluster.Spec.CloudProvider) == api.CloudProviderAWS {
|
||||||
|
instanceIDBytes, err := vfs.Context.ReadFile("metadata://aws/meta-data/instance-id")
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("error reading instance-id from AWS metadata: %v", err)
|
||||||
|
}
|
||||||
|
modelContext.InstanceID = string(instanceIDBytes)
|
||||||
|
|
||||||
|
modelContext.ConfigurationMode, err = getAWSConfigurationMode(modelContext)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if err := loadKernelModules(modelContext); err != nil {
|
if err := loadKernelModules(modelContext); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
@ -295,7 +326,6 @@ func (c *NodeUpCommand) Run(out io.Writer) error {
|
||||||
}
|
}
|
||||||
// Protokube load image task is in ProtokubeBuilder
|
// Protokube load image task is in ProtokubeBuilder
|
||||||
|
|
||||||
var cloud fi.Cloud
|
|
||||||
var target fi.Target
|
var target fi.Target
|
||||||
checkExisting := true
|
checkExisting := true
|
||||||
|
|
||||||
|
|
@ -637,3 +667,29 @@ func getNodeConfigFromServer(ctx context.Context, config *nodeup.ConfigServerOpt
|
||||||
}
|
}
|
||||||
return client.QueryBootstrap(ctx, &request)
|
return client.QueryBootstrap(ctx, &request)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func getAWSConfigurationMode(c *model.NodeupModelContext) (string, error) {
|
||||||
|
// Only worker nodes and apiservers can actually autoscale.
|
||||||
|
// We are not adding describe permissions to the other roles
|
||||||
|
role := c.InstanceGroup.Spec.Role
|
||||||
|
if role != api.InstanceGroupRoleNode && role != api.InstanceGroupRoleAPIServer {
|
||||||
|
return "", nil
|
||||||
|
}
|
||||||
|
|
||||||
|
svc := c.Cloud.(awsup.AWSCloud).Autoscaling()
|
||||||
|
|
||||||
|
result, err := svc.DescribeAutoScalingInstances(&autoscaling.DescribeAutoScalingInstancesInput{
|
||||||
|
InstanceIds: []*string{&c.InstanceID},
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return "", fmt.Errorf("error describing instances: %v", err)
|
||||||
|
}
|
||||||
|
lifecycle := fi.StringValue(result.AutoScalingInstances[0].LifecycleState)
|
||||||
|
if strings.HasPrefix(lifecycle, "Warmed:") {
|
||||||
|
klog.Info("instance is entering warm pool")
|
||||||
|
return model.ConfigurationModeWarming, nil
|
||||||
|
} else {
|
||||||
|
klog.Info("instance is entering the ASG")
|
||||||
|
return "", nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue