From db3fba01b8086da2150050ca129a6ebc11593f81 Mon Sep 17 00:00:00 2001 From: showwin Date: Tue, 31 Oct 2023 15:48:05 +0900 Subject: [PATCH] Enable container metadata so that containers can get host IP address to communicate with service-daemon ddagent --- app/services/apply_district.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/services/apply_district.rb b/app/services/apply_district.rb index 5a934e37..7e0708c6 100644 --- a/app/services/apply_district.rb +++ b/app/services/apply_district.rb @@ -85,7 +85,8 @@ def ecs_config "ECS_RESERVED_MEMORY" => 256, "ECS_CONTAINER_STOP_TIMEOUT" => "5m", "ECS_ENABLE_TASK_IAM_ROLE" => "true", - "ECS_ENABLE_TASK_IAM_ROLE_NETWORK_HOST" => "true" + "ECS_ENABLE_TASK_IAM_ROLE_NETWORK_HOST" => "true", + "ECS_ENABLE_CONTAINER_METADATA" => "true" } if district.dockercfg.present?