Error nginx load-balance rancher - ha

As we talked I changed my topology replacing the BIG IP by NGINX to the load-balance between Rancher hosts.

In this new topology I’m having trouble on the “Stacks” with this state of “Degraded” and “initializing”.

NGINX CONFIGURATION:

upstream phenix.magazineluiza.intranet {
server 10.31.0.248;
server 10.31.0.249;
server 10.31.0.253;
}

server {
ssl on;
listen 10.31.0.240:443 ssl;
server_name phenix.magazineluiza.intranet;
ssl_certificate ssl/phenix.magazineluiza.intranet/server.crt;
ssl_certificate_key ssl/phenix.magazineluiza.intranet/server.key;

location / {
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Port $server_port;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://phenix.magazineluiza.intranet;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    # This allows the ability for the execute shell window to remain open for up to 15 minutes. Without this parameter, the default is 1 minute and will automatically close.
    proxy_read_timeout 900s;
}

}

server {
listen 80;
server_name phenix.magazineluiza.intranet;
return 301 https://$server_name$request_uri;
}

rancher-ha.log

Hello Fernando,
I have the same problem actually. Did you manage to solve that ?

regards,
Marc

Hi Marc,

I’m using different external hum balancer If not the “Big IP F5” but seems
in place to own Rancher HAVE some explanations to use nginx.

regards,

[image: assinatura_campanha.jpg]

*Fernando *
FelicíssimoTI Infra | Analista de Redes
( (16) 3713-8186

[image: cid:image002.gif@01CDFD7B.64423E00][image:
cid:image003.gif@01CDFD7B.64423E00]
http://www.facebook.com/#!/magazineluiza [image:
cid:image004.gif@01CDFD7B.64423E00]
http://www.twitter.com/magazineluiza [image:
cid:image005.gif@01CDFD7B.64423E00]
http://www.youtube.com/magazineluizacom [image:
cid:image006.gif@01CDFD7B.64423E00] http://blogdalu.magazineluiza.com.br/

*Aviso 1:**‘*Esta mensagem é direcionada apenas para os endereços
constantes no cabeçalho inicial. Se você não está listado nos endereços
constantes no cabeçalho, pedimos-lhe que desconsidere completamente o
conteúdo dessa mensagem e cuja cópia, encaminhamento e/ou execução das
ações citadas estão imediatamente anuladas e proibidas’.

*Aviso 2:**‘*Apesar do Magazine Luiza tomar todas as precauções razoáveis
para assegurar que nenhuma virose esteja presente nesse e-mail, a empresa
não poderá aceitar a responsabilidade por quaisquer perdas ou danos
causados por esse e-mail ou por seus anexos’.

Thank you for the response.

Yes as you said I used the rancher documentation in order to configure NGINX.

But I’m still having trouble on go-machine-service and rancher-compose-executor with the state of “Degraded” and “initializing”.

Do you still have this kind of status ?

regards,
Marc