我遵循这个自述文件在我的AKS测试集群上部署dusk:
舵机价值观的变化:
最终在aks中得到了这样的服务:
api-test-dask-gateway ClusterIP 10.0.xxx.yyy <none> 8000/TCP 2d2h
hub ClusterIP 10.0.xxx.yyy <none> 8081/TCP 2d2h
proxy-api ClusterIP 10.0.xxx.yyy <none> 8001/TCP 2d2h
proxy-public LoadBalancer 10.0.xxx.yyy ii.jjj.kkk.lll 80:31766/TCP 2d2h
traefik-test-dask-gateway LoadBalancer 10.0.xxx.yyy aa.bbb.ccc.ddd 80:32032/TCP 2d2h巫婆工作了,我可以登录木星的笔记本,一切都好
现在我正试图从我的本地个人电脑上连接到它,但是我发现很少有关于它的信息。
我试过这个:
import os
from dask_gateway import Gateway
os.environ['JUPYTERHUB_API_TOKEN'] = "abcde"
gateway = Gateway(
address="http://ii.jjj.kkk.lll/services/dask-gateway",
auth="jupyterhub"
)
gateway.list_clusters()我得到的错误是404
<div class="error">
<h1>
404 : Not Found
</h1>
<p>Jupyter has lots of moons, but this is not one...</p>
</div>也尝试过这样做:
import os
from dask_gateway import Gateway
os.environ['JUPYTERHUB_API_TOKEN'] = "abcde"
gateway = Gateway(
address="http://ii.jjj.kkk.lll/services/dask-gateway",
proxy_address="gateway://aa.bbb.ccc.ddd:80",
auth="jupyterhub"
)
gateway.list_clusters()得到同样的结果
我做错什么了?
发布于 2022-07-28 10:16:14
让它起作用,以防其他人出现。我的问题是:
values.yml:在网关和集线器两边设置生成的apiToken
hub:
services:
dask-gateway:
apiToken: "abcd ..."
dask-gateway:
enabled: True # Enabling dask-gateway will install Dask Gateway as a dependency.
# Futher Dask Gateway configuration goes here
# See https://github.com/dask/dask-gateway/blob/master/resources/helm/dask-gateway/values.yaml
gateway:
prefix: "/services/dask-gateway" # Users connect to the Gateway through the JupyterHub service.
auth:
type: jupyterhub # Use JupyterHub to authenticate with Dask Gateway
jupyterhub:
apiToken: "abcd ..."创建了一个连接,现在您转到木星集线器为远程连接创建您的api,那么api可以通过这个根目录(traefik-test-dask-网关)访问:
http://aa.bbb.ccc.ddd/services/dask-gateway所以你可以称之为:
http://aa.bbb.ccc.ddd/services/dask-gateway/api/versionhttps://stackoverflow.com/questions/73139566
复制相似问题