OpenShift oc exec ps output is truncated

Solution Verified - Updated -

Issue

When running oc exec with the -i and -t flag (e.g. to use with xargs) the output is truncated:

# oc exec jws-app-1-z2n48 -i -t -- ps aux 
USER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
jboss         1  0.2  1.9 4128768 152328 ?      Ssl  19:06   0:07 /usr/lib/jvm/j
jboss      2264  0.0  0.0  47448  1664 ?        Rs+  19:50   0:00 ps aux

Environment

  • Red Hat OpenShift Container Platform 3.7

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