origin icon indicating copy to clipboard operation
origin copied to clipboard

Inject env to openshift-apiserver

Open wambowams opened this issue 7 years ago • 0 comments

I need to add environment variables to the openshift-apiserver pod to add proxy settings to it. I already tried to add a master.env file to the openshift-apiserver folder, but it doesn't add the environment varaibles to the pod

Version

oc v3.11.0+0cbc58b kubernetes v1.11.0+d4cacc0 features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://172.24.25.125:8443 kubernetes v1.11.0+d4cacc0

Steps To Reproduce
  1. create a cluster: oc cluster up --http-proxy=proxy:8080 --https-proxy=proxy:8080
  2. login to the apiserver: oc rsh openshift-apiserver-xxxxx
  3. check the env: env
Current Result

No environment variables for proxy is set.

Expected Result

The pod should have the proxy settings.

Additional Information

For me it doesn't matter if the proxy environment are set at cluster creation. I need a way to add them later to the openshift-apiserver pod

wambowams avatar Aug 08 '19 14:08 wambowams