Cluster-Up Proxy / ApiServer
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
- Start cluster with the following command: ./oc cluster up --http-proxy http://proxy:8080 --https-proxy http://proxy:8080
- 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.
I have the very same issue as well. How did you add HTTP_PROXY and HTTPS_PROXY to openshift-apiserver?
I need the HTTP_PROXY on the openshift-apiserver too. It would be nice if u can tell us how u did it.
$ 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
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
No, this file is picked up automatically, IIRC.
Hmm that doesn't work for me, but thank u.
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
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
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: 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.