-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEATURE: exclude terminating node from alb target (#185)
getamis/terraform-aws-asg-lifecycle#5 To prevent 502/504 errors when worker node is terminating, remove the node from the ALB target group before termination.
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,7 +122,7 @@ resource "aws_launch_template" "master" { | |
|
||
module "lifecycle_hook" { | ||
count = var.enable_asg_life_cycle ? 1 : 0 | ||
source = "git::ssh://[email protected]/getamis/terraform-aws-asg-lifecycle//modules/kubernetes?ref=v1.27.4.0" | ||
source = "git::ssh://[email protected]/getamis/terraform-aws-asg-lifecycle//modules/kubernetes?ref=v1.27.4.1" | ||
|
||
name = "${var.name}-master" | ||
cluster_name = var.name | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,7 +159,7 @@ resource "aws_launch_template" "worker" { | |
|
||
module "lifecycle_hook" { | ||
count = var.enable_asg_life_cycle ? 1 : 0 | ||
source = "git::ssh://[email protected]/getamis/terraform-aws-asg-lifecycle//modules/kubernetes?ref=v1.27.4.0" | ||
source = "git::ssh://[email protected]/getamis/terraform-aws-asg-lifecycle//modules/kubernetes?ref=v1.27.4.1" | ||
|
||
name = "${var.name}-worker-${var.instance_config["name"]}" | ||
cluster_name = var.name | ||
|