oc exec is ignoring HTTP proxy settings

Solution Unverified - Updated -

Issue

When executing oc exec the proxy configured with HTTP_PROXY is ignored.

Other commands such as oc logs -f are respecting HTTP_PROXY and are working fine.

A command like oc exec -p xyz-6-aabv1 -- id fails with:

error: Error sending request: Get https://master.example.com:8443/api/v1/namespaces/test/pods/xyz-6-aabv1/exec?command=ls&container=xyz&stderr=true&stdout=true: dial tcp X.X.X.X:8443: connection refused

Environment

OpenShift Enterprise (OSE) 3.0

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.