Skip to content

Commit

Permalink
Merge pull request #5122 from sgibson91/strudel/dedicated-nodegroups
Browse files Browse the repository at this point in the history
strudel: create hub-specific nodegroups
  • Loading branch information
sgibson91 authored Nov 15, 2024
2 parents 8edab6d + 0c457db commit 90476b9
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 4 deletions.
3 changes: 3 additions & 0 deletions config/clusters/strudel/prod.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ jupyterhub:
- strudel-science
scope:
- read:org
singleuser:
nodeSelector:
2i2c/hub-name: prod
3 changes: 3 additions & 0 deletions config/clusters/strudel/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ jupyterhub:
- strudel-science
scope:
- read:org
singleuser:
nodeSelector:
2i2c/hub-name: staging
43 changes: 39 additions & 4 deletions eksctl/strudel.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,42 @@ local nodeAz = "us-west-2a";
// A `node.kubernetes.io/instance-type label is added, so pods
// can request a particular kind of node with a nodeSelector
local notebookNodes = [
{ instanceType: "r5.xlarge" },
{ instanceType: "r5.4xlarge" },
{ instanceType: "r5.16xlarge" },
{
instanceType: "r5.xlarge",
namePrefix: "nb-staging",
labels+: { "2i2c/hub-name": "staging" },
tags+: { "2i2c:hub-name": "staging" },
},
{
instanceType: "r5.xlarge",
namePrefix: "nb-prod",
labels+: { "2i2c/hub-name": "prod" },
tags+: { "2i2c:hub-name": "prod" },
},
{
instanceType: "r5.4xlarge",
namePrefix: "nb-staging",
labels+: { "2i2c/hub-name": "staging" },
tags+: { "2i2c:hub-name": "staging" },
},
{
instanceType: "r5.4xlarge",
namePrefix: "nb-prod",
labels+: { "2i2c/hub-name": "prod" },
tags+: { "2i2c:hub-name": "prod" },
},
{
instanceType: "r5.16xlarge",
namePrefix: "nb-staging",
labels+: { "2i2c/hub-name": "staging" },
tags+: { "2i2c:hub-name": "staging" },
},
{
instanceType: "r5.16xlarge",
namePrefix: "nb-prod",
labels+: { "2i2c/hub-name": "prod" },
tags+: { "2i2c:hub-name": "prod" },
},
];
local daskNodes = [];

Expand Down Expand Up @@ -93,7 +126,7 @@ local daskNodes = [];
[
ng + {
namePrefix: 'core',
nameSuffix: 'a',
nameSuffix: 'b',
nameIncludeInstanceType: false,
availabilityZones: [nodeAz],
ssh: {
Expand All @@ -106,6 +139,7 @@ local daskNodes = [];
"hub.jupyter.org/node-purpose": "core",
"k8s.dask.org/node-purpose": "core",
},
tags+: { "2i2c:node-purpose": "core" },
},
] + [
ng + {
Expand All @@ -121,6 +155,7 @@ local daskNodes = [];
"hub.jupyter.org/node-purpose": "user",
"k8s.dask.org/node-purpose": "scheduler"
},
tags+: { "2i2c:node-purpose": "user" },
taints+: {
"hub.jupyter.org_dedicated": "user:NoSchedule",
"hub.jupyter.org/dedicated": "user:NoSchedule",
Expand Down

0 comments on commit 90476b9

Please sign in to comment.