Changing a default 503 message "Application is not available"

Solution Verified - Updated -

Issue

  • 503 HTTP response status code is returned if no pod is available and when the URI has a wrong target. How to change a default error message?
  • it's not possible to easily customize the HAProxy 2.x error page as deployed in OpenShift
  • how to change the default 503 message in a supported way
  • customization of haproxy.config template is too cumbersome (and not officially supported)

Environment

OpenShift 4.1 - 4.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content