How to change idle-timeout for oc commands like oc rsh, oc logs and oc port-forward

Solution Verified - Updated -

Issue

  • I want to change default idle-timeout value to a customized one or even disable it at all.

  • When I use oc port-forward, it fails after 5 minutes with the error lost connection to pod. Can I configure the timeout?

Environment

  • OpenShift Container Platform
    • 3.x
  • OpenShift Online

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