Custom Maintenance Page for ALB on 502 error

0

I am using ALB with frontend and backend apps deployed on EKS. When I take service down for maintenance ; I need to show some nice maintenance page on UI instead of "502 Bad Gateway" and other error code. How to do that.?? Pls help me with some inputs

1 回答
0

Hello,

Since you mentioned ALB, I assume you are using the AWS Loadbalancer Controller as your Ingress provider.

You can use fixed-response-actions feature of the ALB to show custom HTML responses for specific HTTP response codes.

Please look at the sample Ingress manifest shown in this documentation to understand how to set fixed-response actions in your Ingress manifest.

I hope this answers your question!

profile pictureAWS
支持工程师
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则