/
values.yaml
99 lines (86 loc) · 3.14 KB
/
values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
pangeo:
# Pangeo configuration values
# --------------------
# The following configuration options are specifically for the custom Pangeo components.
# Some values will be inherited into the dependent chart configs. See requirements.yaml for info.
# Create and use roles and service accounts on an RBAC enabled cluster.
rbac:
enabled: true
# Dependency configuration values
# -------------------------------
# To configure dependencies you must create a key with the name of the dependency
# and then configure as per the dependent chart's values.yaml. Don't forget to indent!
jupyterhub:
# Helm config for jupyterhub goes here
# See https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/master/jupyterhub/values.yaml
singleuser:
cpu:
limit: 2
guarantee: 1
memory:
limit: 4G
guarantee: 2G
extraEnv:
# The default worker image matches the singleuser image.
DASK_GATEWAY__CLUSTER__OPTIONS__IMAGE: '{JUPYTER_IMAGE_SPEC}'
prePuller:
hook:
enabled: false
scheduling:
userScheduler:
enabled: true
podPriority:
enabled: true
userPlaceholder:
enabled: false
dask-gateway:
gateway:
clusterManager:
image:
name: pangeo/base-notebook
tag: latest
clusterStartTimeout: 600
workerStartTimeout: 600
worker:
extraPodConfig:
tolerations:
- key: "k8s.dask.org/dedicated"
operator: "Equal"
value: "worker"
effect: "NoSchedule"
scheduler:
extraPodConfig:
tolerations:
- key: "k8s.dask.org/dedicated"
operator: "Equal"
value: "scheduler"
effect: "NoSchedule"
extraConfig:
# Use the mapping form, to support merging multiple values.yaml
optionHandler: |
from dask_gateway_server.options import Options, Integer, Float, String
def option_handler(options):
if ":" not in options.image:
raise ValueError("When specifying an image you must also provide a tag")
return {
"worker_cores_limit": options.worker_cores,
"worker_cores": min(options.worker_cores / 2, 1),
"worker_memory": "%fG" % options.worker_memory,
"image": options.image,
}
c.DaskGateway.cluster_manager_options = Options(
Integer("worker_cores", 2, min=1, max=4, label="Worker Cores"),
Float("worker_memory", 4, min=1, max=8, label="Worker Memory (GiB)"),
String("image", default="pangeo/base-notebook:latest", label="Image"),
handler=option_handler,
)
userLimts: |
c.UserLimits.max_cores = 100
c.UserLimits.max_memory = "400 G"
c.UserLimits.max_clusters = 1
tlsURL: |
if isinstance(c.DaskGateway.public_connect_url, str):
c.DaskGateway.public_connect_url += "/services/dask-gateway"
homeDirectories:
nfs:
enabled: false