oc commands giving error "connection reset by peer" in RHOCP4

Solution Verified - Updated -

Issue

  • connection reset by peer error upon executing oc commands against API calls
E1017 08:01:12.150418 4006359 request.go:1011] Unexpected error when reading response body: read tcp 10.x.x.x:46164->192.x.x.x:6443: read: connection reset by peer
error: unexpected error when reading response body. Please retry. Original error: read tcp  10.x.x.x:46164->192.x.x.x:6443: read: connection reset by peer

Environment

  • Red Hat OpenShift Container Platform 4.7
  • VSphere IPI
  • Keepalived

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