origin icon indicating copy to clipboard operation
origin copied to clipboard

Cluster-Up Proxy / ApiServer

Open malins opened this issue 7 years ago • 10 comments

Hello! I'm trying to use 'oc cluser up' in a proxied environment, but I have problems with using ImageStreams as they reference an external repository (docker.io).

Version

oc v3.11.0+0cbc58b

Steps To Reproduce
  1. Start cluster with the following command: ./oc cluster up --http-proxy http://proxy:8080 --https-proxy http://proxy:8080
  2. Try to update image stream with the following command: ./oc -n openshift import-image jenkins:2
Current Result

! error: Import failed (InternalError): Internal error occurred: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

Expected Result

ImageStream should be imported.

Additional Information

After adding environment variables HTTP_PROXY and HTTPS_PROXY to openshift-apiserver everything works, but I would expect those environment variables be set via --http-proxy and --https-proxy parameters on oc cluster up.

malins avatar May 23 '19 11:05 malins

I have the very same issue as well. How did you add HTTP_PROXY and HTTPS_PROXY to openshift-apiserver?

fjakop avatar Jul 02 '19 13:07 fjakop

I need the HTTP_PROXY on the openshift-apiserver too. It would be nice if u can tell us how u did it.

wambowams avatar Aug 08 '19 11:08 wambowams

$ cat ./openshift.local.clusterup/openshift-apiserver/master.env set HTTP_PROXY=proxy:8080 set HTTPS_PROXY=proxy:8080 set NO_PROXY=172.17.0.0/16

malins avatar Aug 08 '19 11:08 malins

Thank u. Did u add the path to this file somewhere or will it automatically appended to the pod. For me it doesn't seem to add the envs

wambowams avatar Aug 08 '19 12:08 wambowams

No, this file is picked up automatically, IIRC.

malins avatar Aug 08 '19 12:08 malins

Hmm that doesn't work for me, but thank u.

wambowams avatar Aug 08 '19 12:08 wambowams

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar Nov 06 '19 17:11 openshift-bot

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot avatar Dec 06 '19 18:12 openshift-bot

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

openshift-bot avatar Jan 05 '20 23:01 openshift-bot

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

openshift-ci-robot avatar Jan 05 '20 23:01 openshift-ci-robot