Host name validation errors - route must be no more than 63 characters

Solution Verified - Updated -

Issue

  • We're seeing this error from the OpenShift router:

    E1003 14:27:04.374282 1 router_controller.go:311] host name validation errors: spec.host: Invalid value: "inv-dev-eods-portfolio-reference-publisher-adapter-olyra-110-34-208.test.example.com": must be no more than 63 characters
    
  • Some of our applications have very long names, and when prefixed with namespace and domain, it gets even longer and exceeds 63 chars limit for host names in OpenShift.

  • Why 63 bytes of limit on DNS label is imposed?

Environment

  • Red Hat OpenShift Container Platform
    • 3.x
    • 4.x

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