origin
origin copied to clipboard
Inject env to openshift-apiserver
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
- create a cluster: oc cluster up --http-proxy=proxy:8080 --https-proxy=proxy:8080
- login to the apiserver: oc rsh openshift-apiserver-xxxxx
- 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