Jupyterhub configuration behind the proxy

Hi! You haven’t given us much information on your setup, but I’m assuming you’re using Zero to JupyterHub with Kubernetes — Zero to JupyterHub with Kubernetes documentation ? Which version are you using? It would also be helpful if you showed us your configuration with secrets redacted.

There’s a hub.extraEnv property:

You only want external http requests (to outside your network) to go through the proxy, presumably setting the environment variables at the pod level results in communication to the hub going through the proxy and failing to reach the hub. You could try setting no_proxy

but if you’re using Z2JH the hub IP may change.

Alternatively you could try creating a custom kernelspec with environment variables: