I'm using oauth2-proxy :7.3.0 through Kubernetes. I'm setting all my config as environment variables:
- I'm setting my environment variables as data in a configMap
- I'm injecting that data in oauth2-proxy container using
envFrom and referencing my configMap
Expected Behavior
OAUTH2_PROXY_UPSTREAMS should work but it is not and the upstream is apparently set to the default 0.0.0.0:8080 causing a 502 Bad Gateway
In the configMap I'm setting
OAUTH2_PROXY_UPSTREAMS: "http://127.0.0.1:80"
When I remove OAUTH2_PROXY_UPSTREAMS from the config map and set the --upstream through command line using
args:
- --upstream=http://127.0.0.1:80 #it's the same value I'm using for OAUTH2_PROXY_UPSTREAMS
It works as charm.
Context
I prefer setting everything as environment variables
I'm using oauth2-proxy :7.3.0 through Kubernetes. I'm setting all my config as environment variables:
envFromand referencing my configMapExpected Behavior
OAUTH2_PROXY_UPSTREAMS should work but it is not and the upstream is apparently set to the default
0.0.0.0:8080causing a502 Bad GatewayIn the configMap I'm setting
OAUTH2_PROXY_UPSTREAMS: "http://127.0.0.1:80"
When I remove OAUTH2_PROXY_UPSTREAMS from the config map and set the
--upstreamthrough command line usingIt works as charm.
Context
I prefer setting everything as environment variables