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 réponse
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
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions