Skip to content

Instantly share code, notes, and snippets.

@jhamman
Created March 30, 2020 18:39
Show Gist options
  • Save jhamman/9c3ac0f196f9cc406a3c790a95136f23 to your computer and use it in GitHub Desktop.
Save jhamman/9c3ac0f196f9cc406a3c790a95136f23 to your computer and use it in GitHub Desktop.
dask_k8s.py
containers = [
{
"args": [
"dask-worker", "--nthreads", "1",
"--memory-limit", "14GB",
],
"resources": {
"limits": {"cpu": 1, "memory": "14G"},
"requests": {"cpu": 1, "memory": "14G"},
},
}
]
dask.config.set(**{"kubernetes.worker-template.spec.containers": containers})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment