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 Risposta
1
Risposta accettata

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

con risposta un mese fa
profile picture
ESPERTO
verificato un mese fa
profile picture
ESPERTO
A_J
verificato un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande