Error Unhealthy task in ECS

0

I have a task definition with two containers, app and nginx (port 80), I have created a service including a Application Load Balancer, but always but every task check unhealthy often.

Enter image description here

My target group is

Enter image description here

My load balancer

Enter image description here

What is the posible error, I need to change "Path"

1回答
1
承認された回答

I found the error, I must to have in nginx

server { listen 80;

location /health {
    access_log off;
    return 200 'ok';
    add_header Content-Type text/plain;
}

# Configuración adicional de tu servidor aquí

}

And update the PAth in my target groups "/health"

Working perfect now

回答済み 1ヶ月前
profile picture
エキスパート
レビュー済み 1ヶ月前
profile picture
エキスパート
A_J
レビュー済み 1ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ