Skip to content
Advertisement

Unable to expand cluster by dask

I am very new to kubernetes & dask and trying to implement some kube cluster and have created minikube cluster with some services, further want to expand it with flexible dask functionality.

I am planning to deploy it to gcloud somehow later, so i am trying to initialize dask cluster (scheduler and workers to my minikube cluster) from a pod with RBAC with python script, but my attempts wasn’t successful.

I’ve tried both local and remote deploy_mode in KubeCluster just for find some working solution, but i guess it’s must be remote.

After running this python script

JavaScript

I get ValueError: missing port number in address '$(DASK_SCHEDULER_ADDRESS)' in scheduler pod logs

Full logs of a scheduler pod

Am i missed setting some env vars in pod specifications? Isn’t it must be set automatically?

If it will be helpful, when i set deploy mode as local, Client constructor raise error, which says scheduler port is not set or something like this. I tried to set it manually, but it keeps raising this error.

I will be very grateful for any advice to implement this

Advertisement

Answer

I figured out that it is impossible to use make_pod_spec as scheduler_pod_template. For those who want that function, I have opened pull request.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement