-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathconfig-nodepool.sh
44 lines (39 loc) · 1.08 KB
/
config-nodepool.sh
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
GKE_NODEPOOL_NAMES=(
'apps-v2'
'gtfsrt-v4'
'jupyterhub-users'
'jobs-v1'
)
declare -A GKE_NODEPOOL_NODE_COUNTS
GKE_NODEPOOL_NODE_COUNTS=(
['apps-v2']=1
['gtfsrt-v4']=1
['jupyterhub-users']=1
['jobs-v1']=1
)
declare -A GKE_NODEPOOL_NODE_LOCATIONS
GKE_NODEPOOL_NODE_LOCATIONS=(
['apps-v2']=$GKE_REGION-a,$GKE_REGION-b,$GKE_REGION-c
['gtfsrt-v4']=$GKE_REGION-a,$GKE_REGION-b,$GKE_REGION-c
['jupyterhub-users']=$GKE_REGION-a,$GKE_REGION-b,$GKE_REGION-c
['jobs-v1']=$GKE_REGION-a
)
declare -A GKE_NODEPOOL_MACHINE_TYPES
GKE_NODEPOOL_MACHINE_TYPES=(
['apps-v2']=n1-standard-4
['gtfsrt-v4']=c2-standard-4
['jupyterhub-users']=e2-highmem-2
['jobs-v1']=c2-standard-4
)
declare -A GKE_NODEPOOL_TAINTS
GKE_NODEPOOL_TAINTS=(
['gtfsrt-v4']='resource-domain=gtfsrtv3:NoSchedule'
['jupyterhub-users']='hub.jupyter.org/dedicated=user'
['jobs-v1']='pod-role=computetask:NoSchedule'
)
declare -A GKE_NODEPOOL_LABELS
GKE_NODEPOOL_LABELS=(
['gtfsrt-v4']='resource-domain=gtfsrtv3'
['jupyterhub-users']='hub.jupyter.org/node-purpose=user'
['jobs-v1']='pod-role=computetask'
)