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 Resposta
1
Resposta aceita

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

respondido há um mês
profile picture
ESPECIALISTA
avaliado há um mês
profile picture
ESPECIALISTA
A_J
avaliado há um mês

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas