I'm trying to configure jupyterlab dask extension so that the "New" cluster button will create a KubeCluster
instead of the default LocalCluster
.
Tried to edit ~/.config/dask/labextension.yml
so it will have this content:
kubernetes:
worker-template:
metadata:
spec:
restartPolicy: Never
containers:
- args:
- dask-worker
- --nthreads
- '2'
- --no-bokeh
- --memory-limit
- 12GB
- --death-timeout
- '60'
image: ${JUPYTER_IMAGE_SPEC}
name: dask-${JUPYTERHUB_USER}
resources:
limits:
cpu: "1.75"
memory: 12G
requests:
cpu: 1
memory: 12G
labextension:
factory:
module: dask_kubernetes
class: KubeCluster
args: []
kwargs: {}
Yet creating a new cluster using the notebook button still creates a LocalCluster
. What am I missing?