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

Solution Verified - Updated -

Issue

  • TCP Streaming connections get closed after 60 seconds (oc commands like oc rsh, oc logs or oc port-forward) in Red Hat OpenShift Container Platform (OCP) 4
  • After 60 seconds the port-forward connection gets lost

    Wed 29 Jan 13:47:58 EST 2020
    Forwarding from 127.0.0.1:18080 -> 80
    Forwarding from [::1]:18080 -> 80
    E0129 13:48:58.595874   28317 portforward.go:233] lost connection to pod
    

Environment

  • Red Hat OpenShift Container Platform (OCP) 4.x

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