Using curl to run oc exec is not possible with OpenShift Container Platform

Solution Verified - Updated -

Issue

  • Calling OpenShift API pod exec using curl
  • Is it possible to run oc exec ... with curl instead of oc command?
  • Using curl to run exec commands on the OpenShift API is not working as expected.

Environment

  • Red Hat OpenShift Container Platform (OCP) 3 and 4

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