You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the AWS ALB Ingress controller in my EKS setup, and one of my target groups is marked as unhealthy. The reason is that when users hit the URL {{ .Values.domainName }}, they are redirected to /#?redirect=%2F, which causes the ALB health checks to fail with a 302 redirect response.
Problem:
The target group health checks fail because they receive a 302 redirect to /#?redirect=%2F, which doesn't return a 200 OK response. I understand that AWS ALB doesn't support different health check paths for each rule in a single Ingress.
Question:
How can I resolve this issue and make the target group healthy?
Is there a way to configure different health check paths for each rule within the same Ingress, or do I need to split the Ingress into separate resources for each service? What’s the best approach to handle this scenario?
Thanks!
The text was updated successfully, but these errors were encountered:
This will mean your load balancer treats 302 as a success code for all your target groups associated to the ingress. If you want to specify 302 as a success code for one target group you can set the annotation on the desired service.
Option 2:
Set alb.ingress.kubernetes.io/healthcheck-path on your ingress or service to a different path that only calculates health check data without the redirect.
Again, if you set on the ingress this will apply to all your target groups. You can set this on the desired service which only apply the new health check path to that service.
I am using the AWS ALB Ingress controller in my EKS setup, and one of my target groups is marked as unhealthy. The reason is that when users hit the URL {{ .Values.domainName }}, they are redirected to /#?redirect=%2F, which causes the ALB health checks to fail with a 302 redirect response.
Below is the part of my Ingress configuration:
The unhealthy target group corresponds to the following rule:
Problem:
The target group health checks fail because they receive a 302 redirect to /#?redirect=%2F, which doesn't return a 200 OK response. I understand that AWS ALB doesn't support different health check paths for each rule in a single Ingress.
Question:
How can I resolve this issue and make the target group healthy?
Is there a way to configure different health check paths for each rule within the same Ingress, or do I need to split the Ingress into separate resources for each service? What’s the best approach to handle this scenario?
Thanks!
The text was updated successfully, but these errors were encountered: