Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- Resources:
- # AutoScalingGroupNodeDrainerLH:
- # Type: AWS::AutoScaling::LifecycleHook
- # Properties:
- # AutoScalingGroupName:
- # Ref: AutoScalingGroup
- # DefaultResult: CONTINUE
- # HeartbeatTimeout: '300'
- # LifecycleTransition: autoscaling:EC2_INSTANCE_TERMINATING
- AutoScalingGroup:
- Type: AWS::AutoScaling::AutoScalingGroup
- Properties:
- Cooldown: 300
- DesiredCapacity: "4"
- HealthCheckType: EC2
- HealthCheckGracePeriod: 0
- LaunchConfigurationName: terraform-20191022003501991000000001
- MaxSize: 5
- MetricsCollection:
- - Granularity: 1Minute
- Metrics:
- - GroupMinSize
- - GroupMaxSize
- - GroupDesiredCapacity
- - GroupInServiceInstances
- - GroupPendingInstances
- - GroupStandbyInstances
- - GroupTerminatingInstances
- - GroupTotalInstances
- MinSize: 4
- Tags:
- - Key: Name
- Value: "dev-k8s-worker-generic"
- PropagateAtLaunch: true
- - Key: WorkerType
- Value: "generic"
- PropagateAtLaunch: true
- - Key: Environment
- Value: "dev"
- PropagateAtLaunch: true
- - Key: Role
- Value: k8s-worker
- PropagateAtLaunch: true
- - Key: KubernetesCluster
- Value: "dev"
- PropagateAtLaunch: true
- - Key: kubernetes.io/cluster/dev
- Value: owned
- PropagateAtLaunch: true
- - Key: k8s.io/cluster-autoscaler/disabled
- Value: "-"
- PropagateAtLaunch: true
- - Key: k8s.io/cluster-autoscaler/dev
- Value: "-"
- PropagateAtLaunch: true
- TerminationPolicies:
- - OldestLaunchConfiguration
- - OldestInstance
- - Default
- VPCZoneIdentifier: ["subnet-09a75ba5a68eb5a6a","subnet-0cdc4d94014541b05","subnet-0343d2075ff9a5f2f"]
- UpdatePolicy:
- AutoScalingRollingUpdate:
- MinInstancesInService: "4"
- MaxBatchSize: '1'
- PauseTime: PT1M
- # WaitOnResourceSignals: 'true'
- Outputs:
- name:
- Description: The name of the auto scaling group
- Value:
- Ref: AutoScalingGroup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement