Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. ---
  2. Resources:
  3. # AutoScalingGroupNodeDrainerLH:
  4. # Type: AWS::AutoScaling::LifecycleHook
  5. # Properties:
  6. # AutoScalingGroupName:
  7. # Ref: AutoScalingGroup
  8. # DefaultResult: CONTINUE
  9. # HeartbeatTimeout: '300'
  10. # LifecycleTransition: autoscaling:EC2_INSTANCE_TERMINATING
  11. AutoScalingGroup:
  12. Type: AWS::AutoScaling::AutoScalingGroup
  13. Properties:
  14. Cooldown: 300
  15. DesiredCapacity: "4"
  16. HealthCheckType: EC2
  17. HealthCheckGracePeriod: 0
  18. LaunchConfigurationName: terraform-20191022003501991000000001
  19. MaxSize: 5
  20. MetricsCollection:
  21. - Granularity: 1Minute
  22. Metrics:
  23. - GroupMinSize
  24. - GroupMaxSize
  25. - GroupDesiredCapacity
  26. - GroupInServiceInstances
  27. - GroupPendingInstances
  28. - GroupStandbyInstances
  29. - GroupTerminatingInstances
  30. - GroupTotalInstances
  31. MinSize: 4
  32. Tags:
  33. - Key: Name
  34. Value: "dev-k8s-worker-generic"
  35. PropagateAtLaunch: true
  36. - Key: WorkerType
  37. Value: "generic"
  38. PropagateAtLaunch: true
  39. - Key: Environment
  40. Value: "dev"
  41. PropagateAtLaunch: true
  42. - Key: Role
  43. Value: k8s-worker
  44. PropagateAtLaunch: true
  45. - Key: KubernetesCluster
  46. Value: "dev"
  47. PropagateAtLaunch: true
  48. - Key: kubernetes.io/cluster/dev
  49. Value: owned
  50. PropagateAtLaunch: true
  51. - Key: k8s.io/cluster-autoscaler/disabled
  52. Value: "-"
  53. PropagateAtLaunch: true
  54. - Key: k8s.io/cluster-autoscaler/dev
  55. Value: "-"
  56. PropagateAtLaunch: true
  57. TerminationPolicies:
  58. - OldestLaunchConfiguration
  59. - OldestInstance
  60. - Default
  61. VPCZoneIdentifier: ["subnet-09a75ba5a68eb5a6a","subnet-0cdc4d94014541b05","subnet-0343d2075ff9a5f2f"]
  62. UpdatePolicy:
  63. AutoScalingRollingUpdate:
  64. MinInstancesInService: "4"
  65. MaxBatchSize: '1'
  66. PauseTime: PT1M
  67. # WaitOnResourceSignals: 'true'
  68. Outputs:
  69. name:
  70. Description: The name of the auto scaling group
  71. Value:
  72. Ref: AutoScalingGroup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement