How to set max-post-size for undertow listeners in kie-server running on OCP4

Solution Verified - Updated -

Issue

  • How to increase max-post-size in OpenShift environment?
  • The rule execution on kie-server in OpenShift from KieServicesClient fails with the following error:

    org.kie.server.api.exception.KieServicesHttpException: Unexpected HTTP response code when requesting URI 'http://OPENSHIFT_HOST/services/rest/server/containers/instances/rh-rules_1.0.0-SNAPSHOT'! Error code: 400, message: io.undertow.server.RequestTooBigException: UT000020: Connection terminated as request was larger than 10485760
    
  • According to A large post request fails with "UT000020: Connection terminated as request was larger than ###" in JBoss EAP 7.x the solution is to increase max-post-size, how to do it on Openshift environment?

Environment

  • Red Hat Decision Manager
    • 7.10 and later
  • Red Hat ProcessAutomation Manager
    • 7.10 and later
  • Business Automation Operator
  • OpenShift Container Platform 4

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