Skip to content

Commit

Permalink
Add 2i2c:node-purpose tags and cycle nodegroups
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibson91 committed Aug 8, 2024
1 parent 3a4a9fe commit 074368f
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions eksctl/nasa-veda.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ 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.xlarge" }, // FIXME: tainted, to be deleted when empty, replaced by equivalent during k8s upgrade
{ instanceType: "r5.xlarge", nameSuffix: "b" },
{ instanceType: "r5.4xlarge" }, // FIXME: tainted, to be deleted when empty, replaced by equivalent during k8s upgrade
{ instanceType: "r5.4xlarge", nameSuffix: "b" },
{ instanceType: "r5.16xlarge" },
{
instanceType: "r5.xlarge",
Expand Down Expand Up @@ -89,7 +91,7 @@ local daskNodes = [
nodeGroups: [
ng + {
namePrefix: 'core',
nameSuffix: 'b',
nameSuffix: 'a',
nameIncludeInstanceType: false,
availabilityZones: [nodeAz],
ssh: {
Expand All @@ -102,6 +104,9 @@ local daskNodes = [
"hub.jupyter.org/node-purpose": "core",
"k8s.dask.org/node-purpose": "core"
},
tags+: {
"2i2c:node-purpose": "core"
},
},
] + [
ng + {
Expand All @@ -117,6 +122,9 @@ 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 All @@ -135,6 +143,9 @@ local daskNodes = [
labels+: {
"k8s.dask.org/node-purpose": "worker"
},
tags+: {
"2i2c:node-purpose": "worker"
},
taints+: {
"k8s.dask.org_dedicated" : "worker:NoSchedule",
"k8s.dask.org/dedicated" : "worker:NoSchedule"
Expand Down

0 comments on commit 074368f

Please sign in to comment.