Pergunta

I have a Jenkins CI server behind in an private EC2 VPC subnet, and in order to make it accessible from the outside world I've set up an ELB (that also handles the HTTPS security certificate using IAM, but that's just the rationale of why I am doing that rather than having a single instance directly accessible).

The Jenkins server is configure to require authentication, so when the ELB is doing its health check as an anonymous user it gets a 403 access forbidden page, which should perfectly fine, but is understood as an error and keeps the instance flagged as out of service.

Is there any way to make the ELB consider a 403 response as an OK response? Or maybe there's a page in Jenkins that always returns a 200 status code?

Foi útil?

Solução 2

If you are doing an http health check, it does need a 200 response. You can switch this to a tcp health check, which may not be as accurate, but it would not care about the status code.

Outras dicas

The check you're looking for is /login instead of /

That way you can keep the http check.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top