Skip to content

Commit

Permalink
Add Kubernetes pod templates for Dask scheduler
Browse files Browse the repository at this point in the history
and worker
  • Loading branch information
ivukotic committed Nov 16, 2023
1 parent 1a0a735 commit 07b1058
Showing 1 changed file with 45 additions and 47 deletions.
92 changes: 45 additions & 47 deletions dask_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,52 +93,50 @@ kubernetes:
worker-template-path: null

scheduler-template:
{}
# kind: Pod
# metadata:
# labels:
# foo: bar
# baz: quux
# spec:
# restartPolicy: Never
# containers:
# - -scheduler
# image: ghcr.io/dask/dask:latest
# args:
# - dask-scheduler
# resources:
# limits:
# cpu: "1.75"
# memory: 6G
# requests:
# cpu: "1.75"
# memory: 6G
kind: Pod
metadata:
labels:
foo: bar
baz: quux
spec:
restartPolicy: Never
containers:
- name: dask-scheduler
image: ghcr.io/dask/dask:latest
args:
- dask-scheduler
resources:
limits:
cpu: "1.75"
memory: 6G
requests:
cpu: "1.75"
memory: 6G

worker-template:
{}
# kind: Pod
# metadata:
# labels:
# foo: bar
# baz: quux
# spec:
# restartPolicy: Never
# containers:
# - name: dask-worker
# image: ghcr.io/dask/dask:latest
# args:
# - dask-worker
# - --nthreads
# - '2'
# - --no-bokeh
# - --memory-limit
# - 6GB
# - --death-timeout
# - '60'
# resources:
# limits:
# cpu: "1.75"
# memory: 6G
# requests:
# cpu: "1.75"
# memory: 6G
kind: Pod
metadata:
labels:
foo: bar
baz: quux
spec:
restartPolicy: Never
containers:
- name: dask-worker
image: ghcr.io/dask/dask:latest
args:
- dask-worker
- --nthreads
- "2"
- --no-bokeh
- --memory-limit
- 6GB
- --death-timeout
- "60"
resources:
limits:
cpu: "1.75"
memory: 6G
requests:
cpu: "1.75"
memory: 6G

0 comments on commit 07b1058

Please sign in to comment.