File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Using TraefikConsulProxy
2
2
3
+ ``` {warning}
4
+ While it works today (2023), there does not appear to be a maintained Python client for the consul API.
5
+ As such, using jupyterhub-traefik-proxy with consul is deprecated in jupyterhub-traefik-proxy 1.0.
6
+ You can use etcd instead to achieve the same functionality (and slightly better performance).
7
+ ```
8
+
3
9
[ Consul] ( https://www.consul.io/ )
4
10
is a distributed key-value store.
5
11
This and TraefikEtcdProxy is the choice to use when using jupyterhub-traefik-proxy
Original file line number Diff line number Diff line change @@ -94,6 +94,12 @@ def _default_client(self):
94
94
kwargs .update ({"token" : self .consul_password })
95
95
return consul .aio .Consul (** kwargs )
96
96
97
+ def __init__ (self , ** kwargs ):
98
+ super ().__init__ (** kwargs )
99
+ self .log .warning (
100
+ "Using traefik with consul is deprecated in jupyterhub-traefik-proxy 1.0 due to lack of support for the python-consul2 API client. Use etcd instead."
101
+ )
102
+
97
103
def _define_kv_specific_static_config (self ):
98
104
provider_config = {
99
105
"consul" : {
You can’t perform that action at this time.
0 commit comments