dask-kubernetes provides native integration for Dask with Kubernetes, allowing users to deploy and manage Dask clusters programmatically using the Python API (KubeCluster) or declaratively using Kubernetes Custom Resources (Dask Operator). The current version is 2026.3.0, and it follows a rapid release cadence, often monthly or quarterly, in alignment with the broader Dask ecosystem.
pip install dask-kubernetesVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create a Dask cluster on Kubernetes using `KubeCluster`, connect a Dask client, perform a simple computation, and then scale the cluster. It assumes you have `kubectl` configured and authenticated to a Kubernetes cluster.
Upgrade your Python environment to 3.10 or newer.
For interactive Python sessions or quick programmatic deployments, use `KubeCluster`. For persistent, enterprise-grade, or CI/CD deployments, consider installing the Dask Kubernetes Operator and defining `DaskCluster` CRDs via YAML. Consult the official documentation for detailed guidance on each approach.
Ensure your `kopf` installation meets or exceeds version `1.38.0` if you are using the Dask Kubernetes Operator or related features.
Ensure your `kr8s` installation meets or exceeds version `0.20.0` to avoid compatibility issues.
Ensure the Kubernetes ServiceAccount used by your Dask scheduler and worker pods has adequate permissions (e.g., `list`, `watch`, `create`, `delete` for `pods`, `services`, `deployments`, etc.) in the target namespace. Refer to the Dask Kubernetes documentation for recommended RBAC configurations or use the provided Helm chart which configures default roles.