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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.