JupyterHub proxy implementation with traefik
Project description
JupyterHub Traefik Proxy
When JupyterHub starts a server for a user, it will dynamically configure a
proxy server so that accessing jupyterhub.example.com/user/<user>
routes to
the individual Jupyter server. This project contains what JupyterHub need to
dynamically configure the routes of a traefik proxy
server! There are three implementations of the JupyterHub proxy
API,
depending on how traefik store its routing configuration.
For smaller, single-node deployments:
- TraefikFileProviderProxy
For distributed setups:
- TraefikEtcdProxy
- TraefikConsulProxy
Installation
The documentation contains a complete installation guide with examples for the three different implementations.
Running tests
There are some tests that use etcdctl command line client for etcd. Make sure
to set environment variable ETCDCTL_API=3
before running the tests, so that
the v3 API to be used, e.g.:
$ export ETCDCTL_API=3
You can then run the all the test suite from the traefik-proxy directory with:
$ pytest -v ./tests
Or you can run a specific test file with:
$ pytest -v ./tests/<test-file-name>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for jupyterhub-traefik-proxy-1.0.0b2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecd9ab85ade73493d3e0515a5abaac069c250b4b047455f3d4b6d26aab466be1 |
|
MD5 | ec5eee722d853a30db0f604c2a75c799 |
|
BLAKE2b-256 | 251dda0f1486dec24ddd278a65e820f763794522559d485941c5aed3167aa150 |
Hashes for jupyterhub_traefik_proxy-1.0.0b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57849ef678cffc45c93ac4a85b34d75a532e4b605ba23319b892ee1a25adf6eb |
|
MD5 | 4d3ac17bdb168a40c36b32cade68afd7 |
|
BLAKE2b-256 | cdd37ddef11a67b751f66306eb6a5bbae54b61ce954c6e06d1cd338c0b4415e7 |